bug-libtool@gnu.org
[Top] [All Lists]

Re: Problem with LT_PATH_NM

Subject: Re: Problem with LT_PATH_NM
From: Peter Rosin
Date: Wed, 14 Jan 2009 22:43:06 +0100
Den 2009-01-14 22:38 skrev Peter Rosin:
Here's a patch that makes the configure check a bit more picky

"/&#%/#, wrong version of the patch.

Here's what I intended.

Cheers, and sorry for spamming,
Peter
diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4
index b7b566d..4968bf8 100644
--- a/libltdl/m4/libtool.m4
+++ b/libltdl/m4/libtool.m4
@@ -3156,7 +3156,19 @@ if test "$lt_cv_path_NM" != "no"; then
   NM="$lt_cv_path_NM"
 else
   # Didn't find any BSD compatible name lister, look for dumpbin.
-  AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
+  if test -n "$DUMPBIN"; then :
+    # Let the user override the test.
+  else
+    AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
+    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
+    *COFF*)
+      DUMPBIN="$DUMPBIN -symbols"
+      ;;
+    *)
+      DUMPBIN=:
+      ;;
+    esac
+  fi
   AC_SUBST([DUMPBIN])
   if test "$DUMPBIN" != ":"; then
     NM="$DUMPBIN"
_______________________________________________
Bug-libtool mailing list
Bug-libtool@xxxxxxx
http://lists.gnu.org/mailman/listinfo/bug-libtool
<Prev in Thread] Current Thread [Next in Thread>