]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtool.m4 (AC_PROG_NM): Fix macro so that it
authorMo DeJong <mdejong@redhat.com>
Mon, 10 Jul 2000 09:42:10 +0000 (09:42 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Mon, 10 Jul 2000 09:42:10 +0000 (09:42 +0000)
finds a cross NM on the PATH.

ChangeLog
libtool.m4

index 414f06abd9dde5fda78bbb9d4ae384d64fc7359e..3aad8a60de1c014a391eef2a53bc3133a5fb51e5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-07-10  Mo DeJong  <mdejong@redhat.com>
+
+       * libtool.m4 (AC_PROG_NM): Fix macro so that it
+       finds a cross NM on the PATH.
+
 2000-07-10  Ken Block <block@zk3.dec.com>
 
        * libltdl/ltdl.h: Also check for __cplusplus, __STDC__ is not
index 6c92985e2bda5190c37c05c06b818c6b3ad2dd06..05c56ccbaf6fab89eeebda0743fb5a472fae3c75 100644 (file)
@@ -650,18 +650,19 @@ else
   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
     test -z "$ac_dir" && ac_dir=.
-    if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
+    tmp_nm=$ac_dir/${ac_tool_prefix}nm
+    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
       # Check to see if the nm accepts a BSD-compat flag.
       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
       #   nm: unknown option "B" ignored
-      if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
-       ac_cv_path_NM="$ac_dir/nm -B"
+      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
+       ac_cv_path_NM="$tmp_nm -B"
        break
-      elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
-       ac_cv_path_NM="$ac_dir/nm -p"
+      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
+       ac_cv_path_NM="$tmp_nm -p"
        break
       else
-       ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
+       ac_cv_path_NM=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
        continue # so that we can try to find one that supports BSD flags
       fi
     fi