From: Ralf Wildenhues Date: Sun, 5 Feb 2006 10:25:50 +0000 (+0000) Subject: * ltmain.in (link mode) < test_compile >: Fix a couple of instances X-Git-Tag: release-1-5-23b~57 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=35e313f3d2f193a19bdf40097a93ad6c9c4ea28e;p=thirdparty%2Flibtool.git * ltmain.in (link mode) < test_compile >: Fix a couple of instances where `test .. -ne ..' would possibly compare non-numbers. Clean up a bit. --- diff --git a/ChangeLog b/ChangeLog index 9ecbc3d8b..c3fc52b80 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-02-05 Ralf Wildenhues + + * ltmain.in (link mode) < test_compile >: Fix a couple of instances + where `test .. -ne ..' would possibly compare non-numbers. Clean up a + bit. + 2006-02-03 Ralf Wildenhues * libtool.m4 [ solaris ] (AC_LIBTOOL_LANG_CXX_CONFIG) diff --git a/ltmain.in b/ltmain.in index d9503d194..37398b54e 100644 --- a/ltmain.in +++ b/ltmain.in @@ -3524,13 +3524,12 @@ EOF int main() { return 0; } EOF $rm conftest - $LTCC $LTCFLAGS -o conftest conftest.c $deplibs - if test "$?" -eq 0 ; then + if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then ldd_output=`ldd conftest` for i in $deplibs; do name=`expr $i : '-l\(.*\)'` # If $name is empty we are operating on a -L argument. - if test "$name" != "" && test "$name" -ne "0"; then + if test "$name" != "" && test "$name" != "0"; then if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $i "*) @@ -3569,9 +3568,7 @@ EOF # If $name is empty we are operating on a -L argument. if test "$name" != "" && test "$name" != "0"; then $rm conftest - $LTCC $LTCFLAGS -o conftest conftest.c $i - # Did it work? - if test "$?" -eq 0 ; then + if $LTCC $LTCFLAGS -o conftest conftest.c $i; then ldd_output=`ldd conftest` if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in @@ -3603,7 +3600,7 @@ EOF droppeddeps=yes $echo $echo "*** Warning! Library $i is needed by this library but I was not able to" - $echo "*** make it link in! You will probably need to install it or some" + $echo "*** make it link in! You will probably need to install it or some" $echo "*** library that it depends on before this library will be fully" $echo "*** functional. Installing it before continuing would be even better." fi