Index: libltdl/config/ltmain.m4sh
===================================================================
RCS file: /cvsroot/libtool/libtool/libltdl/config/ltmain.m4sh,v
retrieving revision 1.13
diff -u -r1.13 ltmain.m4sh
--- libltdl/config/ltmain.m4sh	30 Sep 2005 08:41:48 -0000	1.13
+++ libltdl/config/ltmain.m4sh	16 Oct 2005 17:52:31 -0000
@@ -3719,8 +3719,10 @@
 		  *-*-darwin* )
 		    # if the lib is a (non-dlopened) module then we can not
 		    # link against it, someone is ignoring the earlier warnings
-		    if /usr/bin/file -L $add 2> /dev/null |
-			 $GREP "bundle" >/dev/null ; then
+		    # Note: We truncate '$add: ' from the file output because
+		    #    it may contain what we grep for
+		    if /usr/bin/file -L $add 2> /dev/null | $SED -e 's/.*: //' |
+			 $GREP "Mach-O bundle" >/dev/null ; then
 		      if test "X$dlopenmodule" != "X$lib"; then
 			$ECHO "*** Warning: lib $linklib is a module, not a shared library"
 			if test -z "$old_library" ; then
