3984
AC_DEFUN(KDE_CHECK_LIB,
4680
AC_DEFUN([KDE_CHECK_LIB],
4682
kde_save_LDFLAGS="$LDFLAGS"
4683
dnl AC_CHECK_LIB modifies LIBS, so save it here
3986
4684
kde_save_LIBS="$LIBS"
3987
LIBS="$LIBS $all_libraries"
4685
LDFLAGS="$LDFLAGS $all_libraries"
3988
4686
case $host_os in
3989
aix*) LIBS="-brtl $LIBS"
3990
test "$GCC" = yes && LIBS="-Wl,$LIBS"
4687
aix*) LDFLAGS="-brtl $LDFLAGS"
4688
test "$GCC" = yes && LDFLAGS="-Wl,$LDFLAGS"
3993
4691
AC_CHECK_LIB($1, $2, $3, $4, $5)
4692
LDFLAGS="$kde_save_LDFLAGS"
3994
4693
LIBS="$kde_save_LIBS"
4000
AC_DEFUN(KDE_CHECK_INITGROUPS,
4002
AC_REQUIRE([AC_CANONICAL_HOST])
4003
AC_CHECK_FUNCS(initgroups)
4004
if test "x$ac_cv_func_initgroups" = "xyes"; then
4008
AC_MSG_CHECKING([for initgroups prototype])
4009
AC_CACHE_VAL(kde_cv_check_initgroups_proto,
4015
int x = initgroups(buffer,id);
4017
kde_cv_check_initgroups_proto=yes,
4018
kde_cv_check_initgroups_proto=no)
4020
AC_MSG_RESULT($kde_cv_check_initgroups_proto)
4024
kde_cv_check_initgroups_proto=yes
4028
kde_cv_check_initgroups_proto=no
4030
if test "x$kde_cv_check_initgroups_proto" = "xyes"; then
4031
kde_check_initgroups_proto=1
4033
kde_check_initgroups_proto=0
4035
AC_DEFINE_UNQUOTED(HAVE_INITGROUPS_PROTO,$kde_check_initgroups_proto,
4036
[initgroups may exist but not its prototype (e.g. AIX<4.3.3:8)])
4696
AC_DEFUN([KDE_JAVA_PREFIX],
4699
base=`basename "$1"`
4700
list=`ls -1 $dir 2> /dev/null`
4701
for entry in $list; do
4702
if test -d $dir/$entry/bin; then
4705
javadirs="$javadirs $dir/$entry/bin"
4708
elif test -d $dir/$entry/jre/bin; then
4711
javadirs="$javadirs $dir/$entry/jre/bin"
4040
AC_DEFUN(KDE_CHECK_JAVA_DIR,
4718
dnl KDE_CHEC_JAVA_DIR(onlyjre)
4719
AC_DEFUN([KDE_CHECK_JAVA_DIR],
4042
AC_MSG_CHECKING([for Java directory])
4044
4722
AC_ARG_WITH(java,
4045
[ --with-java=javadir use java installed in javadir, --without-java disables ],
4723
AC_HELP_STRING([--with-java=javadir],[use java installed in javadir, --without-java disables]),
4046
4724
[ ac_java_dir=$withval
4047
4725
], ac_java_dir=""
4728
AC_MSG_CHECKING([for Java])
4050
4730
dnl at this point ac_java_dir is either a dir, 'no' to disable, or '' to say look in $PATH
4051
if test "x$ac_java_dir" = xno; then
4052
kde_cv_java_bindir=no
4053
kde_cv_java_includedir=no
4054
kde_cv_java_libjvmdir=no
4055
kde_cv_java_libhpidir=no
4731
if test "x$ac_java_dir" = "xno"; then
4733
kde_java_includedir=no
4734
kde_java_libjvmdir=no
4735
kde_java_libgcjdir=no
4736
kde_java_libhpidir=no
4057
if test "x$ac_java_dir" = x; then
4058
dnl No option set -> look in $PATH
4059
AC_CACHE_VAL(kde_cv_java_bindir,
4061
dnl First look for javac in $PATH. If not found we'll look at the option.
4062
KDE_FIND_PATH(javac, JAVAC, [], [])
4738
if test "x$ac_java_dir" = "x"; then
4741
dnl No option set -> collect list of candidate paths
4742
if test -n "$JAVA_HOME"; then
4743
KDE_JAVA_PREFIX($JAVA_HOME)
4745
KDE_JAVA_PREFIX(/usr/j2se)
4746
KDE_JAVA_PREFIX(/usr/lib/j2se)
4747
KDE_JAVA_PREFIX(/usr/j*dk*)
4748
KDE_JAVA_PREFIX(/usr/lib/j*dk*)
4749
KDE_JAVA_PREFIX(/opt/j*sdk*)
4750
KDE_JAVA_PREFIX(/usr/lib/java*)
4751
KDE_JAVA_PREFIX(/usr/java*)
4752
KDE_JAVA_PREFIX(/usr/java/j*dk*)
4753
KDE_JAVA_PREFIX(/usr/java/j*re*)
4754
KDE_JAVA_PREFIX(/usr/lib/SunJava2*)
4755
KDE_JAVA_PREFIX(/usr/lib/SunJava*)
4756
KDE_JAVA_PREFIX(/usr/lib/IBMJava2*)
4757
KDE_JAVA_PREFIX(/usr/lib/IBMJava*)
4758
KDE_JAVA_PREFIX(/opt/java*)
4763
for dir in $PATH; do
4764
if test -d "$dir"; then
4765
javadirs="$javadirs $dir"
4771
dnl Now javadirs contains a list of paths that exist, all ending with bin/
4772
for dir in $javadirs; do
4773
dnl Check for the java executable
4774
if test -x "$dir/java"; then
4775
dnl And also check for a libjvm.so somewhere under there
4776
dnl Since we have to go to the parent dir, /usr/bin is excluded, /usr is too big.
4777
if test "$dir" != "/usr/bin"; then
4778
libjvmdir=`find $dir/.. -name libjvm.so | sed 's,libjvm.so,,'|head -n 1`
4779
if test ! -f $libjvmdir/libjvm.so; then continue; fi
4780
jredirs="$jredirs $dir"
4785
dnl Now jredirs contains a reduced list, of paths where both java and ../**/libjvm.so was found
4789
for dir in $jredirs; do
4791
kde_java_bindir=$dir
4792
if test -x "$dir/javac"; then
4063
4798
if test -n "$JAVAC"; then
4064
kde_cv_java_bindir=`echo $JAVAC | sed -e 's,/javac$,/,'`
4065
4799
dnl this substitution might not work - well, we test for jni.h below
4066
kde_cv_java_includedir=`echo $kde_cv_java_bindir | sed -e 's,bin/$,include/,'`
4800
kde_java_includedir=`echo $JAVAC | sed -e 's,bin/javac$,include/,'`
4068
kde_cv_java_bindir=no
4802
kde_java_includedir=no
4072
4805
dnl config option set
4073
kde_cv_java_bindir=$ac_java_dir/bin
4074
kde_cv_java_includedir=$ac_java_dir/include
4806
kde_java_bindir=$ac_java_dir/bin
4807
if test -x $ac_java_dir/bin/java && test ! -x $ac_java_dir/bin/javac; then
4808
kde_java_includedir=no
4810
kde_java_includedir=$ac_java_dir/include
4078
dnl Look for libjvm.so
4079
kde_cv_java_libjvmdir=`find $kde_cv_java_bindir/.. -name libjvm.so | sed 's,libjvm.so,,'|head -n 1`
4080
dnl Look for libhpi.so and avoid green threads
4081
kde_cv_java_libhpidir=`find $kde_cv_java_bindir/.. -name libhpi.so | grep -v green | sed 's,libhpi.so,,'`
4815
dnl At this point kde_java_bindir and kde_java_includedir are either set or "no"
4816
if test "x$kde_java_bindir" != "xno"; then
4083
dnl At this point kde_cv_java_bindir and kde_cv_java_includedir are either set or "no"
4084
if test ! "x$kde_cv_java_bindir" = xno; then
4818
dnl Look for libjvm.so
4819
kde_java_libjvmdir=`find $kde_java_bindir/.. -name libjvm.so | sed 's,libjvm.so,,'|head -n 1`
4820
dnl Look for libgcj.so
4821
kde_java_libgcjdir=`find $kde_java_bindir/.. -name libgcj.so | sed 's,libgcj.so,,'|head -n 1`
4822
dnl Look for libhpi.so and avoid green threads
4823
kde_java_libhpidir=`find $kde_java_bindir/.. -name libhpi.so | grep -v green | sed 's,libhpi.so,,' | head -n 1`
4086
4825
dnl Now check everything's fine under there
4088
if test ! -x "$kde_cv_java_bindir/javac"; then
4089
AC_MSG_ERROR([javac not found under $kde_cv_java_bindir - it seems you passed a wrong --with-java.])
4091
if test ! -x "$kde_cv_java_bindir/javah"; then
4092
AC_MSG_ERROR([javah not found under $kde_cv_java_bindir. javac was found though! Use --with-java or --without-java.])
4094
if test ! -x "$kde_cv_java_bindir/jar"; then
4095
AC_MSG_ERROR([jar not found under $kde_cv_java_bindir. javac was found though! Use --with-java or --without-java.])
4097
if test ! -r "$kde_cv_java_includedir/jni.h"; then
4098
AC_MSG_ERROR([jni.h not found under $kde_cv_java_includedir. Use --with-java or --without-java.])
4100
if test ! -r "$kde_cv_java_libjvmdir/libjvm.so"; then
4101
AC_MSG_ERROR([libjvm.so not found under $kde_cv_java_libjvmdir. Use --without-java.])
4103
if test ! -r "$kde_cv_java_libhpidir/libhpi.so"; then
4104
AC_MSG_ERROR([libhpi.so not found under $kde_cv_java_libhpidir. Use --without-java.])
4107
jni_includes="-I$kde_cv_java_includedir"
4108
dnl Strange thing, jni.h requires jni_md.h which is under genunix here..
4109
dnl and under linux here..
4110
test -d "$kde_cv_java_includedir/linux" && jni_includes="$jni_includes -I$kde_cv_java_includedir/linux"
4111
test -d "$kde_cv_java_includedir/genunix" && jni_includes="$jni_includes -I$kde_cv_java_includedir/genunix"
4113
dnl Check for JNI version
4826
dnl the include dir is our flag for having the JDK
4827
if test -d "$kde_java_includedir"; then
4828
if test ! -x "$kde_java_bindir/javac"; then
4829
AC_MSG_ERROR([javac not found under $kde_java_bindir - it seems you passed a wrong --with-java.])
4831
if test ! -x "$kde_java_bindir/javah"; then
4832
AC_MSG_ERROR([javah not found under $kde_java_bindir. javac was found though! Use --with-java or --without-java.])
4834
if test ! -x "$kde_java_bindir/jar"; then
4835
AC_MSG_ERROR([jar not found under $kde_java_bindir. javac was found though! Use --with-java or --without-java.])
4837
if test ! -r "$kde_java_includedir/jni.h"; then
4838
AC_MSG_ERROR([jni.h not found under $kde_java_includedir. Use --with-java or --without-java.])
4841
jni_includes="-I$kde_java_includedir"
4842
dnl Strange thing, jni.h requires jni_md.h which is under genunix here..
4843
dnl and under linux here..
4845
dnl not needed for gcj
4847
if test "x$kde_java_libgcjdir" = "x"; then
4848
test -d "$kde_java_includedir/linux" && jni_includes="$jni_includes -I$kde_java_includedir/linux"
4849
test -d "$kde_java_includedir/solaris" && jni_includes="$jni_includes -I$kde_java_includedir/solaris"
4850
test -d "$kde_java_includedir/genunix" && jni_includes="$jni_includes -I$kde_java_includedir/genunix"
4858
if test "x$kde_java_libgcjdir" = "x"; then
4859
if test ! -r "$kde_java_libjvmdir/libjvm.so"; then
4860
AC_MSG_ERROR([libjvm.so not found under $kde_java_libjvmdir. Use --without-java.])
4863
if test ! -r "$kde_java_libgcjdir/libgcj.so"; then
4864
AC_MSG_ERROR([libgcj.so not found under $kde_java_libgcjdir. Use --without-java.])
4868
if test ! -x "$kde_java_bindir/java"; then
4869
AC_MSG_ERROR([java not found under $kde_java_bindir. javac was found though! Use --with-java or --without-java.])
4872
dnl not needed for gcj compile
4874
if test "x$kde_java_libgcjdir" = "x"; then
4875
if test ! -r "$kde_java_libhpidir/libhpi.so"; then
4876
AC_MSG_ERROR([libhpi.so not found under $kde_java_libhpidir. Use --without-java.])
4880
if test -n "$jni_includes"; then
4881
dnl Check for JNI version
4884
ac_cxxflags_safe="$CXXFLAGS"
4885
CXXFLAGS="$CXXFLAGS $all_includes $jni_includes"
4891
#ifndef JNI_VERSION_1_2
4894
],[ kde_jni_works=yes ],
4895
[ kde_jni_works=no ])
4897
if test $kde_jni_works = no; then
4898
AC_MSG_ERROR([Incorrect version of $kde_java_includedir/jni.h.
4899
You need to have Java Development Kit (JDK) version 1.2.
4901
Use --with-java to specify another location.
4902
Use --without-java to configure without java support.
4903
Or download a newer JDK and try again.
4904
See e.g. http://java.sun.com/products/jdk/1.2 ])
4907
CXXFLAGS="$ac_cxxflags_safe"
4910
dnl All tests ok, inform and subst the variables
4912
JAVAC=$kde_java_bindir/javac
4913
JAVAH=$kde_java_bindir/javah
4914
JAR=$kde_java_bindir/jar
4915
AC_DEFINE_UNQUOTED(PATH_JAVA, "$kde_java_bindir/java", [Define where your java executable is])
4916
if test "x$kde_java_libgcjdir" = "x"; then
4917
JVMLIBS="-L$kde_java_libjvmdir -ljvm -L$kde_java_libhpidir -lhpi"
4919
JVMLIBS="-L$kde_java_libgcjdir -lgcj"
4921
AC_MSG_RESULT([java JDK in $kde_java_bindir])
4924
AC_DEFINE_UNQUOTED(PATH_JAVA, "$kde_java_bindir/java", [Define where your java executable is])
4925
AC_MSG_RESULT([java JRE in $kde_java_bindir])
4927
elif test -d "/Library/Java/Home"; then
4928
kde_java_bindir="/Library/Java/Home/bin"
4929
jni_includes="-I/Library/Java/Home/include"
4931
JAVAC=$kde_java_bindir/javac
4932
JAVAH=$kde_java_bindir/javah
4933
JAR=$kde_java_bindir/jar
4934
JVMLIBS="-Xlinker -framework -Xlinker JavaVM"
4936
AC_DEFINE_UNQUOTED(PATH_JAVA, "$kde_java_bindir/java", [Define where your java executable is])
4937
AC_MSG_RESULT([Apple Java Framework])
4939
AC_MSG_RESULT([none found])
4946
AC_SUBST(jni_includes)
4948
# for backward compat
4949
kde_cv_java_includedir=$kde_java_includedir
4950
kde_cv_java_bindir=$kde_java_bindir
4953
dnl this is a redefinition of autoconf 2.5x's AC_FOREACH.
4954
dnl When the argument list becomes big, as in KDE for AC_OUTPUT in
4955
dnl big packages, m4_foreach is dog-slow. So use our own version of
4956
dnl it. (matz@kde.org)
4957
m4_define([mm_foreach],
4958
[m4_pushdef([$1])_mm_foreach($@)m4_popdef([$1])])
4959
m4_define([mm_car], [[$1]])
4960
m4_define([mm_car2], [[$@]])
4961
m4_define([_mm_foreach],
4962
[m4_if(m4_quote($2), [], [],
4963
[m4_define([$1], mm_car($2))$3[]_mm_foreach([$1],
4964
mm_car2(m4_shift($2)),
4966
m4_define([AC_FOREACH],
4967
[mm_foreach([$1], m4_split(m4_normalize([$2])), [$3])])
4969
AC_DEFUN([KDE_NEED_FLEX],
4972
LIBS="$LIBS $USER_LDFLAGS"
4975
if test -z "$LEXLIB"; then
4976
AC_MSG_ERROR([You need to have flex installed.])
4981
AC_DEFUN([AC_PATH_QTOPIA],
4983
dnl TODO: use AC_CACHE_VAL
4985
if test -z "$1"; then
4990
qtopia_minver_maj=`echo "$1" | sed -e "s/^\(.*\)\..*\..*$/\1/"`
4991
qtopia_minver_min=`echo "$1" | sed -e "s/^.*\.\(.*\)\..*$/\1/"`
4992
qtopia_minver_pat=`echo "$1" | sed -e "s/^.*\..*\.\(.*\)$/\1/"`
4995
qtopia_minver="$qtopia_minver_maj$qtopia_minver_min$qtopia_minver_pat"
4996
qtopia_minverstr="$qtopia_minver_maj.$qtopia_minver_min.$qtopia_minver_pat"
4998
AC_REQUIRE([AC_PATH_QT])
5000
AC_MSG_CHECKING([for Qtopia])
5003
AC_SUBST(LIB_QTOPIA)
5005
kde_qtopia_dirs="$QPEDIR /opt/Qtopia"
5009
AC_ARG_WITH(qtopia-dir,
5010
AC_HELP_STRING([--with-qtopia-dir=DIR],[where the root of Qtopia is installed]),
5011
[ ac_qtopia_incdir="$withval"/include] )
5014
for dir in $kde_qtopia_dirs; do
5015
qtopia_incdirs="$qtopia_incdirs $dir/include"
5018
if test ! "$ac_qtopia_incdir" = "NO"; then
5019
qtopia_incdirs="$ac_qtopia_incdir $qtopia_incdirs"
5023
AC_FIND_FILE(qpe/qpeapplication.h, $qtopia_incdirs, qtopia_incdir)
5024
ac_qtopia_incdir="$qtopia_incdir"
5026
if test -z "$qtopia_incdir"; then
5027
AC_MSG_ERROR([Cannot find Qtopia headers. Please check your installation.])
5030
qtopia_ver_maj=`cat $qtopia_incdir/qpe/version.h | sed -n -e 's,.*QPE_VERSION "\(.*\)\..*\..*".*,\1,p'`;
5031
qtopia_ver_min=`cat $qtopia_incdir/qpe/version.h | sed -n -e 's,.*QPE_VERSION ".*\.\(.*\)\..*".*,\1,p'`;
5032
qtopia_ver_pat=`cat $qtopia_incdir/qpe/version.h | sed -n -e 's,.*QPE_VERSION ".*\..*\.\(.*\)".*,\1,p'`;
5034
qtopia_ver="$qtopia_ver_maj$qtopia_ver_min$qtopia_ver_pat"
5035
qtopia_verstr="$qtopia_ver_maj.$qtopia_ver_min.$qtopia_ver_pat"
5036
if test "$qtopia_ver" -lt "$qtopia_minver"; then
5037
AC_MSG_ERROR([found Qtopia version $qtopia_verstr but version $qtopia_minverstr
4115
5042
AC_LANG_CPLUSPLUS
4116
5044
ac_cxxflags_safe="$CXXFLAGS"
4117
CXXFLAGS="$CXXFLAGS $all_includes $jni_includes"
4123
#ifndef JNI_VERSION_1_2
4127
],[ AC_MSG_ERROR([Incorrect version of $kde_cv_java_includedir/jni.h.
4128
You need to have Java Development Kit (JDK) version 1.2.
4130
Use --with-java to specify another location.
4131
Use --without-java to configure without java support.
4132
Or download a newer JDK and try again.
4133
See e.g. http://java.sun.com/products/jdk/1.2 ])
4136
CXXFLAGS="$ac_cxxflags_safe"
5045
ac_ldflags_safe="$LDFLAGS"
5046
ac_libs_safe="$LIBS"
5048
CXXFLAGS="$CXXFLAGS -I$qtopia_incdir $all_includes"
5049
LDFLAGS="$LDFLAGS $QT_LDFLAGS $all_libraries $USER_LDFLAGS $KDE_MT_LDFLAGS"
5050
LIBS="$LIBS $LIB_QTOPIA $LIBQT"
5052
cat > conftest.$ac_ext <<EOF
5053
#include "confdefs.h"
5054
#include <qpe/qpeapplication.h>
5055
#include <qpe/version.h>
5057
int main( int argc, char **argv )
5059
QPEApplication app( argc, argv );
5064
if AC_TRY_EVAL(ac_link) && test -s conftest; then
5068
AC_MSG_ERROR([Cannot link small Qtopia Application. For more details look at
5069
the end of config.log])
5072
CXXFLAGS="$ac_cxxflags_safe"
5073
LDFLAGS="$ac_ldflags_safe"
5074
LIBS="$ac_libs_safe"
4137
5076
AC_LANG_RESTORE
4139
dnl All tests ok, inform and subst the variables
4140
AC_MSG_RESULT([javac/javah/jar in $kde_cv_java_bindir, jni.h in $kde_cv_java_includedir])
4142
JAVAC=$kde_cv_java_bindir/javac
4144
JAVAH=$kde_cv_java_bindir/javah
4146
JAR=$kde_cv_java_bindir/jar
4148
AC_SUBST(jni_includes)
4149
JVMLIBS="-L$kde_cv_java_libjvmdir -ljvm -L$kde_cv_java_libhpidir -lhpi"
4154
# serial 46 AC_PROG_LIBTOOL
5078
QTOPIA_INCLUDES="-I$qtopia_incdir"
5079
AC_SUBST(QTOPIA_INCLUDES)
5081
AC_MSG_RESULT([found version $qtopia_verstr with headers at $qtopia_incdir])
5085
AC_DEFUN([KDE_INIT_DOXYGEN],
5087
AC_MSG_CHECKING([for Qt docs])
5089
if test "${with_qt_dir+set}" = set; then
5090
kde_qtdir="$with_qt_dir"
5093
AC_FIND_FILE(qsql.html, [ $kde_qtdir/doc/html $QTDIR/doc/html /usr/share/doc/packages/qt3/html /usr/lib/qt/doc /usr/lib/qt3/doc /usr/lib/qt3/doc/html /usr/doc/qt3/html /usr/doc/qt3 /usr/share/doc/qt3-doc /usr/share/qt3/doc/html /usr/X11R6/share/doc/qt/html ], QTDOCDIR)
5094
AC_MSG_RESULT($QTDOCDIR)
5098
KDE_FIND_PATH(dot, DOT, [], [])
5099
if test -n "$DOT"; then
5104
AC_SUBST(KDE_HAVE_DOT)
5105
KDE_FIND_PATH(doxygen, DOXYGEN, [], [])
5108
DOXYGEN_PROJECT_NAME="$1"
5109
DOXYGEN_PROJECT_NUMBER="$2"
5110
AC_SUBST(DOXYGEN_PROJECT_NAME)
5111
AC_SUBST(DOXYGEN_PROJECT_NUMBER)
5114
if test -n "$DOXYGEN" && test -x "$DOXYGEN" && test -f $QTDOCDIR/qsql.html; then
5117
AC_SUBST(KDE_HAS_DOXYGEN)
5122
AC_DEFUN([AC_FIND_BZIP2],
5124
AC_MSG_CHECKING([for bzDecompress in libbz2])
5125
AC_CACHE_VAL(ac_cv_lib_bzip2,
5129
kde_save_LIBS="$LIBS"
5130
LIBS="$all_libraries $USER_LDFLAGS -lbz2 $LIBSOCKET"
5131
kde_save_CXXFLAGS="$CXXFLAGS"
5132
CXXFLAGS="$CXXFLAGS $all_includes $USER_INCLUDES"
5138
[ bz_stream s; (void) bzDecompress(&s); ],
5139
eval "ac_cv_lib_bzip2='-lbz2'",
5140
eval "ac_cv_lib_bzip2=no")
5141
LIBS="$kde_save_LIBS"
5142
CXXFLAGS="$kde_save_CXXFLAGS"
5145
AC_MSG_RESULT($ac_cv_lib_bzip2)
5147
if test ! "$ac_cv_lib_bzip2" = no; then
5150
LIBBZ2="$ac_cv_lib_bzip2"
5157
KDE_CHECK_COMPILER_FLAG(shared, [
5158
ld_shared_flag="-shared"
5160
KDE_CHECK_COMPILER_FLAG(fPIC, [
5161
cxx_shared_flag="-fPIC"
5164
AC_MSG_CHECKING([for BZ2_bzDecompress in (shared) libbz2])
5165
AC_CACHE_VAL(ac_cv_lib_bzip2_prefix,
5169
kde_save_LIBS="$LIBS"
5170
LIBS="$all_libraries $USER_LDFLAGS $ld_shared_flag -lbz2 $LIBSOCKET"
5171
kde_save_CXXFLAGS="$CXXFLAGS"
5172
CXXFLAGS="$CFLAGS $cxx_shared_flag $all_includes $USER_INCLUDES"
5179
[ bz_stream s; (void) BZ2_bzDecompress(&s); ],
5180
eval "ac_cv_lib_bzip2_prefix='-lbz2'",
5181
eval "ac_cv_lib_bzip2_prefix=no")
5182
LIBS="$kde_save_LIBS"
5183
CXXFLAGS="$kde_save_CXXFLAGS"
5187
AC_MSG_RESULT($ac_cv_lib_bzip2_prefix)
5189
if test ! "$ac_cv_lib_bzip2_prefix" = no; then
5192
LIBBZ2="$ac_cv_lib_bzip2_prefix"
5195
AC_DEFINE(NEED_BZ2_PREFIX, 1, [Define if the libbz2 functions need the BZ2_ prefix])
5196
dnl else, we just ignore this
5200
AM_CONDITIONAL(include_BZIP2, test -n "$BZIP2DIR")
5203
dnl ------------------------------------------------------------------------
5204
dnl Try to find the SSL headers and libraries.
5205
dnl $(SSL_LDFLAGS) will be -Lsslliblocation (if needed)
5206
dnl and $(SSL_INCLUDES) will be -Isslhdrlocation (if needed)
5207
dnl ------------------------------------------------------------------------
5209
AC_DEFUN([KDE_CHECK_SSL],
5211
LIBSSL="-lssl -lcrypto"
5212
AC_REQUIRE([KDE_CHECK_LIB64])
5214
ac_ssl_includes=NO ac_ssl_libraries=NO
5217
AC_ARG_WITH(ssl-dir,
5218
AC_HELP_STRING([--with-ssl-dir=DIR],[where the root of OpenSSL is installed]),
5219
[ ac_ssl_includes="$withval"/include
5220
ac_ssl_libraries="$withval"/lib$kdelibsuff
5225
AC_HELP_STRING([--without-ssl],[disable SSL checks]),
5226
[want_ssl=$withval])
5228
if test $want_ssl = yes; then
5230
AC_MSG_CHECKING(for OpenSSL)
5232
AC_CACHE_VAL(ac_cv_have_ssl,
5233
[#try to guess OpenSSL locations
5235
ssl_incdirs="/usr/include /usr/local/include /usr/ssl/include /usr/local/ssl/include $prefix/include $kde_extra_includes"
5236
ssl_incdirs="$ac_ssl_includes $ssl_incdirs"
5237
AC_FIND_FILE(openssl/ssl.h, $ssl_incdirs, ssl_incdir)
5238
ac_ssl_includes="$ssl_incdir"
5240
ssl_libdirs="/usr/lib$kdelibsuff /usr/local/lib$kdelibsuff /usr/ssl/lib$kdelibsuff /usr/local/ssl/lib$kdelibsuff $libdir $prefix/lib$kdelibsuff $exec_prefix/lib$kdelibsuff $kde_extra_libs"
5241
if test ! "$ac_ssl_libraries" = "NO"; then
5242
ssl_libdirs="$ac_ssl_libraries $ssl_libdirs"
5247
for dir in $ssl_libdirs; do
5248
try="ls -1 $dir/libssl*"
5249
if test=`eval $try 2> /dev/null`; then ssl_libdir=$dir; break; else echo "tried $dir" >&AC_FD_CC ; fi
5252
ac_ssl_libraries="$ssl_libdir"
5254
ac_ldflags_safe="$LDFLAGS"
5255
ac_libs_safe="$LIBS"
5257
LDFLAGS="$LDFLAGS -L$ssl_libdir $all_libraries"
5258
LIBS="$LIBS $LIBSSL -lRSAglue -lrsaref"
5260
AC_TRY_LINK(,void RSAPrivateEncrypt(void);RSAPrivateEncrypt();,
5266
LDFLAGS="$ac_ldflags_safe"
5267
LIBS="$ac_libs_safe"
5269
if test "$ac_ssl_includes" = NO || test "$ac_ssl_libraries" = NO; then
5277
eval "$ac_cv_have_ssl"
5279
AC_MSG_RESULT([libraries $ac_ssl_libraries, headers $ac_ssl_includes])
5281
AC_MSG_CHECKING([whether OpenSSL uses rsaref])
5282
AC_MSG_RESULT($ac_ssl_rsaref)
5284
AC_MSG_CHECKING([for easter eggs])
5285
AC_MSG_RESULT([none found])
5291
if test "$have_ssl" = yes; then
5292
AC_MSG_CHECKING(for OpenSSL version)
5293
dnl Check for SSL version
5294
AC_CACHE_VAL(ac_cv_ssl_version,
5297
cat >conftest.$ac_ext <<EOF
5298
#include <openssl/opensslv.h>
5302
#ifndef OPENSSL_VERSION_NUMBER
5303
printf("ssl_version=\\"error\\"\n");
5305
if (OPENSSL_VERSION_NUMBER < 0x00906000)
5306
printf("ssl_version=\\"old\\"\n");
5308
printf("ssl_version=\\"ok\\"\n");
5314
ac_save_CPPFLAGS=$CPPFLAGS
5315
if test "$ac_ssl_includes" != "/usr/include"; then
5316
CPPFLAGS="$CPPFLAGS -I$ac_ssl_includes"
5319
if AC_TRY_EVAL(ac_link); then
5321
if eval `./conftest 2>&5`; then
5322
if test $ssl_version = error; then
5323
AC_MSG_ERROR([$ssl_incdir/openssl/opensslv.h doesn't define OPENSSL_VERSION_NUMBER !])
5325
if test $ssl_version = old; then
5326
AC_MSG_WARN([OpenSSL version too old. Upgrade to 0.9.6 at least, see http://www.openssl.org. SSL support disabled.])
5330
ac_cv_ssl_version="ssl_version=$ssl_version"
5332
AC_MSG_ERROR([Your system couldn't run a small SSL test program.
5333
Check config.log, and if you can't figure it out, send a mail to
5334
David Faure <faure@kde.org>, attaching your config.log])
5338
AC_MSG_ERROR([Your system couldn't link a small SSL test program.
5339
Check config.log, and if you can't figure it out, send a mail to
5340
David Faure <faure@kde.org>, attaching your config.log])
5342
CPPFLAGS=$ac_save_CPPFLAGS
5346
eval "$ac_cv_ssl_version"
5347
AC_MSG_RESULT($ssl_version)
5350
if test "$have_ssl" != yes; then
5353
AC_DEFINE(HAVE_SSL, 1, [If we are going to use OpenSSL])
5354
ac_cv_have_ssl="have_ssl=yes \
5355
ac_ssl_includes=$ac_ssl_includes ac_ssl_libraries=$ac_ssl_libraries ac_ssl_rsaref=$ac_ssl_rsaref"
5358
ssl_libraries="$ac_ssl_libraries"
5359
ssl_includes="$ac_ssl_includes"
5361
if test "$ac_ssl_rsaref" = yes; then
5362
LIBSSL="-lssl -lcrypto -lRSAglue -lrsaref"
5365
if test $ssl_version = "old"; then
5366
AC_DEFINE(HAVE_OLD_SSL_API, 1, [Define if you have OpenSSL < 0.9.6])
5372
if test "$ssl_includes" = "/usr/include"; then
5373
if test -f /usr/kerberos/include/krb5.h; then
5374
SSL_INCLUDES="-I/usr/kerberos/include"
5376
elif test "$ssl_includes" != "/usr/local/include" && test -n "$ssl_includes"; then
5377
SSL_INCLUDES="-I$ssl_includes"
5380
if test "$ssl_libraries" = "/usr/lib" || test "$ssl_libraries" = "/usr/local/lib" || test -z "$ssl_libraries" || test "$ssl_libraries" = "NONE"; then
5383
SSL_LDFLAGS="-L$ssl_libraries -R$ssl_libraries"
5386
AC_SUBST(SSL_INCLUDES)
5387
AC_SUBST(SSL_LDFLAGS)
5391
AC_DEFUN([KDE_CHECK_STRLCPY],
5393
AC_REQUIRE([AC_CHECK_STRLCAT])
5394
AC_REQUIRE([AC_CHECK_STRLCPY])
5395
AC_CHECK_SIZEOF(size_t)
5396
AC_CHECK_SIZEOF(unsigned long)
5398
AC_MSG_CHECKING([sizeof size_t == sizeof unsigned long])
5400
#if SIZEOF_SIZE_T != SIZEOF_UNSIGNED_LONG
5403
],AC_MSG_RESULT([yes]),[
5406
Apparently on your system our assumption sizeof size_t == sizeof unsigned long
5407
does not apply. Please mail kde-devel@kde.org with a description of your system!
5412
AC_DEFUN([KDE_CHECK_BINUTILS],
5414
AC_MSG_CHECKING([if ld supports unversioned version maps])
5416
kde_save_LDFLAGS="$LDFLAGS"
5417
LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
5418
echo "{ local: extern \"C++\" { foo }; };" > conftest.map
5419
AC_TRY_LINK([int foo;],
5421
#ifdef __INTEL_COMPILER
5422
icc apparently does not support libtools version-info and version-script
5423
at the same time. Dunno where the bug is, but until somebody figured out,
5424
better disable the optional version scripts.
5428
], kde_supports_versionmaps=yes, kde_supports_versionmaps=no)
5429
LDFLAGS="$kde_save_LDFLAGS"
5431
AM_CONDITIONAL(include_VERSION_SCRIPT,
5432
[test "$kde_supports_versionmaps" = "yes" && test "$kde_use_debug_code" = "no"])
5434
AC_MSG_RESULT($kde_supports_versionmaps)
5437
AC_DEFUN([AM_PROG_OBJC],[
5438
AC_CHECK_PROGS(OBJC, gcc, gcc)
5439
test -z "$OBJC" && AC_MSG_ERROR([no acceptable objective-c gcc found in \$PATH])
5440
if test "x${OBJCFLAGS-unset}" = xunset; then
5444
_AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES(OBJC)])
5447
AC_DEFUN([KDE_CHECK_PERL],
5449
KDE_FIND_PATH(perl, PERL, [$bindir $exec_prefix/bin $prefix/bin], [
5450
AC_MSG_ERROR([No Perl found in your $PATH.
5451
We need perl to generate some code.])
5456
AC_DEFUN([KDE_CHECK_LARGEFILE],
5459
if test "$ac_cv_sys_file_offset_bits" != no; then
5460
CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
5463
if test "x$ac_cv_sys_large_files" != "xno"; then
5464
CPPFLAGS="$CPPFLAGS -D_LARGE_FILES=1"
5468
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
5470
# serial 47 AC_PROG_LIBTOOL
5473
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
5474
# -----------------------------------------------------------
5475
# If this macro is not defined by Autoconf, define it here.
5476
m4_ifdef([AC_PROVIDE_IFELSE],
5478
[m4_define([AC_PROVIDE_IFELSE],
5479
[m4_ifdef([AC_PROVIDE_$1],
4155
5485
AC_DEFUN([AC_PROG_LIBTOOL],
4156
5486
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
4157
5487
dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
4293
5984
SAVE_CFLAGS="$CFLAGS"
4294
5985
CFLAGS="$CFLAGS -belf"
4295
5986
AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
4298
5988
AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
4300
5990
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4301
5991
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4302
5992
CFLAGS="$SAVE_CFLAGS"
4306
ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
5995
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
4307
5996
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
4308
5997
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
4309
5998
AC_CHECK_TOOL(AS, as, false)
4310
5999
AC_CHECK_TOOL(OBJDUMP, objdump, false)
4312
# recent cygwin and mingw systems supply a stub DllMain which the user
4313
# can override, but on older systems we have to supply one
4314
AC_CACHE_CHECK([if libtool should supply DllMain function], lt_cv_need_dllmain,
4316
[extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4317
DllMain (0, 0, 0);],
4318
[lt_cv_need_dllmain=no],[lt_cv_need_dllmain=yes])])
4321
*-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4322
# old mingw systems require "-dll" to link a DLL, while more recent ones
4324
SAVE_CFLAGS="$CFLAGS"
4325
CFLAGS="$CFLAGS -mdll"
4326
AC_CACHE_CHECK([how to link DLLs], lt_cv_cc_dll_switch,
4327
[AC_TRY_LINK([], [], [lt_cv_cc_dll_switch=-mdll],[lt_cv_cc_dll_switch=-dll])])
4328
CFLAGS="$SAVE_CFLAGS" ;;
4329
*-*-cygwin* | *-*-pw32*)
4330
# cygwin systems need to pass --dll to the linker, and not link
4331
# crt.o which will require a WinMain@16 definition.
4332
lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4339
# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
4340
AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
4342
# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
4343
AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
4345
# AC_ENABLE_SHARED - implement the --enable-shared flag
4346
# Usage: AC_ENABLE_SHARED[(DEFAULT)]
4347
# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
6004
need_locks="$enable_libtool_lock"
6009
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
6010
# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
6011
# ----------------------------------------------------------------
6012
# Check whether the given compiler option works
6013
AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
6014
[AC_REQUIRE([LT_AC_PROG_SED])
6015
AC_CACHE_CHECK([$1], [$2],
6017
ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
6018
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6019
lt_compiler_flag="$3"
6020
# Insert the option either (1) after the last *FLAGS variable, or
6021
# (2) before a word containing "conftest.", or (3) at the end.
6022
# Note that $ac_compile itself does not contain backslashes and begins
6023
# with a dollar sign (not a hyphen), so the echo should work correctly.
6024
# The option is referenced via a variable to avoid confusing sed.
6025
lt_compile=`echo "$ac_compile" | $SED \
6026
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6027
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
6028
-e 's:$: $lt_compiler_flag:'`
6029
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
6030
(eval "$lt_compile" 2>conftest.err)
6032
cat conftest.err >&AS_MESSAGE_LOG_FD
6033
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
6034
if (exit $ac_status) && test -s "$ac_outfile"; then
6035
# The compiler can only warn and ignore the option if not recognized
6036
# So say no if there are warnings
6037
if test ! -s conftest.err; then
6044
if test x"[$]$2" = xyes; then
6045
ifelse([$5], , :, [$5])
6047
ifelse([$6], , :, [$6])
6049
])# AC_LIBTOOL_COMPILER_OPTION
6052
# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
6053
# [ACTION-SUCCESS], [ACTION-FAILURE])
6054
# ------------------------------------------------------------
6055
# Check whether the given compiler option works
6056
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
6057
[AC_CACHE_CHECK([$1], [$2],
6059
save_LDFLAGS="$LDFLAGS"
6060
LDFLAGS="$LDFLAGS $3"
6061
printf "$lt_simple_link_test_code" > conftest.$ac_ext
6062
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6063
# The compiler can only warn and ignore the option if not recognized
6064
# So say no if there are warnings
6065
if test -s conftest.err; then
6066
# Append any errors to the config.log.
6067
cat conftest.err 1>&AS_MESSAGE_LOG_FD
6073
LDFLAGS="$save_LDFLAGS"
6076
if test x"[$]$2" = xyes; then
6077
ifelse([$4], , :, [$4])
6079
ifelse([$5], , :, [$5])
6081
])# AC_LIBTOOL_LINKER_OPTION
6084
# AC_LIBTOOL_SYS_MAX_CMD_LEN
6085
# --------------------------
6086
AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
6087
[# find the maximum length of command line arguments
6088
AC_MSG_CHECKING([the maximum length of command line arguments])
6089
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
6095
# On DJGPP, this test can blow up pretty badly due to problems in libc
6096
# (any single argument exceeding 2000 bytes causes a buffer overrun
6097
# during glob expansion). Even if it were fixed, the result of this
6098
# check would be larger than it should be.
6099
lt_cv_sys_max_cmd_len=12288; # 12K is about right
6103
# Under GNU Hurd, this test is not required because there is
6104
# no limit to the length of command line arguments.
6105
# Libtool will interpret -1 as no limit whatsoever
6106
lt_cv_sys_max_cmd_len=-1;
6110
# On Win9x/ME, this test blows up -- it succeeds, but takes
6111
# about 5 minutes as the teststring grows exponentially.
6112
# Worse, since 9x/ME are not pre-emptively multitasking,
6113
# you end up with a "frozen" computer, even though with patience
6114
# the test eventually succeeds (with a max line length of 256k).
6115
# Instead, let's just punt: use the minimum linelength reported by
6116
# all of the supported platforms: 8192 (on NT/2K/XP).
6117
lt_cv_sys_max_cmd_len=8192;
6121
# If test is not a shell built-in, we'll probably end up computing a
6122
# maximum length that is only half of the actual maximum length, but
6124
while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \
6125
= "XX$testring") >/dev/null 2>&1 &&
6126
new_result=`expr "X$testring" : ".*" 2>&1` &&
6127
lt_cv_sys_max_cmd_len=$new_result &&
6128
test $i != 17 # 1/2 MB should be enough
6131
testring=$testring$testring
6134
# Add a significant safety factor because C++ compilers can tack on massive
6135
# amounts of additional arguments before passing them to the linker.
6136
# It appears as though 1/2 is a usable value.
6137
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6141
if test -n $lt_cv_sys_max_cmd_len ; then
6142
AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
6146
])# AC_LIBTOOL_SYS_MAX_CMD_LEN
6149
# _LT_AC_CHECK_DLFCN
6150
# --------------------
6151
AC_DEFUN([_LT_AC_CHECK_DLFCN],
6152
[AC_CHECK_HEADERS(dlfcn.h)dnl
6153
])# _LT_AC_CHECK_DLFCN
6156
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
6157
# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
6158
# ------------------------------------------------------------------
6159
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
6160
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
6161
if test "$cross_compiling" = yes; then :
6164
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6165
lt_status=$lt_dlunknown
6166
cat > conftest.$ac_ext <<EOF
6167
[#line __oline__ "configure"
6168
#include "confdefs.h"
6177
# define LT_DLGLOBAL RTLD_GLOBAL
6180
# define LT_DLGLOBAL DL_GLOBAL
6182
# define LT_DLGLOBAL 0
6186
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6187
find out it does not work in some platform. */
6188
#ifndef LT_DLLAZY_OR_NOW
6190
# define LT_DLLAZY_OR_NOW RTLD_LAZY
6193
# define LT_DLLAZY_OR_NOW DL_LAZY
6196
# define LT_DLLAZY_OR_NOW RTLD_NOW
6199
# define LT_DLLAZY_OR_NOW DL_NOW
6201
# define LT_DLLAZY_OR_NOW 0
6209
extern "C" void exit (int);
6212
void fnord() { int i=42;}
6215
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6216
int status = $lt_dlunknown;
6220
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6221
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6222
/* dlclose (self); */
6228
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
6229
(./conftest; exit; ) 2>/dev/null
6232
x$lt_dlno_uscore) $1 ;;
6233
x$lt_dlneed_uscore) $2 ;;
6234
x$lt_unknown|x*) $3 ;;
6237
# compilation failed
6242
])# _LT_AC_TRY_DLOPEN_SELF
6245
# AC_LIBTOOL_DLOPEN_SELF
6246
# -------------------
6247
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
6248
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
6249
if test "x$enable_dlopen" != xyes; then
6250
enable_dlopen=unknown
6251
enable_dlopen_self=unknown
6252
enable_dlopen_self_static=unknown
6259
lt_cv_dlopen="load_add_on"
6261
lt_cv_dlopen_self=yes
6265
lt_cv_dlopen="LoadLibrary"
6270
lt_cv_dlopen="dlopen"
6275
# if libdl is installed we need to link against it
6276
AC_CHECK_LIB([dl], [dlopen],
6277
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
6280
lt_cv_dlopen_self=yes
6285
AC_CHECK_FUNC([shl_load],
6286
[lt_cv_dlopen="shl_load"],
6287
[AC_CHECK_LIB([dld], [shl_load],
6288
[lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
6289
[AC_CHECK_FUNC([dlopen],
6290
[lt_cv_dlopen="dlopen"],
6291
[AC_CHECK_LIB([dl], [dlopen],
6292
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
6293
[AC_CHECK_LIB([svld], [dlopen],
6294
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
6295
[AC_CHECK_LIB([dld], [dld_link],
6296
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
6305
if test "x$lt_cv_dlopen" != xno; then
6311
case $lt_cv_dlopen in
6313
save_CPPFLAGS="$CPPFLAGS"
6314
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6316
save_LDFLAGS="$LDFLAGS"
6317
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6320
LIBS="$lt_cv_dlopen_libs $LIBS"
6322
AC_CACHE_CHECK([whether a program can dlopen itself],
6323
lt_cv_dlopen_self, [dnl
6324
_LT_AC_TRY_DLOPEN_SELF(
6325
lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
6326
lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
6329
if test "x$lt_cv_dlopen_self" = xyes; then
6330
LDFLAGS="$LDFLAGS $link_static_flag"
6331
AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
6332
lt_cv_dlopen_self_static, [dnl
6333
_LT_AC_TRY_DLOPEN_SELF(
6334
lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
6335
lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
6339
CPPFLAGS="$save_CPPFLAGS"
6340
LDFLAGS="$save_LDFLAGS"
6345
case $lt_cv_dlopen_self in
6346
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6347
*) enable_dlopen_self=unknown ;;
6350
case $lt_cv_dlopen_self_static in
6351
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6352
*) enable_dlopen_self_static=unknown ;;
6355
])# AC_LIBTOOL_DLOPEN_SELF
6358
# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
6359
# ---------------------------------
6360
# Check to see if options -c and -o are simultaneously supported by compiler
6361
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
6362
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
6363
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
6364
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
6365
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
6366
$rm -r conftest 2>/dev/null
6370
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6372
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6373
# that will create temporary files in the current directory regardless of
6374
# the output directory. Thus, making CWD read-only will cause this test
6375
# to fail, enabling locking or at least warning the user not to do parallel
6379
lt_compiler_flag="-o out/conftest2.$ac_objext"
6380
# Insert the option either (1) after the last *FLAGS variable, or
6381
# (2) before a word containing "conftest.", or (3) at the end.
6382
# Note that $ac_compile itself does not contain backslashes and begins
6383
# with a dollar sign (not a hyphen), so the echo should work correctly.
6384
lt_compile=`echo "$ac_compile" | $SED \
6385
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6386
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
6387
-e 's:$: $lt_compiler_flag:'`
6388
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
6389
(eval "$lt_compile" 2>out/conftest.err)
6391
cat out/conftest.err >&AS_MESSAGE_LOG_FD
6392
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
6393
if (exit $ac_status) && test -s out/conftest2.$ac_objext
6395
# The compiler can only warn and ignore the option if not recognized
6396
# So say no if there are warnings
6397
if test ! -s out/conftest.err; then
6398
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
6408
])# AC_LIBTOOL_PROG_CC_C_O
6411
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
6412
# -----------------------------------------
6413
# Check to see if we can do hard links to lock some files if needed
6414
AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
6415
[AC_REQUIRE([_LT_AC_LOCK])dnl
6417
hard_links="nottested"
6418
if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
6419
# do not overwrite the value of need_locks provided by the user
6420
AC_MSG_CHECKING([if we can lock with hard links])
6423
ln conftest.a conftest.b 2>/dev/null && hard_links=no
6425
ln conftest.a conftest.b 2>&5 || hard_links=no
6426
ln conftest.a conftest.b 2>/dev/null && hard_links=no
6427
AC_MSG_RESULT([$hard_links])
6428
if test "$hard_links" = no; then
6429
AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
6435
])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
6440
AC_DEFUN([AC_LIBTOOL_OBJDIR],
6441
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
6442
[rm -f .libs 2>/dev/null
6443
mkdir .libs 2>/dev/null
6444
if test -d .libs; then
6447
# MS-DOS does not allow filenames that begin with a dot.
6450
rmdir .libs 2>/dev/null])
6451
objdir=$lt_cv_objdir
6452
])# AC_LIBTOOL_OBJDIR
6455
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
6456
# ----------------------------------------------
6457
# Check hardcoding attributes.
6458
AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
6459
[AC_MSG_CHECKING([how to hardcode library paths into programs])
6460
_LT_AC_TAGVAR(hardcode_action, $1)=
6461
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
6462
test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
6463
test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
6465
# We can hardcode non-existant directories.
6466
if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
6467
# If the only mechanism to avoid hardcoding is shlibpath_var, we
6468
# have to relink, otherwise we might link with an installed library
6469
# when we should be linking with a yet-to-be-installed one
6470
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
6471
test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
6472
# Linking always hardcodes the temporary library directory.
6473
_LT_AC_TAGVAR(hardcode_action, $1)=relink
6475
# We can link without hardcoding, and we can hardcode nonexisting dirs.
6476
_LT_AC_TAGVAR(hardcode_action, $1)=immediate
6479
# We cannot hardcode anything, or else we can only hardcode existing
6481
_LT_AC_TAGVAR(hardcode_action, $1)=unsupported
6483
AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
6485
if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
6486
# Fast installation is not supported
6487
enable_fast_install=no
6488
elif test "$shlibpath_overrides_runpath" = yes ||
6489
test "$enable_shared" = no; then
6490
# Fast installation is not necessary
6491
enable_fast_install=needless
6493
])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
6496
# AC_LIBTOOL_SYS_LIB_STRIP
6497
# ------------------------
6498
AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
6501
AC_MSG_CHECKING([whether stripping libraries is possible])
6502
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6503
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6504
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6505
AC_MSG_RESULT([yes])
6507
# FIXME - insert some real tests, host_os isn't really good enough
6510
if test -n "$STRIP" ; then
6511
striplib="$STRIP -x"
6512
AC_MSG_RESULT([yes])
6522
])# AC_LIBTOOL_SYS_LIB_STRIP
6525
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
6526
# -----------------------------
6527
# PORTME Fill in your ld.so characteristics
6528
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
6529
[AC_MSG_CHECKING([dynamic linker characteristics])
6531
libname_spec='lib$name'
6539
shlibpath_overrides_runpath=unknown
6541
dynamic_linker="$host_os ld.so"
6542
sys_lib_dlsearch_path_spec="/lib /usr/lib"
6543
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6544
need_lib_prefix=unknown
6545
hardcode_into_libs=no
6547
# when you set need_version to no, make sure it does not cause -set_version
6548
# flags to be left without arguments
6549
need_version=unknown
6554
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6555
shlibpath_var=LIBPATH
6557
# AIX 3 has no versioning support, so we append a major version to the name.
6558
soname_spec='${libname}${release}${shared_ext}$major'
6565
hardcode_into_libs=yes
6566
if test "$host_cpu" = ia64; then
6567
# AIX 5 supports IA64
6568
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6569
shlibpath_var=LD_LIBRARY_PATH
6571
# With GCC up to 2.95.x, collect2 would create an import file
6572
# for dependence libraries. The import file would start with
6573
# the line `#! .'. This would cause the generated library to
6574
# depend on `.', always an invalid library. This was fixed in
6575
# development snapshots of GCC prior to 3.0.
6577
aix4 | aix4.[[01]] | aix4.[[01]].*)
6578
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6580
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6587
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6588
# soname into executable. Probably we can add versioning support to
6589
# collect2, so additional links can be useful in future.
6590
if test "$aix_use_runtimelinking" = yes; then
6591
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
6592
# instead of lib<name>.a to let people know that these are not
6593
# typical AIX shared libraries.
6594
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6596
# We preserve .a as extension for shared libraries through AIX4.2
6597
# and later when we are not doing run time linking.
6598
library_names_spec='${libname}${release}.a $libname.a'
6599
soname_spec='${libname}${release}${shared_ext}$major'
6601
shlibpath_var=LIBPATH
6606
library_names_spec='$libname.ixlibrary $libname.a'
6607
# Create ${libname}_ixlibrary.a entries in /sys/libs.
6608
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'
6612
library_names_spec='${libname}${shared_ext}'
6613
dynamic_linker="$host_os ld.so"
6614
shlibpath_var=LIBRARY_PATH
6620
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6621
soname_spec='${libname}${release}${shared_ext}$major'
6622
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6623
shlibpath_var=LD_LIBRARY_PATH
6624
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6625
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6626
# the default ld.so.conf also contains /usr/contrib/lib and
6627
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6628
# libtool to hard-code these into programs
6631
cygwin* | mingw* | pw32*)
6632
version_type=windows
6637
case $GCC,$host_os in
6638
yes,cygwin* | yes,mingw* | yes,pw32*)
6639
library_names_spec='$libname.dll.a'
6640
# DLL is installed to $(libdir)/../bin by postinstall_cmds
6641
postinstall_cmds='base_file=`basename \${file}`~
6642
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6643
dldir=$destdir/`dirname \$dlpath`~
6644
test -d \$dldir || mkdir -p \$dldir~
6645
$install_prog $dir/$dlname \$dldir/$dlname'
6646
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6647
dlpath=$dir/\$dldll~
6649
shlibpath_overrides_runpath=yes
6653
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
6654
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
6655
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6658
# MinGW DLLs use traditional 'lib' prefix
6659
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
6660
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6661
if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
6662
# It is most probably a Windows format PATH printed by
6663
# mingw gcc, but we are running on Cygwin. Gcc prints its search
6664
# path with ; separators, and with drive letters. We can handle the
6665
# drive letters (cygwin fileutils understands them), so leave them,
6666
# especially as we might pass files found there to a mingw objdump,
6667
# which wouldn't understand a cygwinified path. Ahh.
6668
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6670
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6674
# pw32 DLLs use 'pw' prefix rather than 'lib'
6675
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6681
library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
6684
dynamic_linker='Win32 ld.exe'
6685
# FIXME: first we should search . and the directory the executable is in
6689
darwin* | rhapsody*)
6690
dynamic_linker="$host_os dyld"
6694
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6695
soname_spec='${libname}${release}${major}$shared_ext'
6696
shlibpath_overrides_runpath=yes
6697
shlibpath_var=DYLD_LIBRARY_PATH
6698
shrext='$(test .$module = .yes && echo .so || echo .dylib)'
6699
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6700
if test "$GCC" = yes; then
6701
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
6703
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6705
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6712
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6713
soname_spec='${libname}${release}${shared_ext}$major'
6714
shlibpath_var=LD_LIBRARY_PATH
6725
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6726
soname_spec='${libname}${release}${shared_ext}$major'
6727
shlibpath_var=LD_LIBRARY_PATH
6728
shlibpath_overrides_runpath=no
6729
hardcode_into_libs=yes
6730
dynamic_linker='GNU ld.so'
6734
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6735
version_type=freebsd-$objformat
6736
case $version_type in
6738
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6743
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6747
shlibpath_var=LD_LIBRARY_PATH
6750
shlibpath_overrides_runpath=yes
6752
freebsd3.[01]* | freebsdelf3.[01]*)
6753
shlibpath_overrides_runpath=yes
6754
hardcode_into_libs=yes
6757
shlibpath_overrides_runpath=no
6758
hardcode_into_libs=yes
6767
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6768
soname_spec='${libname}${release}${shared_ext}$major'
6769
shlibpath_var=LD_LIBRARY_PATH
6770
hardcode_into_libs=yes
6773
hpux9* | hpux10* | hpux11*)
6774
# Give a soname corresponding to the major version so that dld.sl refuses to
6775
# link against other versions.
6782
hardcode_into_libs=yes
6783
dynamic_linker="$host_os dld.so"
6784
shlibpath_var=LD_LIBRARY_PATH
6785
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6786
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6787
soname_spec='${libname}${release}${shared_ext}$major'
6788
if test "X$HPUX_IA64_MODE" = X32; then
6789
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6791
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6793
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6797
hardcode_into_libs=yes
6798
dynamic_linker="$host_os dld.sl"
6799
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6800
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6801
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6802
soname_spec='${libname}${release}${shared_ext}$major'
6803
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6804
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6808
dynamic_linker="$host_os dld.sl"
6809
shlibpath_var=SHLIB_PATH
6810
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6811
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6812
soname_spec='${libname}${release}${shared_ext}$major'
6815
# HP-UX runs *really* slowly unless shared libraries are mode 555.
6816
postinstall_cmds='chmod 555 $lib'
6819
irix5* | irix6* | nonstopux*)
6821
nonstopux*) version_type=nonstopux ;;
6823
if test "$lt_cv_prog_gnu_ld" = yes; then
6831
soname_spec='${libname}${release}${shared_ext}$major'
6832
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6834
irix5* | nonstopux*)
6838
case $LD in # libtool.m4 will add one of these switches to LD
6839
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6840
libsuff= shlibsuff= libmagic=32-bit;;
6841
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6842
libsuff=32 shlibsuff=N32 libmagic=N32;;
6843
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6844
libsuff=64 shlibsuff=64 libmagic=64-bit;;
6845
*) libsuff= shlibsuff= libmagic=never-match;;
6849
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6850
shlibpath_overrides_runpath=no
6851
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6852
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6853
hardcode_into_libs=yes
6856
# No shared lib support for Linux oldld, aout, or coff.
6857
linux*oldld* | linux*aout* | linux*coff*)
6861
# This must be Linux ELF.
6866
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6867
soname_spec='${libname}${release}${shared_ext}$major'
6868
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6870
if test "x$LINUX_64_MODE" = x64; then
6871
# Some platforms are per default 64-bit, so there's no /lib64
6872
if test -d /lib64; then
6876
shlibpath_var=LD_LIBRARY_PATH
6877
shlibpath_overrides_runpath=no
6878
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
6879
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
6880
# This implies no fast_install, which is unacceptable.
6881
# Some rework will be needed to allow for fast_install
6882
# before this can be enabled.
6883
hardcode_into_libs=yes
6885
# We used to test for /lib/ld.so.1 and disable shared libraries on
6886
# powerpc, because MkLinux only supported shared libraries with the
6887
# GNU dynamic linker. Since this was broken with cross compilers,
6888
# most powerpc-linux boxes support dynamic linking these days and
6889
# people can always --disable-shared, the test was removed, and we
6890
# assume the GNU/Linux dynamic linker is in use.
6891
dynamic_linker='GNU/Linux ld.so'
6898
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6899
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6900
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6901
dynamic_linker='NetBSD (a.out) ld.so'
6903
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
6904
soname_spec='${libname}${release}${shared_ext}$major'
6905
dynamic_linker='NetBSD ld.elf_so'
6907
shlibpath_var=LD_LIBRARY_PATH
6908
shlibpath_overrides_runpath=yes
6909
hardcode_into_libs=yes
6914
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6915
shlibpath_var=LD_LIBRARY_PATH
6916
shlibpath_overrides_runpath=yes
6923
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6924
soname_spec='${libname}${release}${shared_ext}$major'
6925
shlibpath_var=LD_LIBRARY_PATH
6926
shlibpath_overrides_runpath=yes
6933
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6934
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6935
shlibpath_var=LD_LIBRARY_PATH
6936
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6938
openbsd2.[[89]] | openbsd2.[[89]].*)
6939
shlibpath_overrides_runpath=no
6942
shlibpath_overrides_runpath=yes
6946
shlibpath_overrides_runpath=yes
6951
libname_spec='$name'
6954
library_names_spec='$libname${shared_ext} $libname.a'
6955
dynamic_linker='OS/2 ld.exe'
6956
shlibpath_var=LIBPATH
6959
osf3* | osf4* | osf5*)
6963
soname_spec='${libname}${release}${shared_ext}$major'
6964
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6965
shlibpath_var=LD_LIBRARY_PATH
6966
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6967
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6972
soname_spec='${libname}${release}${shared_ext}$major'
6973
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6974
shlibpath_var=LD_LIBRARY_PATH
6981
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6982
soname_spec='${libname}${release}${shared_ext}$major'
6983
shlibpath_var=LD_LIBRARY_PATH
6984
shlibpath_overrides_runpath=yes
6985
hardcode_into_libs=yes
6986
# ldd complains unless libraries are executable
6987
postinstall_cmds='chmod +x $lib'
6992
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6993
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6994
shlibpath_var=LD_LIBRARY_PATH
6995
shlibpath_overrides_runpath=yes
6996
if test "$with_gnu_ld" = yes; then
7002
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7004
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7005
soname_spec='${libname}${release}${shared_ext}$major'
7006
shlibpath_var=LD_LIBRARY_PATH
7007
case $host_vendor in
7009
shlibpath_overrides_runpath=no
7011
export_dynamic_flag_spec='${wl}-Blargedynsym'
7012
runpath_var=LD_RUN_PATH
7020
shlibpath_overrides_runpath=no
7021
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7027
if test -d /usr/nec ;then
7029
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7030
soname_spec='$libname${shared_ext}.$major'
7031
shlibpath_var=LD_LIBRARY_PATH
7037
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7038
soname_spec='${libname}${release}${shared_ext}$major'
7039
shlibpath_var=LD_LIBRARY_PATH
7046
AC_MSG_RESULT([$dynamic_linker])
7047
test "$dynamic_linker" = no && can_build_shared=no
7048
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
7053
AC_DEFUN([_LT_AC_TAGCONFIG],
7054
[AC_ARG_WITH([tags],
7055
[AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
7056
[include additional configurations @<:@automatic@:>@])],
7057
[tagnames="$withval"])
7059
if test -f "$ltmain" && test -n "$tagnames"; then
7060
if test ! -f "${ofile}"; then
7061
AC_MSG_WARN([output file `$ofile' does not exist])
7064
if test -z "$LTCC"; then
7065
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
7066
if test -z "$LTCC"; then
7067
AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
7069
AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
7073
# Extract list of available tagged configurations in $ofile.
7074
# Note that this assumes the entire list is on one line.
7075
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
7077
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7078
for tagname in $tagnames; do
7080
# Check whether tagname contains only valid characters
7081
case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
7083
*) AC_MSG_ERROR([invalid tag name: $tagname])
7087
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
7089
AC_MSG_ERROR([tag name \"$tagname\" already exists])
7092
# Update the list of available tags.
7093
if test -n "$tagname"; then
7094
echo appending configuration tag \"$tagname\" to $ofile
7098
if test -n "$CXX" && test "X$CXX" != "Xno"; then
7099
AC_LIBTOOL_LANG_CXX_CONFIG
7106
if test -n "$F77" && test "X$F77" != "Xno"; then
7107
AC_LIBTOOL_LANG_F77_CONFIG
7114
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
7115
AC_LIBTOOL_LANG_GCJ_CONFIG
7122
AC_LIBTOOL_LANG_RC_CONFIG
7126
AC_MSG_ERROR([Unsupported tag name: $tagname])
7130
# Append the new tag name to the list of available tags.
7131
if test -n "$tagname" ; then
7132
available_tags="$available_tags $tagname"
7138
# Now substitute the updated list of available tags.
7139
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
7140
mv "${ofile}T" "$ofile"
7144
AC_MSG_ERROR([unable to update list of available tagged configurations.])
7147
])# _LT_AC_TAGCONFIG
7152
# enable checks for dlopen support
7153
AC_DEFUN([AC_LIBTOOL_DLOPEN],
7154
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
7155
])# AC_LIBTOOL_DLOPEN
7158
# AC_LIBTOOL_WIN32_DLL
7159
# --------------------
7160
# declare package support for building win32 dll's
7161
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
7162
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
7163
])# AC_LIBTOOL_WIN32_DLL
7166
# AC_ENABLE_SHARED([DEFAULT])
7167
# ---------------------------
7168
# implement the --enable-shared flag
7169
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
4349
7170
AC_DEFUN([AC_ENABLE_SHARED],
4350
7171
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
4351
AC_ARG_ENABLE(shared,
4352
changequote(<<, >>)dnl
4353
<< --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
4354
changequote([, ])dnl
4355
[p=${PACKAGE-default}
4357
yes) enable_shared=yes ;;
4358
no) enable_shared=no ;;
4361
# Look at the argument we got. We use all the common list separators.
4362
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4363
for pkg in $enableval; do
4364
if test "X$pkg" = "X$p"; then
4371
enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
4374
# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
4375
AC_DEFUN([AC_DISABLE_SHARED], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4376
AC_ENABLE_SHARED(no)])
4378
# AC_ENABLE_STATIC - implement the --enable-static flag
4379
# Usage: AC_ENABLE_STATIC[(DEFAULT)]
4380
# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
7172
AC_ARG_ENABLE([shared],
7173
[AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
7174
[build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
7175
[p=${PACKAGE-default}
7177
yes) enable_shared=yes ;;
7178
no) enable_shared=no ;;
7181
# Look at the argument we got. We use all the common list separators.
7182
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7183
for pkg in $enableval; do
7185
if test "X$pkg" = "X$p"; then
7192
[enable_shared=]AC_ENABLE_SHARED_DEFAULT)
7193
])# AC_ENABLE_SHARED
7198
#- set the default shared flag to --disable-shared
7199
AC_DEFUN([AC_DISABLE_SHARED],
7200
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
7201
AC_ENABLE_SHARED(no)
7202
])# AC_DISABLE_SHARED
7205
# AC_ENABLE_STATIC([DEFAULT])
7206
# ---------------------------
7207
# implement the --enable-static flag
7208
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
4382
7209
AC_DEFUN([AC_ENABLE_STATIC],
4383
7210
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
4384
AC_ARG_ENABLE(static,
4385
changequote(<<, >>)dnl
4386
<< --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
4387
changequote([, ])dnl
4388
[p=${PACKAGE-default}
4390
yes) enable_static=yes ;;
4391
no) enable_static=no ;;
4394
# Look at the argument we got. We use all the common list separators.
4395
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4396
for pkg in $enableval; do
4397
if test "X$pkg" = "X$p"; then
4404
enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
4407
# AC_DISABLE_STATIC - set the default static flag to --disable-static
7211
AC_ARG_ENABLE([static],
7212
[AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
7213
[build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
7214
[p=${PACKAGE-default}
7216
yes) enable_static=yes ;;
7217
no) enable_static=no ;;
7220
# Look at the argument we got. We use all the common list separators.
7221
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7222
for pkg in $enableval; do
7224
if test "X$pkg" = "X$p"; then
7231
[enable_static=]AC_ENABLE_STATIC_DEFAULT)
7232
])# AC_ENABLE_STATIC
7237
# set the default static flag to --disable-static
4408
7238
AC_DEFUN([AC_DISABLE_STATIC],
4409
7239
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4410
AC_ENABLE_STATIC(no)])
4413
# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
4414
# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
4415
# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
7240
AC_ENABLE_STATIC(no)
7241
])# AC_DISABLE_STATIC
7244
# AC_ENABLE_FAST_INSTALL([DEFAULT])
7245
# ---------------------------------
7246
# implement the --enable-fast-install flag
7247
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
4417
7248
AC_DEFUN([AC_ENABLE_FAST_INSTALL],
4418
7249
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
4419
AC_ARG_ENABLE(fast-install,
4420
changequote(<<, >>)dnl
4421
<< --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
4422
changequote([, ])dnl
4423
[p=${PACKAGE-default}
4425
yes) enable_fast_install=yes ;;
4426
no) enable_fast_install=no ;;
4428
enable_fast_install=no
4429
# Look at the argument we got. We use all the common list separators.
4430
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4431
for pkg in $enableval; do
4432
if test "X$pkg" = "X$p"; then
4433
enable_fast_install=yes
4439
enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
4442
# AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install
7250
AC_ARG_ENABLE([fast-install],
7251
[AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
7252
[optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
7253
[p=${PACKAGE-default}
7255
yes) enable_fast_install=yes ;;
7256
no) enable_fast_install=no ;;
7258
enable_fast_install=no
7259
# Look at the argument we got. We use all the common list separators.
7260
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7261
for pkg in $enableval; do
7263
if test "X$pkg" = "X$p"; then
7264
enable_fast_install=yes
7270
[enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
7271
])# AC_ENABLE_FAST_INSTALL
7274
# AC_DISABLE_FAST_INSTALL
7275
# -----------------------
7276
# set the default to --disable-fast-install
4443
7277
AC_DEFUN([AC_DISABLE_FAST_INSTALL],
4444
7278
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4445
AC_ENABLE_FAST_INSTALL(no)])
4447
# AC_LIBTOOL_PICMODE - implement the --with-pic flag
4448
# Usage: AC_LIBTOOL_PICMODE[(MODE)]
4449
# Where MODE is either `yes' or `no'. If omitted, it defaults to
7279
AC_ENABLE_FAST_INSTALL(no)
7280
])# AC_DISABLE_FAST_INSTALL
7283
# AC_LIBTOOL_PICMODE([MODE])
7284
# --------------------------
7285
# implement the --with-pic flag
7286
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
4451
7287
AC_DEFUN([AC_LIBTOOL_PICMODE],
4452
7288
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4453
pic_mode=ifelse($#,1,$1,default)])
4456
# AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library
7289
pic_mode=ifelse($#,1,$1,default)
7290
])# AC_LIBTOOL_PICMODE
7295
# This is predefined starting with Autoconf 2.54, so this conditional
7296
# definition can be removed once we require Autoconf 2.54 or later.
7297
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
7298
[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
7299
[if echo a | (grep -E '(a|b)') >/dev/null 2>&1
7300
then ac_cv_prog_egrep='grep -E'
7301
else ac_cv_prog_egrep='egrep'
7303
EGREP=$ac_cv_prog_egrep
7308
# AC_PATH_TOOL_PREFIX
7309
# -------------------
7310
# find a file program which can recognise shared library
4457
7311
AC_DEFUN([AC_PATH_TOOL_PREFIX],
4458
[AC_MSG_CHECKING([for $1])
7312
[AC_REQUIRE([AC_PROG_EGREP])dnl
7313
AC_MSG_CHECKING([for $1])
4459
7314
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
4460
7315
[case $MAGIC_CMD in
7316
[[\\/*] | ?:[\\/]*])
4462
7317
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4465
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4468
ac_save_MAGIC_CMD="$MAGIC_CMD"
4469
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7320
lt_save_MAGIC_CMD="$MAGIC_CMD"
7321
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4470
7322
dnl $ac_dummy forces splitting on constant user-supplied paths.
4471
7323
dnl POSIX.2 word splitting is done only on the output of word expansions,
4472
7324
dnl not every word. This closes a longstanding sh security hole.
4473
7325
ac_dummy="ifelse([$2], , $PATH, [$2])"
4474
7326
for ac_dir in $ac_dummy; do
4475
7328
test -z "$ac_dir" && ac_dir=.
4476
7329
if test -f $ac_dir/$1; then
4477
7330
lt_cv_path_MAGIC_CMD="$ac_dir/$1"
4900
7833
if test x"$enable_ltdl_install" = x"yes"; then
4901
7834
ac_configure_args="$ac_configure_args --enable-ltdl-install"
4902
7835
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
4903
INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
7836
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
4905
7838
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4906
7839
LIBLTDL="-lltdl"
4911
# If this macro is not defined by Autoconf, define it here.
4912
ifdef([AC_PROVIDE_IFELSE],
4914
[define([AC_PROVIDE_IFELSE],
4915
[ifdef([AC_PROVIDE_$1],
4918
# AC_LIBTOOL_CXX - enable support for C++ libraries
4919
AC_DEFUN([AC_LIBTOOL_CXX], [AC_REQUIRE([_AC_LIBTOOL_CXX])])
4921
AC_DEFUN([_AC_LIBTOOL_CXX],
7842
# For backwards non-gettext consistent compatibility...
7844
])# AC_LIBLTDL_INSTALLABLE
7849
# enable support for C++ libraries
7850
AC_DEFUN([AC_LIBTOOL_CXX],
7851
[AC_REQUIRE([_LT_AC_LANG_CXX])
7857
AC_DEFUN([_LT_AC_LANG_CXX],
4922
7858
[AC_REQUIRE([AC_PROG_CXX])
4923
7859
AC_REQUIRE([AC_PROG_CXXCPP])
4924
LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
4926
lt_save_CFLAGS="$CFLAGS"
4927
dnl Make sure LTCC is set to the C compiler, i.e. set LTCC before CC
4928
dnl is set to the C++ compiler.
4929
AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
4930
MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4931
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4932
AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4933
objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4934
deplibs_check_method="$deplibs_check_method" \
4935
file_magic_cmd="$file_magic_cmd" \
4936
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
4937
--build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
4938
|| AC_MSG_ERROR([libtool tag configuration failed])
4940
CFLAGS="$lt_save_CFLAGS"
4942
# Redirect the config.log output again, so that the ltconfig log is not
4943
# clobbered by the next message.
4944
exec 5>>./config.log
4947
# AC_LIBTOOL_GCJ - enable support for GCJ libraries
4948
AC_DEFUN([AC_LIBTOOL_GCJ],[AC_REQUIRE([_AC_LIBTOOL_GCJ])])
4950
AC_DEFUN([_AC_LIBTOOL_GCJ],
4951
[AC_REQUIRE([AC_PROG_LIBTOOL])
4952
AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
7860
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
7866
# enable support for Fortran 77 libraries
7867
AC_DEFUN([AC_LIBTOOL_F77],
7868
[AC_REQUIRE([_LT_AC_LANG_F77])
7874
AC_DEFUN([_LT_AC_LANG_F77],
7875
[AC_REQUIRE([AC_PROG_F77])
7876
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
7882
# enable support for GCJ libraries
7883
AC_DEFUN([AC_LIBTOOL_GCJ],
7884
[AC_REQUIRE([_LT_AC_LANG_GCJ])
7890
AC_DEFUN([_LT_AC_LANG_GCJ],
7891
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
4953
7892
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
4954
7893
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
4955
7894
[ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
4956
[ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
4957
[AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
4958
LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
4960
lt_save_CFLAGS="$CFLAGS"
4961
dnl Make sure LTCC is set to the C compiler, i.e. set LTCC before CC
4962
dnl is set to the C++ compiler.
4963
AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
4964
MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4965
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4966
AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4967
objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4968
deplibs_check_method="$deplibs_check_method" \
4969
file_magic_cmd="$file_magic_cmd" \
4970
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
4971
--build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
4972
|| AC_MSG_ERROR([libtool tag configuration failed])
4974
CFLAGS="$lt_save_CFLAGS"
4976
# Redirect the config.log output again, so that the ltconfig log is not
4977
# clobbered by the next message.
4978
exec 5>>./config.log
7895
[ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
7896
[AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
7897
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
7903
# enable support for Windows resource files
7904
AC_DEFUN([AC_LIBTOOL_RC],
7905
[AC_REQUIRE([LT_AC_PROG_RC])
7906
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
7910
# AC_LIBTOOL_LANG_C_CONFIG
7911
# ------------------------
7912
# Ensure that the configuration vars for the C compiler are
7913
# suitably defined. Those variables are subsequently used by
7914
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
7915
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
7916
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
7920
# Source file extension for C test sources.
7923
# Object file extension for compiled C test sources.
7925
_LT_AC_TAGVAR(objext, $1)=$objext
7927
# Code to be used in simple compile tests
7928
lt_simple_compile_test_code="int some_variable = 0;\n"
7930
# Code to be used in simple link tests
7931
lt_simple_link_test_code='int main(){return(0);}\n'
7936
# Check for any special shared library compilation flags.
7938
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
7939
if test "$GCC" = no; then
7942
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
7946
if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
7947
AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
7948
if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$]_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[[ ]]" >/dev/null; then :
7950
AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
7951
_LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
7957
# Check to make sure the static flag actually works.
7959
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
7960
_LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
7961
$_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
7963
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
7966
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
7967
AC_LIBTOOL_PROG_COMPILER_PIC($1)
7968
AC_LIBTOOL_PROG_CC_C_O($1)
7969
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
7970
AC_LIBTOOL_PROG_LD_SHLIBS($1)
7971
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
7972
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
7973
AC_LIBTOOL_SYS_LIB_STRIP
7974
AC_LIBTOOL_DLOPEN_SELF($1)
7976
# Report which librarie types wil actually be built
7977
AC_MSG_CHECKING([if libtool supports shared libraries])
7978
AC_MSG_RESULT([$can_build_shared])
7980
AC_MSG_CHECKING([whether to build shared libraries])
7981
test "$can_build_shared" = "no" && enable_shared=no
7983
# On AIX, shared libraries and static libraries use the same namespace, and
7984
# are all built from PIC.
7987
test "$enable_shared" = yes && enable_static=no
7988
if test -n "$RANLIB"; then
7989
archive_cmds="$archive_cmds~\$RANLIB \$lib"
7990
postinstall_cmds='$RANLIB $lib'
7995
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7996
test "$enable_shared" = yes && enable_static=no
7999
darwin* | rhapsody*)
8000
if test "$GCC" = yes; then
8001
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
8003
rhapsody* | darwin1.[[012]])
8004
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
8007
test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
8010
output_verbose_link_cmd='echo'
8011
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8012
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8013
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8014
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8015
_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}'
8016
_LT_AC_TAGVAR(hardcode_direct, $1)=no
8017
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
8018
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
8019
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
8020
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
8022
_LT_AC_TAGVAR(ld_shlibs, $1)=no
8026
AC_MSG_RESULT([$enable_shared])
8028
AC_MSG_CHECKING([whether to build static libraries])
8029
# Make sure either enable_shared or enable_static is yes.
8030
test "$enable_shared" = yes || enable_static=yes
8031
AC_MSG_RESULT([$enable_static])
8033
AC_LIBTOOL_CONFIG($1)
8037
])# AC_LIBTOOL_LANG_C_CONFIG
8040
# AC_LIBTOOL_LANG_CXX_CONFIG
8041
# --------------------------
8042
# Ensure that the configuration vars for the C compiler are
8043
# suitably defined. Those variables are subsequently used by
8044
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
8045
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
8046
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
8048
AC_REQUIRE([AC_PROG_CXX])
8049
AC_REQUIRE([AC_PROG_CXXCPP])
8051
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
8052
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
8053
_LT_AC_TAGVAR(always_export_symbols, $1)=no
8054
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
8055
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
8056
_LT_AC_TAGVAR(hardcode_direct, $1)=no
8057
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
8058
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
8059
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
8060
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
8061
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
8062
_LT_AC_TAGVAR(module_cmds, $1)=
8063
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
8064
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
8065
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
8066
_LT_AC_TAGVAR(no_undefined_flag, $1)=
8067
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
8068
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
8070
# Dependencies to place before and after the object being linked:
8071
_LT_AC_TAGVAR(predep_objects, $1)=
8072
_LT_AC_TAGVAR(postdep_objects, $1)=
8073
_LT_AC_TAGVAR(predeps, $1)=
8074
_LT_AC_TAGVAR(postdeps, $1)=
8075
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
8077
# Source file extension for C++ test sources.
8080
# Object file extension for compiled C++ test sources.
8082
_LT_AC_TAGVAR(objext, $1)=$objext
8084
# Code to be used in simple compile tests
8085
lt_simple_compile_test_code="int some_variable = 0;\n"
8087
# Code to be used in simple link tests
8088
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
8090
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
8093
# Allow CC to be a program name with arguments.
8098
lt_save_with_gnu_ld=$with_gnu_ld
8099
lt_save_path_LD=$lt_cv_path_LD
8100
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
8101
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
8103
unset lt_cv_prog_gnu_ld
8105
if test -n "${lt_cv_path_LDCXX+set}"; then
8106
lt_cv_path_LD=$lt_cv_path_LDCXX
8110
test -z "${LDCXX+set}" || LD=$LDCXX
8113
_LT_AC_TAGVAR(compiler, $1)=$CC
8114
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
8116
# We don't want -fno-exception wen compiling C++ code, so set the
8117
# no_builtin_flag separately
8118
if test "$GXX" = yes; then
8119
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
8121
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
8124
if test "$GXX" = yes; then
8125
# Set up default GNU C++ configuration
8129
# Check if GNU C++ uses GNU ld as the underlying linker, since the
8130
# archiving commands below assume that GNU ld is being used.
8131
if test "$with_gnu_ld" = yes; then
8132
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
8133
_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'
8135
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
8136
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
8138
# If archive_cmds runs LD, not CC, wlarc should be empty
8139
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
8140
# investigate it a little bit more. (MM)
8143
# ancient GNU ld didn't support --whole-archive et. al.
8144
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
8145
grep 'no-whole-archive' > /dev/null; then
8146
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8148
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
8154
# A generic and very simple default shared library creation
8155
# command for GNU C++ for the case where it uses the native
8156
# linker, instead of GNU ld. If possible, this setting should
8157
# overridden to take advantage of the native linker features on
8158
# the platform it is being used on.
8159
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
8162
# Commands to make compiler produce verbose output that lists
8163
# what "hidden" libraries, object files and flags are used when
8164
# linking a shared library.
8165
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
8173
# PORTME: fill in a description of your system's C++ link characteristics
8174
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
8175
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
8178
# FIXME: insert proper C++ library support
8179
_LT_AC_TAGVAR(ld_shlibs, $1)=no
8182
if test "$host_cpu" = ia64; then
8183
# On IA64, the linker does run time linking by default, so we don't
8184
# have to do anything special.
8185
aix_use_runtimelinking=no
8186
exp_sym_flag='-Bexport'
8189
# KDE requires run time linking. Make it the default.
8190
aix_use_runtimelinking=yes
8191
exp_sym_flag='-bexport'
8192
no_entry_flag='-bnoentry'
8195
# When large executables or shared objects are built, AIX ld can
8196
# have problems creating the table of contents. If linking a library
8197
# or program results in "error TOC overflow" add -mminimal-toc to
8198
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8199
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8201
_LT_AC_TAGVAR(archive_cmds, $1)=''
8202
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
8203
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
8204
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
8206
if test "$GXX" = yes; then
8207
case $host_os in aix4.[012]|aix4.[012].*)
8208
# We only want to do this on AIX 4.2 and lower, the check
8209
# below for broken collect2 doesn't work under 4.3+
8210
collect2name=`${CC} -print-prog-name=collect2`
8211
if test -f "$collect2name" && \
8212
strings "$collect2name" | grep resolve_lib_name >/dev/null
8214
# We have reworked collect2
8215
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
8217
# We have old collect2
8218
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
8219
# It fails to find uninstalled libraries when the uninstalled
8220
# path is not listed in the libpath. Setting hardcode_minus_L
8221
# to unsupported forces relinking
8222
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8223
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8224
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
8227
shared_flag='-shared'
8230
if test "$host_cpu" = ia64; then
8231
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8232
# chokes on -Wl,-G. The following line is correct:
8235
if test "$aix_use_runtimelinking" = yes; then
8236
shared_flag='-qmkshrobj ${wl}-G'
8238
shared_flag='-qmkshrobj'
8243
# Let the compiler handle the export list.
8244
_LT_AC_TAGVAR(always_export_symbols, $1)=no
8245
if test "$aix_use_runtimelinking" = yes; then
8246
# Warning - without using the other runtime loading flags (-brtl),
8247
# -berok will link without error, but may produce a broken library.
8248
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
8249
# Determine the default libpath from the value encoded in an empty executable.
8250
_LT_AC_SYS_LIBPATH_AIX
8251
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
8253
_LT_AC_TAGVAR(archive_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
8254
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $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"
8256
if test "$host_cpu" = ia64; then
8257
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
8258
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
8259
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
8261
# Determine the default libpath from the value encoded in an empty executable.
8262
_LT_AC_SYS_LIBPATH_AIX
8263
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
8264
# Warning - without using the other run time loading flags,
8265
# -berok will link without error, but may produce a broken library.
8266
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
8267
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
8268
# -bexpall does not export symbols beginning with underscore (_)
8269
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
8270
# Exported symbols can be pulled into shared objects from archives
8271
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
8272
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
8273
# This is similar to how AIX traditionally builds it's shared libraries.
8274
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8279
case $cc_basename in
8281
# FIXME: insert proper C++ library support
8282
_LT_AC_TAGVAR(ld_shlibs, $1)=no
8287
cygwin* | mingw* | pw32*)
8288
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
8289
# as there is no search path for DLLs.
8290
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8291
_LT_AC_TAGVAR(allow_undefined_flag, $1)=no
8292
_LT_AC_TAGVAR(always_export_symbols, $1)=no
8293
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
8295
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8296
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8297
# If the export-symbols file already is a .def file (1st line
8298
# is EXPORTS), use it as is; otherwise, prepend...
8299
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8300
cp $export_symbols $output_objdir/$soname.def;
8302
echo EXPORTS > $output_objdir/$soname.def;
8303
cat $export_symbols >> $output_objdir/$soname.def;
8305
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8307
_LT_AC_TAGVAR(ld_shlibs, $1)=no
8311
darwin* | rhapsody*)
8312
if test "$GXX" = yes; then
8313
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
8315
rhapsody* | darwin1.[[012]])
8316
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
8319
test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
8322
lt_int_apple_cc_single_mod=no
8323
output_verbose_link_cmd='echo'
8324
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
8325
lt_int_apple_cc_single_mod=yes
8327
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8328
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8330
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8332
_LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8334
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8335
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8336
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8338
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8340
_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}'
8341
_LT_AC_TAGVAR(hardcode_direct, $1)=no
8342
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
8343
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
8344
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
8345
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
8347
_LT_AC_TAGVAR(ld_shlibs, $1)=no
8352
case $cc_basename in
8354
# FIXME: insert proper C++ library support
8355
_LT_AC_TAGVAR(ld_shlibs, $1)=no
8358
# Green Hills C++ Compiler
8359
# FIXME: insert proper C++ library support
8360
_LT_AC_TAGVAR(ld_shlibs, $1)=no
8363
# FIXME: insert proper C++ library support
8364
_LT_AC_TAGVAR(ld_shlibs, $1)=no
8369
# C++ shared libraries reported to be fairly broken before switch to ELF
8370
_LT_AC_TAGVAR(ld_shlibs, $1)=no
8373
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
8376
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
8378
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
8383
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8384
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8385
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8386
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
8387
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
8388
# but as the default
8389
# location of the library.
8391
case $cc_basename in
8393
# FIXME: insert proper C++ library support
8394
_LT_AC_TAGVAR(ld_shlibs, $1)=no
8397
_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'
8398
# Commands to make compiler produce verbose output that lists
8399
# what "hidden" libraries, object files and flags are used when
8400
# linking a shared library.
8402
# There doesn't appear to be a way to prevent this compiler from
8403
# explicitly linking system object files so we need to strip them
8404
# from the output so that they don't get included in the library
8406
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
8409
if test "$GXX" = yes; then
8410
_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'
8412
# FIXME: insert proper C++ library support
8413
_LT_AC_TAGVAR(ld_shlibs, $1)=no
8419
if test $with_gnu_ld = no; then
8422
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8423
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
8424
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8427
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8430
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8431
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8432
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8438
_LT_AC_TAGVAR(hardcode_direct, $1)=no
8439
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8442
_LT_AC_TAGVAR(hardcode_direct, $1)=no
8443
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8444
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
8445
# but as the default
8446
# location of the library.
8449
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
8450
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
8451
# but as the default
8452
# location of the library.
8456
case $cc_basename in
8458
# FIXME: insert proper C++ library support
8459
_LT_AC_TAGVAR(ld_shlibs, $1)=no
8464
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
8467
_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'
8470
# Commands to make compiler produce verbose output that lists
8471
# what "hidden" libraries, object files and flags are used when
8472
# linking a shared library.
8474
# There doesn't appear to be a way to prevent this compiler from
8475
# explicitly linking system object files so we need to strip them
8476
# from the output so that they don't get included in the library
8478
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'
8481
if test "$GXX" = yes; then
8482
if test $with_gnu_ld = no; then
8485
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
8488
_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'
8493
# FIXME: insert proper C++ library support
8494
_LT_AC_TAGVAR(ld_shlibs, $1)=no
8500
case $cc_basename in
8503
_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 ${objdir}/so_locations -o $lib'
8505
# Archives containing C++ object files must be created using
8506
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
8507
# necessary to make sure instantiated templates are included
8509
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
8512
if test "$GXX" = yes; then
8513
if test "$with_gnu_ld" = no; then
8514
_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}${objdir}/so_locations -o $lib'
8516
_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'
8519
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
8522
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8523
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8526
case $cc_basename in
8528
# Kuck and Associates, Inc. (KAI) C++ Compiler
8530
# KCC will only create a shared library if the output file
8531
# ends with ".so" (or ".sl" for HP-UX), so rename the library
8532
# to its proper name (with version) after linking.
8533
_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'
8534
_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'
8535
# Commands to make compiler produce verbose output that lists
8536
# what "hidden" libraries, object files and flags are used when
8537
# linking a shared library.
8539
# There doesn't appear to be a way to prevent this compiler from
8540
# explicitly linking system object files so we need to strip them
8541
# from the output so that they don't get included in the library
8543
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'
8545
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
8546
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
8548
# Archives containing C++ object files must be created using
8549
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
8550
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
8555
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
8556
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
8557
_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'
8558
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8559
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
8560
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8564
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
8565
_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'
8567
runpath_var=LD_RUN_PATH
8568
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
8569
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8571
# Commands to make compiler produce verbose output that lists
8572
# what "hidden" libraries, object files and flags are used when
8573
# linking a shared library.
8575
# There doesn't appear to be a way to prevent this compiler from
8576
# explicitly linking system object files so we need to strip them
8577
# from the output so that they don't get included in the library
8579
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'
8584
# FIXME: insert proper C++ library support
8585
_LT_AC_TAGVAR(ld_shlibs, $1)=no
8588
# FIXME: insert proper C++ library support
8589
_LT_AC_TAGVAR(ld_shlibs, $1)=no
8592
case $cc_basename in
8594
# FIXME: insert proper C++ library support
8595
_LT_AC_TAGVAR(ld_shlibs, $1)=no
8598
# FIXME: insert proper C++ library support
8599
_LT_AC_TAGVAR(ld_shlibs, $1)=no
8604
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8605
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
8607
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8608
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
8609
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8611
# Workaround some broken pre-1.5 toolchains
8612
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
8615
case $cc_basename in
8617
# Kuck and Associates, Inc. (KAI) C++ Compiler
8619
# KCC will only create a shared library if the output file
8620
# ends with ".so" (or ".sl" for HP-UX), so rename the library
8621
# to its proper name (with version) after linking.
8622
_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'
8624
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8625
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8627
# Archives containing C++ object files must be created using
8628
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
8629
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
8633
# Rational C++ 2.4.1
8634
# FIXME: insert proper C++ library support
8635
_LT_AC_TAGVAR(ld_shlibs, $1)=no
8638
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8639
_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 ${objdir}/so_locations -o $lib'
8641
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8642
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8644
# Commands to make compiler produce verbose output that lists
8645
# what "hidden" libraries, object files and flags are used when
8646
# linking a shared library.
8648
# There doesn't appear to be a way to prevent this compiler from
8649
# explicitly linking system object files so we need to strip them
8650
# from the output so that they don't get included in the library
8652
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'
8655
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
8656
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8657
_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}${objdir}/so_locations -o $lib'
8659
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8660
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8662
# Commands to make compiler produce verbose output that lists
8663
# what "hidden" libraries, object files and flags are used when
8664
# linking a shared library.
8665
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
8668
# FIXME: insert proper C++ library support
8669
_LT_AC_TAGVAR(ld_shlibs, $1)=no
8675
case $cc_basename in
8677
# Kuck and Associates, Inc. (KAI) C++ Compiler
8679
# KCC will only create a shared library if the output file
8680
# ends with ".so" (or ".sl" for HP-UX), so rename the library
8681
# to its proper name (with version) after linking.
8682
_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'
8684
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8685
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8687
# Archives containing C++ object files must be created using
8688
# the KAI C++ compiler.
8689
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
8692
# Rational C++ 2.4.1
8693
# FIXME: insert proper C++ library support
8694
_LT_AC_TAGVAR(ld_shlibs, $1)=no
8697
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
8698
_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 ${objdir}/so_locations -o $lib'
8699
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
8700
echo "-hidden">> $lib.exp~
8701
$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 $objdir/so_locations -o $lib~
8704
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
8705
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8707
# Commands to make compiler produce verbose output that lists
8708
# what "hidden" libraries, object files and flags are used when
8709
# linking a shared library.
8711
# There doesn't appear to be a way to prevent this compiler from
8712
# explicitly linking system object files so we need to strip them
8713
# from the output so that they don't get included in the library
8715
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'
8718
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
8719
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8720
_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}${objdir}/so_locations -o $lib'
8722
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8723
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8725
# Commands to make compiler produce verbose output that lists
8726
# what "hidden" libraries, object files and flags are used when
8727
# linking a shared library.
8728
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
8731
# FIXME: insert proper C++ library support
8732
_LT_AC_TAGVAR(ld_shlibs, $1)=no
8738
# FIXME: insert proper C++ library support
8739
_LT_AC_TAGVAR(ld_shlibs, $1)=no
8742
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
8743
case $cc_basename in
8745
# FIXME: insert proper C++ library support
8746
_LT_AC_TAGVAR(ld_shlibs, $1)=no
8749
# FIXME: insert proper C++ library support
8750
_LT_AC_TAGVAR(ld_shlibs, $1)=no
8755
case $cc_basename in
8758
# FIXME: insert proper C++ library support
8759
_LT_AC_TAGVAR(ld_shlibs, $1)=no
8763
# FIXME: insert proper C++ library support
8764
_LT_AC_TAGVAR(ld_shlibs, $1)=no
8767
# FIXME: insert proper C++ library support
8768
_LT_AC_TAGVAR(ld_shlibs, $1)=no
8773
case $cc_basename in
8775
# Sun C++ 4.2, 5.x and Centerline C++
8776
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
8777
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8778
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8779
$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
8781
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8782
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8784
solaris2.[0-5] | solaris2.[0-5].*) ;;
8786
# The C++ compiler is used as linker so we must use $wl
8787
# flag to pass the commands to the underlying system
8789
# Supported since Solaris 2.6 (maybe 2.5.1?)
8790
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8793
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
8795
# Commands to make compiler produce verbose output that lists
8796
# what "hidden" libraries, object files and flags are used when
8797
# linking a shared library.
8799
# There doesn't appear to be a way to prevent this compiler from
8800
# explicitly linking system object files so we need to strip them
8801
# from the output so that they don't get included in the library
8803
output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
8805
# Archives containing C++ object files must be created using
8806
# "CC -xar", where "CC" is the Sun C++ compiler. This is
8807
# necessary to make sure instantiated templates are included
8809
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
8812
# Green Hills C++ Compiler
8813
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
8815
# The C++ compiler must be used to create the archive.
8816
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
8819
# GNU C++ compiler with Solaris linker
8820
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
8821
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
8822
if $CC --version | grep -v '^2\.7' > /dev/null; then
8823
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
8824
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8825
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
8827
# Commands to make compiler produce verbose output that lists
8828
# what "hidden" libraries, object files and flags are used when
8829
# linking a shared library.
8830
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
8832
# g++ 2.7 appears to require `-G' NOT `-shared' on this
8834
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
8835
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8836
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
8838
# Commands to make compiler produce verbose output that lists
8839
# what "hidden" libraries, object files and flags are used when
8840
# linking a shared library.
8841
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
8844
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
8849
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
8850
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
8853
case $cc_basename in
8855
# NonStop-UX NCC 3.20
8856
# FIXME: insert proper C++ library support
8857
_LT_AC_TAGVAR(ld_shlibs, $1)=no
8860
# FIXME: insert proper C++ library support
8861
_LT_AC_TAGVAR(ld_shlibs, $1)=no
8866
# FIXME: insert proper C++ library support
8867
_LT_AC_TAGVAR(ld_shlibs, $1)=no
8870
# FIXME: insert proper C++ library support
8871
_LT_AC_TAGVAR(ld_shlibs, $1)=no
8874
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
8875
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
8877
_LT_AC_TAGVAR(GCC, $1)="$GXX"
8878
_LT_AC_TAGVAR(LD, $1)="$LD"
8880
AC_LIBTOOL_POSTDEP_PREDEP($1)
8881
AC_LIBTOOL_PROG_COMPILER_PIC($1)
8882
AC_LIBTOOL_PROG_CC_C_O($1)
8883
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
8884
AC_LIBTOOL_PROG_LD_SHLIBS($1)
8885
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
8886
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
8887
AC_LIBTOOL_SYS_LIB_STRIP
8888
AC_LIBTOOL_DLOPEN_SELF($1)
8890
AC_LIBTOOL_CONFIG($1)
8897
with_gnu_ldcxx=$with_gnu_ld
8898
with_gnu_ld=$lt_save_with_gnu_ld
8899
lt_cv_path_LDCXX=$lt_cv_path_LD
8900
lt_cv_path_LD=$lt_save_path_LD
8901
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
8902
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
8903
])# AC_LIBTOOL_LANG_CXX_CONFIG
8905
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
8906
# ------------------------
8907
# Figure out "hidden" library dependencies from verbose
8908
# compiler output when linking a shared library.
8909
# Parse the compiler output and extract the necessary
8910
# objects, libraries and library flags.
8911
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
8912
dnl we can't use the lt_simple_compile_test_code here,
8913
dnl because it contains code intended for an executable,
8914
dnl not a library. It's possible we should let each
8915
dnl tag define a new lt_????_link_test_code variable,
8916
dnl but it's only used here...
8917
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
8919
void foo (void) { a = 0; }
8921
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
8925
Foo (void) { a = 0; }
8930
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
8938
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
8941
public void bar (void) {
8947
dnl Parse the compiler output and extract the necessary
8948
dnl objects, libraries and library flags.
8949
if AC_TRY_EVAL(ac_compile); then
8950
# Parse the compiler output and extract the necessary
8951
# objects, libraries and library flags.
8953
# Sentinel used to keep track of whether or not we are before
8954
# the conftest object file.
8955
pre_test_object_deps_done=no
8957
# The `*' in the case matches for architectures that use `case' in
8958
# $output_verbose_cmd can trigger glob expansion during the loop
8959
# eval without this substitution.
8960
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
8962
for p in `eval $output_verbose_link_cmd`; do
8966
# Some compilers place space between "-{L,R}" and the path.
8969
|| test $p = "-R"; then
8976
if test "$pre_test_object_deps_done" = no; then
8979
# Internal compiler library paths should come after those
8980
# provided the user. The postdeps already come after the
8981
# user supplied libs so there is no need to process them.
8982
if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
8983
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
8985
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
8988
# The "-l" case would never come before the object being
8989
# linked, so don't bother handling this case.
8992
if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
8993
_LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
8995
_LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
9000
*.$objext|*.$libext)
9001
# This assumes that the test object file only shows up
9002
# once in the compiler output.
9003
if test "$p" = "conftest.$objext"; then
9004
pre_test_object_deps_done=yes
9008
if test "$pre_test_object_deps_done" = no; then
9009
if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
9010
_LT_AC_TAGVAR(predep_objects, $1)="$p"
9012
_LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
9015
if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
9016
_LT_AC_TAGVAR(postdep_objects, $1)="$p"
9018
_LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
9023
*) ;; # Ignore the rest.
9031
echo "libtool.m4: error: problem compiling $1 test program"
9034
$rm -f confest.$objext
9036
case " $_LT_AC_TAGVAR(postdeps, $1) " in
9037
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
9039
])# AC_LIBTOOL_POSTDEP_PREDEP
9041
# AC_LIBTOOL_LANG_F77_CONFIG
9042
# ------------------------
9043
# Ensure that the configuration vars for the C compiler are
9044
# suitably defined. Those variables are subsequently used by
9045
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
9046
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
9047
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
9048
[AC_REQUIRE([AC_PROG_F77])
9049
AC_LANG_PUSH(Fortran 77)
9051
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
9052
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
9053
_LT_AC_TAGVAR(always_export_symbols, $1)=no
9054
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
9055
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
9056
_LT_AC_TAGVAR(hardcode_direct, $1)=no
9057
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
9058
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
9059
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
9060
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
9061
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
9062
_LT_AC_TAGVAR(module_cmds, $1)=
9063
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
9064
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
9065
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
9066
_LT_AC_TAGVAR(no_undefined_flag, $1)=
9067
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
9068
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
9070
# Source file extension for f77 test sources.
9073
# Object file extension for compiled f77 test sources.
9075
_LT_AC_TAGVAR(objext, $1)=$objext
9077
# Code to be used in simple compile tests
9078
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
9080
# Code to be used in simple link tests
9081
lt_simple_link_test_code=" program t\n end\n"
9083
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9086
# Allow CC to be a program name with arguments.
9090
_LT_AC_TAGVAR(compiler, $1)=$CC
9091
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9093
AC_MSG_CHECKING([if libtool supports shared libraries])
9094
AC_MSG_RESULT([$can_build_shared])
9096
AC_MSG_CHECKING([whether to build shared libraries])
9097
test "$can_build_shared" = "no" && enable_shared=no
9099
# On AIX, shared libraries and static libraries use the same namespace, and
9100
# are all built from PIC.
9103
test "$enable_shared" = yes && enable_static=no
9104
if test -n "$RANLIB"; then
9105
archive_cmds="$archive_cmds~\$RANLIB \$lib"
9106
postinstall_cmds='$RANLIB $lib'
9110
test "$enable_shared" = yes && enable_static=no
9113
AC_MSG_RESULT([$enable_shared])
9115
AC_MSG_CHECKING([whether to build static libraries])
9116
# Make sure either enable_shared or enable_static is yes.
9117
test "$enable_shared" = yes || enable_static=yes
9118
AC_MSG_RESULT([$enable_static])
9120
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
9122
_LT_AC_TAGVAR(GCC, $1)="$G77"
9123
_LT_AC_TAGVAR(LD, $1)="$LD"
9125
AC_LIBTOOL_PROG_COMPILER_PIC($1)
9126
AC_LIBTOOL_PROG_CC_C_O($1)
9127
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
9128
AC_LIBTOOL_PROG_LD_SHLIBS($1)
9129
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
9130
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
9131
AC_LIBTOOL_SYS_LIB_STRIP
9134
AC_LIBTOOL_CONFIG($1)
9138
])# AC_LIBTOOL_LANG_F77_CONFIG
9141
# AC_LIBTOOL_LANG_GCJ_CONFIG
9142
# --------------------------
9143
# Ensure that the configuration vars for the C compiler are
9144
# suitably defined. Those variables are subsequently used by
9145
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
9146
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
9147
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
9150
# Source file extension for Java test sources.
9153
# Object file extension for compiled Java test sources.
9155
_LT_AC_TAGVAR(objext, $1)=$objext
9157
# Code to be used in simple compile tests
9158
lt_simple_compile_test_code="class foo {}\n"
9160
# Code to be used in simple link tests
9161
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
9163
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9166
# Allow CC to be a program name with arguments.
9170
_LT_AC_TAGVAR(compiler, $1)=$CC
9172
# GCJ did not exist at the time GCC didn't implicitly link libc in.
9173
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
9175
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
9176
AC_LIBTOOL_PROG_COMPILER_PIC($1)
9177
AC_LIBTOOL_PROG_CC_C_O($1)
9178
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
9179
AC_LIBTOOL_PROG_LD_SHLIBS($1)
9180
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
9181
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
9182
AC_LIBTOOL_SYS_LIB_STRIP
9183
AC_LIBTOOL_DLOPEN_SELF($1)
9185
AC_LIBTOOL_CONFIG($1)
9189
])# AC_LIBTOOL_LANG_GCJ_CONFIG
9192
# AC_LIBTOOL_LANG_RC_CONFIG
9193
# --------------------------
9194
# Ensure that the configuration vars for the Windows resource compiler are
9195
# suitably defined. Those variables are subsequently used by
9196
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
9197
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
9198
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
9201
# Source file extension for RC test sources.
9204
# Object file extension for compiled RC test sources.
9206
_LT_AC_TAGVAR(objext, $1)=$objext
9208
# Code to be used in simple compile tests
9209
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
9211
# Code to be used in simple link tests
9212
lt_simple_link_test_code="$lt_simple_compile_test_code"
9214
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9217
# Allow CC to be a program name with arguments.
9221
_LT_AC_TAGVAR(compiler, $1)=$CC
9222
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
9224
AC_LIBTOOL_CONFIG($1)
9228
])# AC_LIBTOOL_LANG_RC_CONFIG
9231
# AC_LIBTOOL_CONFIG([TAGNAME])
9232
# ----------------------------
9233
# If TAGNAME is not passed, then create an initial libtool script
9234
# with a default configuration from the untagged config vars. Otherwise
9235
# add code to config.status for appending the configuration named by
9236
# TAGNAME from the matching tagged config vars.
9237
AC_DEFUN([AC_LIBTOOL_CONFIG],
9238
[# The else clause should only fire when bootstrapping the
9239
# libtool distribution, otherwise you forgot to ship ltmain.sh
9240
# with your package, and you will get complaints that there are
9241
# no rules to generate ltmain.sh.
9242
if test -f "$ltmain"; then
9243
# See if we are running on zsh, and set the options which allow our commands through
9244
# without removal of \ escapes.
9245
if test -n "${ZSH_VERSION+set}" ; then
9246
setopt NO_GLOB_SUBST
9248
# Now quote all the things that may contain metacharacters while being
9249
# careful not to overquote the AC_SUBSTed values. We take copies of the
9250
# variables and quote the copies for generation of the libtool script.
9251
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
9252
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9253
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9254
deplibs_check_method reload_flag reload_cmds need_locks \
9255
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9256
lt_cv_sys_global_symbol_to_c_name_address \
9257
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9258
old_postinstall_cmds old_postuninstall_cmds \
9259
_LT_AC_TAGVAR(compiler, $1) \
9260
_LT_AC_TAGVAR(CC, $1) \
9261
_LT_AC_TAGVAR(LD, $1) \
9262
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
9263
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
9264
_LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
9265
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
9266
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
9267
_LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
9268
_LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
9269
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
9270
_LT_AC_TAGVAR(old_archive_cmds, $1) \
9271
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
9272
_LT_AC_TAGVAR(predep_objects, $1) \
9273
_LT_AC_TAGVAR(postdep_objects, $1) \
9274
_LT_AC_TAGVAR(predeps, $1) \
9275
_LT_AC_TAGVAR(postdeps, $1) \
9276
_LT_AC_TAGVAR(compiler_lib_search_path, $1) \
9277
_LT_AC_TAGVAR(archive_cmds, $1) \
9278
_LT_AC_TAGVAR(archive_expsym_cmds, $1) \
9279
_LT_AC_TAGVAR(postinstall_cmds, $1) \
9280
_LT_AC_TAGVAR(postuninstall_cmds, $1) \
9281
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
9282
_LT_AC_TAGVAR(allow_undefined_flag, $1) \
9283
_LT_AC_TAGVAR(no_undefined_flag, $1) \
9284
_LT_AC_TAGVAR(export_symbols_cmds, $1) \
9285
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
9286
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
9287
_LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
9288
_LT_AC_TAGVAR(hardcode_automatic, $1) \
9289
_LT_AC_TAGVAR(module_cmds, $1) \
9290
_LT_AC_TAGVAR(module_expsym_cmds, $1) \
9291
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
9292
_LT_AC_TAGVAR(exclude_expsyms, $1) \
9293
_LT_AC_TAGVAR(include_expsyms, $1); do
9296
_LT_AC_TAGVAR(old_archive_cmds, $1) | \
9297
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
9298
_LT_AC_TAGVAR(archive_cmds, $1) | \
9299
_LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
9300
_LT_AC_TAGVAR(module_cmds, $1) | \
9301
_LT_AC_TAGVAR(module_expsym_cmds, $1) | \
9302
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
9303
_LT_AC_TAGVAR(export_symbols_cmds, $1) | \
9304
extract_expsyms_cmds | reload_cmds | finish_cmds | \
9305
postinstall_cmds | postuninstall_cmds | \
9306
old_postinstall_cmds | old_postuninstall_cmds | \
9307
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9308
# Double-quote double-evaled strings.
9309
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9312
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9318
*'\[$]0 --fallback-echo"')
9319
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
9324
[cfgfile="${ofile}T"
9325
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9327
AC_MSG_NOTICE([creating $ofile])],
9330
cat <<__EOF__ >> "$cfgfile"
9334
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9335
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9336
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9338
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9339
# Free Software Foundation, Inc.
9341
# This file is part of GNU Libtool:
9342
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9344
# This program is free software; you can redistribute it and/or modify
9345
# it under the terms of the GNU General Public License as published by
9346
# the Free Software Foundation; either version 2 of the License, or
9347
# (at your option) any later version.
9349
# This program is distributed in the hope that it will be useful, but
9350
# WITHOUT ANY WARRANTY; without even the implied warranty of
9351
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9352
# General Public License for more details.
9354
# You should have received a copy of the GNU General Public License
9355
# along with this program; if not, write to the Free Software
9356
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9358
# As a special exception to the GNU General Public License, if you
9359
# distribute this file as part of a program that contains a
9360
# configuration script generated by Autoconf, you may include it under
9361
# the same distribution terms that you use for the rest of that program.
9363
# A sed program that does not truncate output.
9366
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9367
Xsed="$SED -e s/^X//"
9369
# The HP-UX ksh and POSIX shell print the target directory to stdout
9371
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9373
# The names of the tagged configurations supported by this script.
9376
# ### BEGIN LIBTOOL CONFIG],
9377
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
9379
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9381
# Shell to use when invoking shell scripts.
9384
# Whether or not to build shared libraries.
9385
build_libtool_libs=$enable_shared
9387
# Whether or not to build static libraries.
9388
build_old_libs=$enable_static
9390
# Whether or not to add -lc for building shared libraries.
9391
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
9393
# Whether or not to disallow shared libs when runtime libs are static
9394
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
9396
# Whether or not to optimize for fast installation.
9397
fast_install=$enable_fast_install
9400
host_alias=$host_alias
9403
# An echo program that does not interpret backslashes.
9408
AR_FLAGS=$lt_AR_FLAGS
9413
# A language-specific compiler.
9414
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
9416
# Is the compiler the GNU C compiler?
9417
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
9422
# The linker used to build libraries.
9423
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
9425
# Whether we need hard or soft links.
9428
# A BSD-compatible nm program.
9431
# A symbol stripping program
9434
# Used to examine libraries when file_magic_cmd begins "file"
9435
MAGIC_CMD=$MAGIC_CMD
9437
# Used on cygwin: DLL creation program.
9440
# Used on cygwin: object dumper.
9443
# Used on cygwin: assembler.
9446
# The name of the directory that contains temporary libtool files.
9449
# How to create reloadable object files.
9450
reload_flag=$lt_reload_flag
9451
reload_cmds=$lt_reload_cmds
9453
# How to pass a linker flag through the compiler.
9454
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
9456
# Object file suffix (normally "o").
9459
# Old archive suffix (normally "a").
9462
# Shared library suffix (normally ".so").
9465
# Executable file suffix (normally "").
9468
# Additional compiler flags for building library objects.
9469
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
9472
# What is the maximum length of a command?
9473
max_cmd_len=$lt_cv_sys_max_cmd_len
9475
# Does compiler simultaneously support -c and -o options?
9476
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
9478
# Must we lock files when doing compilation ?
9479
need_locks=$lt_need_locks
9481
# Do we need the lib prefix for modules?
9482
need_lib_prefix=$need_lib_prefix
9484
# Do we need a version for libraries?
9485
need_version=$need_version
9487
# Whether dlopen is supported.
9488
dlopen_support=$enable_dlopen
9490
# Whether dlopen of programs is supported.
9491
dlopen_self=$enable_dlopen_self
9493
# Whether dlopen of statically linked programs is supported.
9494
dlopen_self_static=$enable_dlopen_self_static
9496
# Compiler flag to prevent dynamic linking.
9497
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
9499
# Compiler flag to turn off builtin functions.
9500
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
9502
# Compiler flag to allow reflexive dlopens.
9503
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
9505
# Compiler flag to generate shared objects directly from archives.
9506
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
9508
# Compiler flag to generate thread-safe objects.
9509
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
9511
# Library versioning type.
9512
version_type=$version_type
9514
# Format of library name prefix.
9515
libname_spec=$lt_libname_spec
9517
# List of archive names. First name is the real one, the rest are links.
9518
# The last name is the one that the linker finds with -lNAME.
9519
library_names_spec=$lt_library_names_spec
9521
# The coded name of the library, if different from the real name.
9522
soname_spec=$lt_soname_spec
9524
# Commands used to build and install an old-style archive.
9526
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
9527
old_postinstall_cmds=$lt_old_postinstall_cmds
9528
old_postuninstall_cmds=$lt_old_postuninstall_cmds
9530
# Create an old-style archive from a shared archive.
9531
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
9533
# Create a temporary old-style archive to link instead of a shared archive.
9534
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
9536
# Commands used to build and install a shared archive.
9537
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
9538
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
9539
postinstall_cmds=$lt_postinstall_cmds
9540
postuninstall_cmds=$lt_postuninstall_cmds
9542
# Commands used to build a loadable module (assumed same as above if empty)
9543
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
9544
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
9546
# Commands to strip libraries.
9547
old_striplib=$lt_old_striplib
9548
striplib=$lt_striplib
9550
# Dependencies to place before the objects being linked to create a
9552
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
9554
# Dependencies to place after the objects being linked to create a
9556
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
9558
# Dependencies to place before the objects being linked to create a
9560
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
9562
# Dependencies to place after the objects being linked to create a
9564
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
9566
# The library search path used internally by the compiler when linking
9568
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
9570
# Method to check whether dependent libraries are shared objects.
9571
deplibs_check_method=$lt_deplibs_check_method
9573
# Command to use when deplibs_check_method == file_magic.
9574
file_magic_cmd=$lt_file_magic_cmd
9576
# Flag that allows shared libraries with undefined symbols to be built.
9577
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
9579
# Flag that forces no undefined symbols.
9580
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
9582
# Commands used to finish a libtool library installation in a directory.
9583
finish_cmds=$lt_finish_cmds
9585
# Same as above, but a single script fragment to be evaled but not shown.
9586
finish_eval=$lt_finish_eval
9588
# Take the output of nm and produce a listing of raw symbols and C names.
9589
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9591
# Transform the output of nm in a proper C declaration
9592
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9594
# Transform the output of nm in a C name address pair
9595
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9597
# This is the shared library runtime path variable.
9598
runpath_var=$runpath_var
9600
# This is the shared library path variable.
9601
shlibpath_var=$shlibpath_var
9603
# Is shlibpath searched before the hard-coded library search path?
9604
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9606
# How to hardcode a shared library path into an executable.
9607
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
9609
# Whether we should hardcode library paths into libraries.
9610
hardcode_into_libs=$hardcode_into_libs
9612
# Flag to hardcode \$libdir into a binary during linking.
9613
# This must work even if \$libdir does not exist.
9614
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
9616
# If ld is used when linking, flag to hardcode \$libdir into
9617
# a binary during linking. This must work even if \$libdir does
9619
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
9621
# Whether we need a single -rpath flag with a separated argument.
9622
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
9624
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9626
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
9628
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9630
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
9632
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9633
# the resulting binary.
9634
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
9636
# Set to yes if building a shared library automatically hardcodes DIR into the library
9637
# and all subsequent libraries and executables linked against it.
9638
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
9640
# Variables whose values should be saved in libtool wrapper scripts and
9641
# restored at relink time.
9642
variables_saved_for_relink="$variables_saved_for_relink"
9644
# Whether libtool must link a program against all its dependency libraries.
9645
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
9647
# Compile-time system search path for libraries
9648
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9650
# Run-time system search path for libraries
9651
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9653
# Fix the shell variable \$srcfile for the compiler.
9654
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
9656
# Set to yes if exported symbols are required.
9657
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
9659
# The commands to list exported symbols.
9660
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
9662
# The commands to extract the exported symbol list from a shared archive.
9663
extract_expsyms_cmds=$lt_extract_expsyms_cmds
9665
# Symbols that should not be listed in the preloaded symbols.
9666
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
9668
# Symbols that must always be exported.
9669
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
9672
[# ### END LIBTOOL CONFIG],
9673
[# ### END LIBTOOL TAG CONFIG: $tagname])
9680
cat <<\EOF >> "$cfgfile"
9682
# AIX sometimes has problems with the GCC collect2 program. For some
9683
# reason, if we set the COLLECT_NAMES environment variable, the problems
9684
# vanish in a puff of smoke.
9685
if test "X${COLLECT_NAMES+set}" != Xset; then
9687
export COLLECT_NAMES
9693
# We use sed instead of cat because bash on DJGPP gets confused if
9694
# if finds mixed CR/LF and LF-only lines. Since sed operates in
9695
# text mode, it properly converts lines to CR/LF. This bash problem
9696
# is reportedly fixed, but why not run on old versions too?
9697
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9699
mv -f "$cfgfile" "$ofile" || \
9700
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9704
# If there is no Makefile yet, we rely on a make rule to execute
9705
# `config.status --recheck' to rerun these tests and create the
9706
# libtool script then.
9707
test -f Makefile && make "$ltmain"
9709
])# AC_LIBTOOL_CONFIG
9712
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
9713
# -------------------------------------------
9714
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
9715
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
9717
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
9719
if test "$GCC" = yes; then
9720
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
9722
AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
9723
lt_cv_prog_compiler_rtti_exceptions,
9724
[-fno-rtti -fno-exceptions], [],
9725
[_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
9727
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
9730
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
9731
# ---------------------------------
9732
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
9733
[AC_REQUIRE([AC_CANONICAL_HOST])
9734
AC_REQUIRE([AC_PROG_NM])
9735
AC_REQUIRE([AC_OBJEXT])
9736
# Check for command to grab the raw symbol name followed by C symbol from nm.
9737
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
9738
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
9740
# These are sane defaults that work on at least a few old systems.
9741
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9743
# Character class describing NM global symbol codes.
9744
symcode='[[BCDEGRST]]'
9746
# Regexp to match symbols that can be accessed directly from C.
9747
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
9749
# Transform the above into a raw symbol and a C symbol.
9750
symxfrm='\1 \2\3 \3'
9752
# Transform an extracted symbol line into a proper C declaration
9753
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9755
# Transform an extracted symbol line into symbol name and symbol address
9756
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'"
9758
# Define system-specific variables.
9763
cygwin* | mingw* | pw32*)
9764
symcode='[[ABCDGISTW]]'
9766
hpux*) # Its linker distinguishes data from code symbols
9767
if test "$host_cpu" = ia64; then
9768
symcode='[[ABCDEGRST]]'
9770
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9771
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'"
9774
symcode='[[BCDEGRST]]'
9777
symcode='[[BCDEGQRST]]'
9783
symcode='[[DFNSTU]]'
9787
# Handle CRLF in mingw tool chain
9791
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9795
# If we're using GNU nm, then use its standard symbol codes.
9796
case `$NM -V 2>&1` in
9797
*GNU* | *'with BFD'*)
9798
symcode='[[ABCDGISTW]]' ;;
9801
# Try without a prefix undercore, then with it.
9802
for ac_symprfx in "" "_"; do
9804
# Write the raw and C identifiers.
9805
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
9807
# Check to see that the pipe works correctly.
9811
cat > conftest.$ac_ext <<EOF
9816
void nm_test_func(){}
9820
int main(){nm_test_var='a';nm_test_func();return(0);}
9823
if AC_TRY_EVAL(ac_compile); then
9824
# Now try to grab the symbols.
9826
if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
9827
# Try sorting and uniquifying the output.
9828
if sort "$nlist" | uniq > "$nlist"T; then
9829
mv -f "$nlist"T "$nlist"
9834
# Make sure that we snagged all the symbols we need.
9835
if grep ' nm_test_var$' "$nlist" >/dev/null; then
9836
if grep ' nm_test_func$' "$nlist" >/dev/null; then
9837
cat <<EOF > conftest.$ac_ext
9843
# Now generate the symbol file.
9844
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9846
cat <<EOF >> conftest.$ac_ext
9847
#if defined (__STDC__) && __STDC__
9848
# define lt_ptr_t void *
9850
# define lt_ptr_t char *
9854
/* The mapping between symbol names and symbols. */
9859
lt_preloaded_symbols[[]] =
9862
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9863
cat <<\EOF >> conftest.$ac_ext
9871
# Now try linking the two files.
9872
mv conftest.$ac_objext conftstm.$ac_objext
9873
lt_save_LIBS="$LIBS"
9874
lt_save_CFLAGS="$CFLAGS"
9875
LIBS="conftstm.$ac_objext"
9876
CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
9877
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
9880
LIBS="$lt_save_LIBS"
9881
CFLAGS="$lt_save_CFLAGS"
9883
echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
9886
echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
9889
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
9892
echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
9893
cat conftest.$ac_ext >&5
9895
rm -f conftest* conftst*
9897
# Do not use the global_symbol_pipe unless it works.
9898
if test "$pipe_works" = yes; then
9901
lt_cv_sys_global_symbol_pipe=
9905
if test -z "$lt_cv_sys_global_symbol_pipe"; then
9906
lt_cv_sys_global_symbol_to_cdecl=
9908
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9909
AC_MSG_RESULT(failed)
9913
]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
9916
# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
9917
# ---------------------------------------
9918
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
9919
[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
9920
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
9921
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
9923
AC_MSG_CHECKING([for $compiler option to produce PIC])
9925
# C++ specific cases for pic, static, wl, etc.
9926
if test "$GXX" = yes; then
9927
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9928
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
9932
# All AIX code is PIC.
9933
if test "$host_cpu" = ia64; then
9934
# AIX 5 now supports IA64 processor
9935
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
9939
# FIXME: we need at least 68020 code to build shared libraries, but
9940
# adding the `-m68020' flag to GCC prevents building anything better,
9942
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
9944
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9945
# PIC is the default for these OSes.
9947
mingw* | os2* | pw32*)
9948
# This hack is so that the source file can tell whether it is being
9949
# built for inclusion in a dll (and should export symbols for example).
9950
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
9952
darwin* | rhapsody*)
9953
# PIC is the default on this platform
9954
# Common symbols not allowed in MH_DYLIB files
9955
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
9958
# DJGPP does not support shared libraries at all
9959
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
9962
if test -d /usr/nec; then
9963
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
9967
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9973
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
9978
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
9984
# All AIX code is PIC.
9985
if test "$host_cpu" = ia64; then
9986
# AIX 5 now supports IA64 processor
9987
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
9989
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
9993
case $cc_basename in
9995
# Green Hills C++ Compiler
9996
# _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"
10001
case $cc_basename in
10003
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
10006
# Green Hills C++ Compiler
10007
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
10014
# FreeBSD uses GNU C++
10016
hpux9* | hpux10* | hpux11*)
10017
case $cc_basename in
10019
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10020
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10021
if test "$host_cpu" != ia64; then
10022
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
10026
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10027
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10028
case "$host_cpu" in
10033
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
10041
irix5* | irix6* | nonstopux*)
10042
case $cc_basename in
10044
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10045
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
10046
# CC pic flag -KPIC is the default.
10053
case $cc_basename in
10056
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
10057
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
10061
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10062
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
10063
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
10067
# Make sure the PIC flag is empty. It appears that all Alpha
10068
# Linux and Compaq Tru64 Unix objects are PIC.
10069
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
10070
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
10081
case $cc_basename in
10083
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
10091
osf3* | osf4* | osf5*)
10092
case $cc_basename in
10094
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
10097
# Rational C++ 2.4.1
10098
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
10101
# Digital/Compaq C++
10102
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10103
# Make sure the PIC flag is empty. It appears that all Alpha
10104
# Linux and Compaq Tru64 Unix objects are PIC.
10105
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
10106
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
10115
case $cc_basename in
10117
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
10124
case $cc_basename in
10126
# Sun C++ 4.2, 5.x and Centerline C++
10127
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
10128
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10129
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
10132
# Green Hills C++ Compiler
10133
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
10140
case $cc_basename in
10143
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
10144
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10148
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
10155
case $cc_basename in
10157
# NonStop-UX NCC 3.20
10158
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
10169
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
10175
if test "$GCC" = yes; then
10176
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10177
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
10181
# All AIX code is PIC.
10182
if test "$host_cpu" = ia64; then
10183
# AIX 5 now supports IA64 processor
10184
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10189
# FIXME: we need at least 68020 code to build shared libraries, but
10190
# adding the `-m68020' flag to GCC prevents building anything better,
10192
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
10195
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10196
# PIC is the default for these OSes.
10199
mingw* | pw32* | os2*)
10200
# This hack is so that the source file can tell whether it is being
10201
# built for inclusion in a dll (and should export symbols for example).
10202
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
10205
darwin* | rhapsody*)
10206
# PIC is the default on this platform
10207
# Common symbols not allowed in MH_DYLIB files
10208
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
10212
# Just because we use GCC doesn't mean we suddenly get shared libraries
10213
# on systems that don't support them.
10214
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
10219
if test -d /usr/nec; then
10220
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
10225
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10226
# not for PA HP-UX.
10227
case "$host_cpu" in
10232
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
10238
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
10242
# PORTME Check for flag to pass linker flags through the system compiler.
10245
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10246
if test "$host_cpu" = ia64; then
10247
# AIX 5 now supports IA64 processor
10248
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10250
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
10254
mingw* | pw32* | os2*)
10255
# This hack is so that the source file can tell whether it is being
10256
# built for inclusion in a dll (and should export symbols for example).
10257
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
10260
hpux9* | hpux10* | hpux11*)
10261
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10262
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10263
# not for PA HP-UX.
10264
case "$host_cpu" in
10269
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
10272
# Is there a better lt_prog_compiler_static that works with the bundled CC?
10273
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
10276
irix5* | irix6* | nonstopux*)
10277
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10278
# PIC (with -KPIC) is the default.
10279
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
10283
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
10284
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10290
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10291
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
10292
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
10295
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10296
# All Alpha code is PIC.
10297
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
10302
osf3* | osf4* | osf5*)
10303
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10304
# All OSF/1 code is PIC.
10305
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
10309
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
10310
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
10314
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10315
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
10316
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10320
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
10321
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
10322
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10325
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10326
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10327
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
10328
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10332
if test -d /usr/nec ;then
10333
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
10334
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10339
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
10340
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10344
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
10349
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
10352
# Check to make sure the PIC flag actually works.
10354
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
10355
AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
10356
_LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
10357
[$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
10358
[case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
10360
*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
10362
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
10363
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
10366
# For platforms which do not support PIC, -DPIC is meaningless:
10368
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
10371
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
10377
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
10378
# ------------------------------------
10379
# See if the linker supports building shared libraries.
10380
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
10381
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
10382
ifelse([$1],[CXX],[
10383
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10386
# If we're using GNU nm, then we don't want the "-C" option.
10387
# -C means demangle to AIX nm, but means don't demangle with GNU nm
10388
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10389
_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'
10391
_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'
10395
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
10398
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
10401
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10406
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
10407
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
10408
_LT_AC_TAGVAR(archive_cmds, $1)=
10409
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
10410
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
10411
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
10412
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
10413
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
10414
_LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
10415
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
10416
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
10417
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
10418
_LT_AC_TAGVAR(hardcode_direct, $1)=no
10419
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
10420
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
10421
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
10422
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
10423
_LT_AC_TAGVAR(module_cmds, $1)=
10424
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
10425
_LT_AC_TAGVAR(always_export_symbols, $1)=no
10426
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10427
# include_expsyms should be a list of space-separated symbols to be *always*
10428
# included in the symbol list
10429
_LT_AC_TAGVAR(include_expsyms, $1)=
10430
# exclude_expsyms can be an extended regexp of symbols to exclude
10431
# it will be wrapped by ` (' and `)$', so one must not match beginning or
10432
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10433
# as well as any symbol that contains `d'.
10434
_LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
10435
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10436
# platforms (ab)use it in PIC code, but their linkers get confused if
10437
# the symbol is explicitly referenced. Since portable code cannot
10438
# rely on this symbol name, it's probably fine to never include it in
10439
# preloaded symbol tables.
10440
extract_expsyms_cmds=
10443
cygwin* | mingw* | pw32*)
10444
# FIXME: the MSVC++ port hasn't been tested in a loooong time
10445
# When not using gcc, we currently assume that we are using
10446
# Microsoft Visual C++.
10447
if test "$GCC" != yes; then
10456
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
10457
if test "$with_gnu_ld" = yes; then
10458
# If archive_cmds runs LD, not CC, wlarc should be empty
10461
# See if GNU ld supports shared libraries.
10463
aix3* | aix4* | aix5*)
10464
# On AIX/PPC, the GNU linker is very broken
10465
if test "$host_cpu" != ia64; then
10466
_LT_AC_TAGVAR(ld_shlibs, $1)=no
10469
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
10470
*** to be unable to reliably create shared libraries on AIX.
10471
*** Therefore, libtool is disabling shared libraries support. If you
10472
*** really care for shared libraries, you may want to modify your PATH
10473
*** so that a non-GNU linker is found, and then restart.
10480
_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)'
10481
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
10482
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
10484
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
10485
# that the semantics of dynamic libraries on AmigaOS, at least up
10486
# to version 4, is to share data among multiple programs linked
10487
# with the same dynamic library. Since this doesn't match the
10488
# behavior of shared libraries on other platforms, we can't use
10490
_LT_AC_TAGVAR(ld_shlibs, $1)=no
10494
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10495
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
10496
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10497
# support --undefined. This deserves some investigation. FIXME
10498
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10500
_LT_AC_TAGVAR(ld_shlibs, $1)=no
10504
cygwin* | mingw* | pw32*)
10505
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
10506
# as there is no search path for DLLs.
10507
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
10508
_LT_AC_TAGVAR(allow_undefined_flag, $1)=no
10509
_LT_AC_TAGVAR(always_export_symbols, $1)=no
10510
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
10511
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
10513
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10514
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10515
# If the export-symbols file already is a .def file (1st line
10516
# is EXPORTS), use it as is; otherwise, prepend...
10517
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10518
cp $export_symbols $output_objdir/$soname.def;
10520
echo EXPORTS > $output_objdir/$soname.def;
10521
cat $export_symbols >> $output_objdir/$soname.def;
10523
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10530
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10531
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10534
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10535
_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'
10540
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
10541
_LT_AC_TAGVAR(ld_shlibs, $1)=no
10544
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10545
*** create shared libraries on Solaris systems. Therefore, libtool
10546
*** is disabling shared libraries support. We urge you to upgrade GNU
10547
*** binutils to release 2.9.1 or newer. Another option is to modify
10548
*** your PATH or compiler configuration so that the native linker is
10549
*** used, and then restart.
10552
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10553
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10554
_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'
10556
_LT_AC_TAGVAR(ld_shlibs, $1)=no
10561
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10563
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
10564
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
10568
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10569
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10570
_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'
10572
_LT_AC_TAGVAR(ld_shlibs, $1)=no
10577
if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
10578
runpath_var=LD_RUN_PATH
10579
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
10580
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
10581
# ancient GNU ld didn't support --whole-archive et. al.
10582
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
10583
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10585
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
10589
# PORTME fill in a description of your system's linker (not GNU ld)
10592
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
10593
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
10594
_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'
10595
# Note: this linker hardcodes the directories in LIBPATH if there
10596
# are no directories specified by -L.
10597
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
10598
if test "$GCC" = yes && test -z "$link_static_flag"; then
10599
# Neither direct hardcoding nor static linking is supported with a
10601
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
10606
if test "$host_cpu" = ia64; then
10607
# On IA64, the linker does run time linking by default, so we don't
10608
# have to do anything special.
10609
aix_use_runtimelinking=no
10610
exp_sym_flag='-Bexport'
10613
# If we're using GNU nm, then we don't want the "-C" option.
10614
# -C means demangle to AIX nm, but means don't demangle with GNU nm
10615
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10616
_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'
10618
_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'
10621
# KDE requires run time linking. Make it the default.
10622
aix_use_runtimelinking=yes
10623
exp_sym_flag='-bexport'
10624
no_entry_flag='-bnoentry'
10627
# When large executables or shared objects are built, AIX ld can
10628
# have problems creating the table of contents. If linking a library
10629
# or program results in "error TOC overflow" add -mminimal-toc to
10630
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10631
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10633
_LT_AC_TAGVAR(archive_cmds, $1)=''
10634
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
10635
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
10636
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
10638
if test "$GCC" = yes; then
10639
case $host_os in aix4.[012]|aix4.[012].*)
10640
# We only want to do this on AIX 4.2 and lower, the check
10641
# below for broken collect2 doesn't work under 4.3+
10642
collect2name=`${CC} -print-prog-name=collect2`
10643
if test -f "$collect2name" && \
10644
strings "$collect2name" | grep resolve_lib_name >/dev/null
10646
# We have reworked collect2
10647
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
10649
# We have old collect2
10650
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
10651
# It fails to find uninstalled libraries when the uninstalled
10652
# path is not listed in the libpath. Setting hardcode_minus_L
10653
# to unsupported forces relinking
10654
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
10655
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
10656
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
10659
shared_flag='-shared'
10662
if test "$host_cpu" = ia64; then
10663
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10664
# chokes on -Wl,-G. The following line is correct:
10667
if test "$aix_use_runtimelinking" = yes; then
10668
shared_flag='-qmkshrobj ${wl}-G'
10670
shared_flag='-qmkshrobj'
10675
# Let the compiler handle the export list.
10676
_LT_AC_TAGVAR(always_export_symbols, $1)=no
10677
if test "$aix_use_runtimelinking" = yes; then
10678
# Warning - without using the other runtime loading flags (-brtl),
10679
# -berok will link without error, but may produce a broken library.
10680
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
10681
# Determine the default libpath from the value encoded in an empty executable.
10682
_LT_AC_SYS_LIBPATH_AIX
10683
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
10684
_LT_AC_TAGVAR(archive_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
10685
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $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"
10687
if test "$host_cpu" = ia64; then
10688
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
10689
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
10690
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10692
# Determine the default libpath from the value encoded in an empty executable.
10693
_LT_AC_SYS_LIBPATH_AIX
10694
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
10695
# Warning - without using the other run time loading flags,
10696
# -berok will link without error, but may produce a broken library.
10697
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
10698
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
10699
# -bexpall does not export symbols beginning with underscore (_)
10700
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
10701
# Exported symbols can be pulled into shared objects from archives
10702
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
10703
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
10704
# This is similar to how AIX traditionally builds it's shared libraries.
10705
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10711
_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)'
10712
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
10713
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
10714
# see comment about different semantics on the GNU ld section
10715
_LT_AC_TAGVAR(ld_shlibs, $1)=no
10719
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
10722
cygwin* | mingw* | pw32*)
10723
# When not using gcc, we currently assume that we are using
10724
# Microsoft Visual C++.
10725
# hardcode_libdir_flag_spec is actually meaningless, as there is
10726
# no search path for DLLs.
10727
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
10728
_LT_AC_TAGVAR(allow_undefined_flag, $1)=no
10729
# Tell ltmain to make .lib files, not .a files.
10731
# Tell ltmain to make .dll files, not .so files.
10733
# FIXME: Setting linknames here is a bad hack.
10734
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10735
# The linker will automatically build a .lib file if we build a DLL.
10736
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
10737
# FIXME: Should let the user specify the lib program.
10738
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
10739
fix_srcfile_path='`cygpath -w "$srcfile"`'
10740
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
10743
darwin* | rhapsody*)
10744
if test "$GXX" = yes ; then
10745
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
10747
rhapsody* | darwin1.[[012]])
10748
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
10751
test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
10754
lt_int_apple_cc_single_mod=no
10755
output_verbose_link_cmd='echo'
10756
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10757
lt_int_apple_cc_single_mod=yes
10759
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10760
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10762
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10764
_LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10765
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10766
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10767
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10769
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10771
_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}'
10772
_LT_AC_TAGVAR(hardcode_direct, $1)=no
10773
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
10774
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
10775
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
10776
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
10778
_LT_AC_TAGVAR(ld_shlibs, $1)=no
10783
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10784
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
10785
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
10789
_LT_AC_TAGVAR(ld_shlibs, $1)=no
10792
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10793
# support. Future versions do this automatically, but an explicit c++rt0.o
10794
# does not break anything, and helps significantly (at the cost of a little
10797
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10798
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
10799
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
10800
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
10803
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
10805
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10806
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
10807
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
10808
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
10811
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10813
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10814
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
10815
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
10816
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
10820
if test "$GCC" = yes; then
10821
_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'
10823
_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'
10825
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
10826
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
10827
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
10829
# hardcode_minus_L: Not really in the search PATH,
10830
# but as the default location of the library.
10831
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
10832
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
10836
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10837
case "$host_cpu" in
10839
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10842
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10846
case "$host_cpu" in
10848
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
10851
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10855
if test "$with_gnu_ld" = no; then
10856
case "$host_cpu" in
10858
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
10859
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
10860
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
10861
_LT_AC_TAGVAR(hardcode_direct, $1)=no
10862
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
10865
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
10866
_LT_AC_TAGVAR(hardcode_direct, $1)=no
10867
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
10869
# hardcode_minus_L: Not really in the search PATH,
10870
# but as the default location of the library.
10871
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
10874
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
10875
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
10876
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
10877
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
10879
# hardcode_minus_L: Not really in the search PATH,
10880
# but as the default location of the library.
10881
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
10887
irix5* | irix6* | nonstopux*)
10888
if test "$GCC" = yes; then
10889
_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'
10891
_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'
10892
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
10894
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
10895
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
10896
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
10900
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10901
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10903
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10905
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
10906
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
10907
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
10911
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10912
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
10913
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
10914
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
10915
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
10919
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
10920
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
10921
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10922
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10923
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
10924
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
10927
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
10928
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10929
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
10932
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10933
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
10940
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
10941
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
10942
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
10943
_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'
10944
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10948
if test "$GCC" = yes; then
10949
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
10950
_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'
10952
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
10953
_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'
10955
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
10956
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
10959
osf4* | osf5*) # as osf3* with the addition of -msym flag
10960
if test "$GCC" = yes; then
10961
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
10962
_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'
10963
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
10965
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
10966
_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'
10967
_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~
10968
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
10970
# Both c and cxx compiler support -rpath directly
10971
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
10973
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
10977
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10978
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
10979
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
10980
runpath_var=LD_RUN_PATH
10981
hardcode_runpath_var=yes
10985
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
10986
if test "$GCC" = yes; then
10987
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10988
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10989
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10991
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10992
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10993
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10995
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
10996
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
10998
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
10999
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
11000
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
11002
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
11006
if test "x$host_vendor" = xsequent; then
11007
# Use $CC to link under sequent, because it throws in some extra .o
11008
# files that make .init and .fini sections work.
11009
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11011
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11013
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
11014
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
11015
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
11016
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11020
case $host_vendor in
11022
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11023
_LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
11026
## LD is ld it makes a PLAMLIB
11027
## CC just makes a GrossModule.
11028
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11029
_LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
11030
_LT_AC_TAGVAR(hardcode_direct, $1)=no
11033
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11034
_LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
11037
runpath_var='LD_RUN_PATH'
11038
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11042
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11043
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11044
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
11048
if test -d /usr/nec; then
11049
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11050
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11051
runpath_var=LD_RUN_PATH
11052
hardcode_runpath_var=yes
11053
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
11058
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11059
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
11060
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
11061
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11062
hardcode_runpath_var=yes
11063
runpath_var=LD_RUN_PATH
11066
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
11067
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
11068
if test "$GCC" = yes; then
11069
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11071
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11073
runpath_var='LD_RUN_PATH'
11074
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11078
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
11079
# $CC -shared without GNU ld will not create a library from C++
11080
# object files and a static libstdc++, better avoid it by now
11081
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11082
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11083
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
11084
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
11085
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11086
runpath_var='LD_RUN_PATH'
11090
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11091
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
11092
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11096
_LT_AC_TAGVAR(ld_shlibs, $1)=no
11101
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
11102
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
11104
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11105
if test "$GCC" = yes; then
11106
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11110
# Do we need to explicitly link libc?
11112
case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
11114
# Assume -lc should be added
11115
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
11117
if test "$enable_shared" = yes && test "$GCC" = yes; then
11118
case $_LT_AC_TAGVAR(archive_cmds, $1) in
11120
# FIXME: we may have to deal with multi-command sequences.
11123
# Test whether the compiler implicitly links with -lc since on some
11124
# systems, -lgcc has to come before -lc. If gcc already passes -lc
11125
# to ld, don't add -lc before -lgcc.
11126
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
11128
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11130
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
11133
libobjs=conftest.$ac_objext
11135
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
11141
lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
11142
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
11143
if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
11145
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
11147
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
11149
_LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
11151
cat conftest.err 1>&5
11154
AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
11160
])# AC_LIBTOOL_PROG_LD_SHLIBS
11163
# _LT_AC_FILE_LTDLL_C
11164
# -------------------
11165
# Be careful that the start marker always follows a newline.
11166
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
11167
# /* ltdll.c starts here */
11168
# #define WIN32_LEAN_AND_MEAN
11169
# #include <windows.h>
11170
# #undef WIN32_LEAN_AND_MEAN
11171
# #include <stdio.h>
11173
# #ifndef __CYGWIN__
11174
# # ifdef __CYGWIN32__
11175
# # define __CYGWIN__ __CYGWIN32__
11179
# #ifdef __cplusplus
11182
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
11183
# #ifdef __cplusplus
11187
# #ifdef __CYGWIN__
11188
# #include <cygwin/cygwin_dll.h>
11189
# DECLARE_CYGWIN_DLL( DllMain );
11191
# HINSTANCE __hDllInstance_base;
11194
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
11196
# __hDllInstance_base = hInst;
11199
# /* ltdll.c ends here */
11200
])# _LT_AC_FILE_LTDLL_C
11203
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
11204
# ---------------------------------
11205
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
4982
11209
AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
4983
11210
AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
4984
11211
AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])