]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtool.m4: Fix the echo test which I broke earlier.
authorPeter O'Gorman <peter@pogma.com>
Wed, 2 Apr 2003 16:44:38 +0000 (16:44 +0000)
committerRobert Boehne <rboehne@gnu.org>
Wed, 2 Apr 2003 16:44:38 +0000 (16:44 +0000)
* ltmain.in: Make DESTDIR work on darwin, don't use otool.

ChangeLog
libtool.m4
ltmain.in

index ea9c9fb128b037f04d755b915644ea9227412f97..8d25ca20f4f9342f21df7d34f00f18bd2252f9eb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-04-01  Peter O'Gorman  <peter@pogma.com>
+
+       * libtool.m4: Fix the echo test which I broke earlier.
+       * ltmain.in: Make DESTDIR work on darwin, don't use otool.
+
 2003-03-31  Keith Packard  <keithp@keithp.com>
 
        * ltmain.in: New flag -version-number to be used for maintaining
index f594fd04088ddf7be3e44c76b4817f89cb07e2e5..b66e22298e6b8cba9e828c34722b02ddf3e55c9d 100644 (file)
@@ -392,6 +392,8 @@ else
        :
       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
           test "X$echo_testing_string" = 'X\t' &&
+          eval echo_test_var=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\\\t') 2>/dev/null` &&
+          test "X$echo_test_var" = "X\t" &&
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
           test "X$echo_testing_string" = "X$echo_test_string"; then
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
@@ -401,6 +403,8 @@ else
        echo="$CONFIG_SHELL [$]0 --fallback-echo"
       elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
           test "X$echo_testing_string" = 'X\t' &&
+          eval echo_test_var=`($CONFIG_SHELL "[$]0" --fallback-echo '\\\t') 2>/dev/null` &&
+          test "X$echo_test_var" = "X\t" &&   
           echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
           test "X$echo_testing_string" = "X$echo_test_string"; then
        echo="$CONFIG_SHELL [$]0 --fallback-echo"
index 5ac8f8a8eb5b139698cfca5c797f917249f682f9..09b15501b2752e7b6d757e4184399ea5e518eec4 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -2319,7 +2319,7 @@ EOF
                  *-*-darwin* )
                    # if the lib is a module then we can not link against it, someone
                    # is ignoring the new warnings I added
-                   if test -z `otool -XD $add` ; then
+                   if /usr/bin/file -L $add 2> /dev/null | grep "bundle" >/dev/null ; then
                      $echo "** Warning, lib $linklib is a module, not a shared library"
                      if test -z "$old_library" ; then
                        $echo
@@ -2411,6 +2411,12 @@ EOF
              *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
              esac
              add="-l$name"
+           elif test "$hardcode_automatic" = yes; then
+             if test -n "$inst_prefix_dir" && test -f "$inst_prefix_dir$libdir/$linklib" ; then
+               add="$inst_prefix_dir$libdir/$linklib"
+             else
+               add="$libdir/$linklib"
+             fi
            else
              # We cannot seem to hardcode it, guess we'll fake it.
              add_dir="-L$libdir"