From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2103) id 6BDC83888C5A; Fri, 25 Mar 2022 16:32:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6BDC83888C5A Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Nick Alcock To: bfd-cvs@sourceware.org, gdb-cvs@sourceware.org Subject: [binutils-gdb] libtool.m4: fix the NM="/nm/over/here -B/option/with/path" case X-Act-Checkin: binutils-gdb X-Git-Author: Nick Alcock X-Git-Refname: refs/heads/master X-Git-Oldrev: ee41183df40c738e3f7e5530e469357762ce2101 X-Git-Newrev: caf606c90d55305967b9253447dda93d2f1835ab Message-Id: <20220325163236.6BDC83888C5A@sourceware.org> Date: Fri, 25 Mar 2022 16:32:36 +0000 (GMT) X-BeenThere: gdb-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Mar 2022 16:32:36 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Dcaf606c90d55= 305967b9253447dda93d2f1835ab commit caf606c90d55305967b9253447dda93d2f1835ab Author: Nick Alcock Date: Fri Dec 3 16:33:25 2021 +0000 libtool.m4: fix the NM=3D"/nm/over/here -B/option/with/path" case =20 My previous nm patch handled all cases but one -- if the user set NM in the environment to a path which contained an option, libtool's nm detection tries to run nm against a copy of nm with the options in it: e.g. if NM was set to "nm --blargle", and nm was found in /usr/bin, the test would try to run "/usr/bin/nm --blargle /usr/bin/nm --blargle". This is unlikely to be desirable: in this case we should run "/usr/bin/nm --blargle /usr/bin/nm". =20 Furthermore, as part of this nm has to detect when the passed-in $NM contains a path, and in that case avoid doing a path search itself. This too was thrown off if an option contained something that looked like a path, e.g. NM=3D"nm -B../prev-gcc"; libtool then tries to run "nm -B../prev-gcc nm" which rarely works well (and indeed it looks to see whether that nm exists, finds it doesn't, and wrongly concludes that nm -p or whatever does not work). =20 Fix all of these by clipping all options (defined as everything including and after the first " -") before deciding whether nm contains a path (but not using the clipped value for anything else), and then removing all options from the path-modified nm before looking to see whether that nm existed. =20 NM=3Dmy-nm now does a path search and runs e.g. /usr/bin/my-nm -B /usr/bin/my-nm =20 NM=3D/usr/bin/my-nm now avoids a path search and runs e.g. /usr/bin/my-nm -B /usr/bin/my-nm =20 NM=3D"my-nm -p../wombat" now does a path search and runs e.g. /usr/bin/my-nm -p../wombat -B /usr/bin/my-nm =20 NM=3D"../prev-binutils/new-nm -B../prev-gcc" now avoids a path search: ../prev-binutils/my-nm -B../prev-gcc -B ../prev-binutils/my-nm =20 This seems to be all combinations, including those used by GCC bootstrap (which, before this commit, fails to bootstrap when configured --with-build-config=3Dbootstrap-lto, because the lto plugin is now using --export-symbols-regex, which requires libtool to find a working nm, while also using -B../prev-gcc to point at the lto plugin associated with the GCC just built.) =20 Regenerate all affected configure scripts. =20 * libtool.m4 (LT_PATH_NM): Handle user-specified NM with options, including options containing paths. Diff: --- bfd/configure | 20 ++++-- binutils/configure | 20 ++++-- gas/configure | 20 ++++-- gprof/configure | 20 ++++-- gprofng/configure | 20 ++++-- ld/configure | 20 ++++-- libbacktrace/configure | 175 +++++++++++++++++++++++++++++----------------= ---- libctf/configure | 20 ++++-- libtool.m4 | 16 +++-- opcodes/configure | 20 ++++-- sim/configure | 20 ++++-- zlib/configure | 20 ++++-- 12 files changed, 244 insertions(+), 147 deletions(-) diff --git a/bfd/configure b/bfd/configure index 0ef4c206fb0..9ed314f5afd 100755 --- a/bfd/configure +++ b/bfd/configure @@ -5409,25 +5409,31 @@ else lt_nm_to_check=3D"$lt_nm_to_check nm" fi fi - for lt_tmp_nm in $lt_nm_to_check; do + for lt_tmp_nm in "$lt_nm_to_check"; do lt_save_ifs=3D"$IFS"; IFS=3D$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS=3D"$lt_save_ifs" test -z "$ac_dir" && ac_dir=3D. - case "$lt_tmp_nm" in + # Strip out any user-provided options from the nm to test twice, + # the first time to test to see if nm (rather than its options) has + # an explicit path, the second time to yield a file which can be + # nm'ed itself. + tmp_nm_path=3D"`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`" + case "$tmp_nm_path" in */*|*\\*) tmp_nm=3D"$lt_tmp_nm";; *) tmp_nm=3D"$ac_dir/$lt_tmp_nm";; esac - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then + tmp_nm_to_nm=3D"`$ECHO "$tmp_nm" | sed 's, -.*$,,'`" + if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_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 - case `"$tmp_nm" -B "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in + case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'= ` in *$tmp_nm*) lt_cv_path_NM=3D"$tmp_nm -B" break ;; *) - case `"$tmp_nm" -p "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in + case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in *$tmp_nm*) lt_cv_path_NM=3D"$tmp_nm -p" break @@ -11086,7 +11092,7 @@ else lt_dlunknown=3D0; lt_dlno_uscore=3D1; lt_dlneed_uscore=3D2 lt_status=3D$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11089 "configure" +#line 11095 "configure" #include "confdefs.h" =20 #if HAVE_DLFCN_H @@ -11192,7 +11198,7 @@ else lt_dlunknown=3D0; lt_dlno_uscore=3D1; lt_dlneed_uscore=3D2 lt_status=3D$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11195 "configure" +#line 11201 "configure" #include "confdefs.h" =20 #if HAVE_DLFCN_H diff --git a/binutils/configure b/binutils/configure index f3ad831ad38..7afa9c471ce 100755 --- a/binutils/configure +++ b/binutils/configure @@ -5273,25 +5273,31 @@ else lt_nm_to_check=3D"$lt_nm_to_check nm" fi fi - for lt_tmp_nm in $lt_nm_to_check; do + for lt_tmp_nm in "$lt_nm_to_check"; do lt_save_ifs=3D"$IFS"; IFS=3D$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS=3D"$lt_save_ifs" test -z "$ac_dir" && ac_dir=3D. - case "$lt_tmp_nm" in + # Strip out any user-provided options from the nm to test twice, + # the first time to test to see if nm (rather than its options) has + # an explicit path, the second time to yield a file which can be + # nm'ed itself. + tmp_nm_path=3D"`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`" + case "$tmp_nm_path" in */*|*\\*) tmp_nm=3D"$lt_tmp_nm";; *) tmp_nm=3D"$ac_dir/$lt_tmp_nm";; esac - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then + tmp_nm_to_nm=3D"`$ECHO "$tmp_nm" | sed 's, -.*$,,'`" + if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_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 - case `"$tmp_nm" -B "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in + case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'= ` in *$tmp_nm*) lt_cv_path_NM=3D"$tmp_nm -B" break ;; *) - case `"$tmp_nm" -p "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in + case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in *$tmp_nm*) lt_cv_path_NM=3D"$tmp_nm -p" break @@ -10981,7 +10987,7 @@ else lt_dlunknown=3D0; lt_dlno_uscore=3D1; lt_dlneed_uscore=3D2 lt_status=3D$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 10984 "configure" +#line 10990 "configure" #include "confdefs.h" =20 #if HAVE_DLFCN_H @@ -11087,7 +11093,7 @@ else lt_dlunknown=3D0; lt_dlno_uscore=3D1; lt_dlneed_uscore=3D2 lt_status=3D$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11090 "configure" +#line 11096 "configure" #include "confdefs.h" =20 #if HAVE_DLFCN_H diff --git a/gas/configure b/gas/configure index 94455667917..1fae77adea0 100755 --- a/gas/configure +++ b/gas/configure @@ -4988,25 +4988,31 @@ else lt_nm_to_check=3D"$lt_nm_to_check nm" fi fi - for lt_tmp_nm in $lt_nm_to_check; do + for lt_tmp_nm in "$lt_nm_to_check"; do lt_save_ifs=3D"$IFS"; IFS=3D$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS=3D"$lt_save_ifs" test -z "$ac_dir" && ac_dir=3D. - case "$lt_tmp_nm" in + # Strip out any user-provided options from the nm to test twice, + # the first time to test to see if nm (rather than its options) has + # an explicit path, the second time to yield a file which can be + # nm'ed itself. + tmp_nm_path=3D"`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`" + case "$tmp_nm_path" in */*|*\\*) tmp_nm=3D"$lt_tmp_nm";; *) tmp_nm=3D"$ac_dir/$lt_tmp_nm";; esac - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then + tmp_nm_to_nm=3D"`$ECHO "$tmp_nm" | sed 's, -.*$,,'`" + if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_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 - case `"$tmp_nm" -B "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in + case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'= ` in *$tmp_nm*) lt_cv_path_NM=3D"$tmp_nm -B" break ;; *) - case `"$tmp_nm" -p "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in + case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in *$tmp_nm*) lt_cv_path_NM=3D"$tmp_nm -p" break @@ -10696,7 +10702,7 @@ else lt_dlunknown=3D0; lt_dlno_uscore=3D1; lt_dlneed_uscore=3D2 lt_status=3D$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 10699 "configure" +#line 10705 "configure" #include "confdefs.h" =20 #if HAVE_DLFCN_H @@ -10802,7 +10808,7 @@ else lt_dlunknown=3D0; lt_dlno_uscore=3D1; lt_dlneed_uscore=3D2 lt_status=3D$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 10805 "configure" +#line 10811 "configure" #include "confdefs.h" =20 #if HAVE_DLFCN_H diff --git a/gprof/configure b/gprof/configure index 8cb3921c34f..41a26629653 100755 --- a/gprof/configure +++ b/gprof/configure @@ -4890,25 +4890,31 @@ else lt_nm_to_check=3D"$lt_nm_to_check nm" fi fi - for lt_tmp_nm in $lt_nm_to_check; do + for lt_tmp_nm in "$lt_nm_to_check"; do lt_save_ifs=3D"$IFS"; IFS=3D$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS=3D"$lt_save_ifs" test -z "$ac_dir" && ac_dir=3D. - case "$lt_tmp_nm" in + # Strip out any user-provided options from the nm to test twice, + # the first time to test to see if nm (rather than its options) has + # an explicit path, the second time to yield a file which can be + # nm'ed itself. + tmp_nm_path=3D"`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`" + case "$tmp_nm_path" in */*|*\\*) tmp_nm=3D"$lt_tmp_nm";; *) tmp_nm=3D"$ac_dir/$lt_tmp_nm";; esac - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then + tmp_nm_to_nm=3D"`$ECHO "$tmp_nm" | sed 's, -.*$,,'`" + if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_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 - case `"$tmp_nm" -B "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in + case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'= ` in *$tmp_nm*) lt_cv_path_NM=3D"$tmp_nm -B" break ;; *) - case `"$tmp_nm" -p "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in + case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in *$tmp_nm*) lt_cv_path_NM=3D"$tmp_nm -p" break @@ -10598,7 +10604,7 @@ else lt_dlunknown=3D0; lt_dlno_uscore=3D1; lt_dlneed_uscore=3D2 lt_status=3D$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 10601 "configure" +#line 10607 "configure" #include "confdefs.h" =20 #if HAVE_DLFCN_H @@ -10704,7 +10710,7 @@ else lt_dlunknown=3D0; lt_dlno_uscore=3D1; lt_dlneed_uscore=3D2 lt_status=3D$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 10707 "configure" +#line 10713 "configure" #include "confdefs.h" =20 #if HAVE_DLFCN_H diff --git a/gprofng/configure b/gprofng/configure index 3064bd74733..e21f7886b77 100755 --- a/gprofng/configure +++ b/gprofng/configure @@ -6457,25 +6457,31 @@ else lt_nm_to_check=3D"$lt_nm_to_check nm" fi fi - for lt_tmp_nm in $lt_nm_to_check; do + for lt_tmp_nm in "$lt_nm_to_check"; do lt_save_ifs=3D"$IFS"; IFS=3D$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS=3D"$lt_save_ifs" test -z "$ac_dir" && ac_dir=3D. - case "$lt_tmp_nm" in + # Strip out any user-provided options from the nm to test twice, + # the first time to test to see if nm (rather than its options) has + # an explicit path, the second time to yield a file which can be + # nm'ed itself. + tmp_nm_path=3D"`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`" + case "$tmp_nm_path" in */*|*\\*) tmp_nm=3D"$lt_tmp_nm";; *) tmp_nm=3D"$ac_dir/$lt_tmp_nm";; esac - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then + tmp_nm_to_nm=3D"`$ECHO "$tmp_nm" | sed 's, -.*$,,'`" + if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_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 - case `"$tmp_nm" -B "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in + case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'= ` in *$tmp_nm*) lt_cv_path_NM=3D"$tmp_nm -B" break ;; *) - case `"$tmp_nm" -p "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in + case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in *$tmp_nm*) lt_cv_path_NM=3D"$tmp_nm -p" break @@ -12136,7 +12142,7 @@ else lt_dlunknown=3D0; lt_dlno_uscore=3D1; lt_dlneed_uscore=3D2 lt_status=3D$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 12139 "configure" +#line 12145 "configure" #include "confdefs.h" =20 #if HAVE_DLFCN_H @@ -12242,7 +12248,7 @@ else lt_dlunknown=3D0; lt_dlno_uscore=3D1; lt_dlneed_uscore=3D2 lt_status=3D$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 12245 "configure" +#line 12251 "configure" #include "confdefs.h" =20 #if HAVE_DLFCN_H diff --git a/ld/configure b/ld/configure index 034fe373106..bab2d083ca8 100755 --- a/ld/configure +++ b/ld/configure @@ -5745,25 +5745,31 @@ else lt_nm_to_check=3D"$lt_nm_to_check nm" fi fi - for lt_tmp_nm in $lt_nm_to_check; do + for lt_tmp_nm in "$lt_nm_to_check"; do lt_save_ifs=3D"$IFS"; IFS=3D$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS=3D"$lt_save_ifs" test -z "$ac_dir" && ac_dir=3D. - case "$lt_tmp_nm" in + # Strip out any user-provided options from the nm to test twice, + # the first time to test to see if nm (rather than its options) has + # an explicit path, the second time to yield a file which can be + # nm'ed itself. + tmp_nm_path=3D"`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`" + case "$tmp_nm_path" in */*|*\\*) tmp_nm=3D"$lt_tmp_nm";; *) tmp_nm=3D"$ac_dir/$lt_tmp_nm";; esac - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then + tmp_nm_to_nm=3D"`$ECHO "$tmp_nm" | sed 's, -.*$,,'`" + if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_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 - case `"$tmp_nm" -B "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in + case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'= ` in *$tmp_nm*) lt_cv_path_NM=3D"$tmp_nm -B" break ;; *) - case `"$tmp_nm" -p "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in + case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in *$tmp_nm*) lt_cv_path_NM=3D"$tmp_nm -p" break @@ -11454,7 +11460,7 @@ else lt_dlunknown=3D0; lt_dlno_uscore=3D1; lt_dlneed_uscore=3D2 lt_status=3D$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11457 "configure" +#line 11463 "configure" #include "confdefs.h" =20 #if HAVE_DLFCN_H @@ -11560,7 +11566,7 @@ else lt_dlunknown=3D0; lt_dlno_uscore=3D1; lt_dlneed_uscore=3D2 lt_status=3D$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11563 "configure" +#line 11569 "configure" #include "confdefs.h" =20 #if HAVE_DLFCN_H diff --git a/libbacktrace/configure b/libbacktrace/configure index a2f33c0f35d..406b67b8cbc 100755 --- a/libbacktrace/configure +++ b/libbacktrace/configure @@ -5818,48 +5818,55 @@ if ${lt_cv_path_NM+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$NM"; then - # Let the user override the test. - lt_cv_path_NM=3D"$NM" -else - lt_nm_to_check=3D"${ac_tool_prefix}nm" - if test -n "$ac_tool_prefix" && test "$build" =3D "$host"; then - lt_nm_to_check=3D"$lt_nm_to_check nm" - fi - for lt_tmp_nm in $lt_nm_to_check; do - lt_save_ifs=3D"$IFS"; IFS=3D$PATH_SEPARATOR - for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do - IFS=3D"$lt_save_ifs" - test -z "$ac_dir" && ac_dir=3D. - tmp_nm=3D"$ac_dir/$lt_tmp_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 - # Tru64's nm complains that /dev/null is an invalid object file - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in - */dev/null* | *'Invalid file or object type'*) - lt_cv_path_NM=3D"$tmp_nm -B" - break - ;; - *) - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in - */dev/null*) - lt_cv_path_NM=3D"$tmp_nm -p" - break - ;; - *) - lt_cv_path_NM=3D${lt_cv_path_NM=3D"$tmp_nm"} # keep the first match, = but - continue # so that we can try to find one that supports BSD flags - ;; - esac - ;; - esac - fi - done - IFS=3D"$lt_save_ifs" - done - : ${lt_cv_path_NM=3Dno} -fi + # Let the user override the nm to test. + lt_nm_to_check=3D"$NM" + else + lt_nm_to_check=3D"${ac_tool_prefix}nm" + if test -n "$ac_tool_prefix" && test "$build" =3D "$host"; then + lt_nm_to_check=3D"$lt_nm_to_check nm" + fi + fi + for lt_tmp_nm in "$lt_nm_to_check"; do + lt_save_ifs=3D"$IFS"; IFS=3D$PATH_SEPARATOR + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do + IFS=3D"$lt_save_ifs" + test -z "$ac_dir" && ac_dir=3D. + # Strip out any user-provided options from the nm to test twice, + # the first time to test to see if nm (rather than its options) has + # an explicit path, the second time to yield a file which can be + # nm'ed itself. + tmp_nm_path=3D"`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`" + case "$tmp_nm_path" in + */*|*\\*) tmp_nm=3D"$lt_tmp_nm";; + *) tmp_nm=3D"$ac_dir/$lt_tmp_nm";; + esac + tmp_nm_to_nm=3D"`$ECHO "$tmp_nm" | sed 's, -.*$,,'`" + if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_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 + case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'= ` in + *$tmp_nm*) lt_cv_path_NM=3D"$tmp_nm -B" + break + ;; + *) + case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in + *$tmp_nm*) + lt_cv_path_NM=3D"$tmp_nm -p" + break + ;; + *) + lt_cv_path_NM=3D${lt_cv_path_NM=3D"$tmp_nm"} # keep the first match, b= ut + continue # so that we can try to find one that supports BSD flags + ;; + esac + ;; + esac + fi + done + IFS=3D"$lt_save_ifs" + done + : ${lt_cv_path_NM=3Dno} fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 $as_echo "$lt_cv_path_NM" >&6; } @@ -6480,7 +6487,7 @@ irix5* | irix6* | nonstopux*) ;; =20 # This must be Linux ELF. -linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) +linux* | k*bsd*-gnu | kopensolaris*-gnu) lt_cv_deplibs_check_method=3Dpass_all ;; =20 @@ -6576,6 +6583,19 @@ test -z "$deplibs_check_method" && deplibs_check_met= hod=3Dunknown =20 =20 =20 +plugin_option=3D +plugin_names=3D"liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" +for plugin in $plugin_names; do + plugin_so=3D`${CC} ${CFLAGS} --print-prog-name $plugin` + if test x$plugin_so =3D x$plugin; then + plugin_so=3D`${CC} ${CFLAGS} --print-file-name $plugin` + fi + if test x$plugin_so !=3D x$plugin; then + plugin_option=3D"--plugin $plugin_so" + break + fi +done + if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ar", so it can be a progra= m name with args. set dummy ${ac_tool_prefix}ar; ac_word=3D$2 @@ -6669,6 +6689,19 @@ else fi =20 test -z "$AR" && AR=3Dar +if test -n "$plugin_option"; then + if $AR --help 2>&1 | grep -q "\--plugin"; then + touch conftest.c + $AR $plugin_option rc conftest.a conftest.c + if test "$?" !=3D 0; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugi= n_option rc" >&5 +$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} + else + AR=3D"$AR $plugin_option" + fi + rm -f conftest.* + fi +fi test -z "$AR_FLAGS" && AR_FLAGS=3Dcru =20 =20 @@ -6873,6 +6906,11 @@ else fi =20 test -z "$RANLIB" && RANLIB=3D: +if test -n "$plugin_option" && test "$RANLIB" !=3D ":"; then + if $RANLIB --help 2>&1 | grep -q "\--plugin"; then + RANLIB=3D"$RANLIB $plugin_option" + fi +fi =20 =20 =20 @@ -6987,7 +7025,7 @@ osf*) symcode=3D'[BCDEGQRST]' ;; solaris*) - symcode=3D'[BDRT]' + symcode=3D'[BCDRT]' ;; sco3.2v5*) symcode=3D'[DT]' @@ -7986,25 +8024,23 @@ _LT_EOF fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 $as_echo "$lt_cv_ld_force_load" >&6; } - # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect= to - # build without first building modern cctools / linker. - case $host_cpu-$host_os in - *-rhapsody* | *-darwin1.[012]) + case $host_os in + rhapsody* | darwin1.[012]) _lt_dar_allow_undefined=3D'${wl}-undefined ${wl}suppress' ;; - *-darwin1.*) + darwin1.*) _lt_dar_allow_undefined=3D'${wl}-flat_namespace ${wl}-undefined ${wl= }suppress' ;; - *-darwin*) - # darwin 5.x (macOS 10.1) onwards we only need to adjust when the - # deployment target is forced to an earlier version. - case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in - UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*) - ;; + darwin*) # darwin 5.x on + # if running on 10.5 or later, the deployment target defaults + # to the OS version, if on x86, and 10.4, the deployment + # target defaults to 10.4. Don't you love it? + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in + 10.0,*86*-darwin8*|10.0,*-darwin[91]*) + _lt_dar_allow_undefined=3D'${wl}-undefined ${wl}dynamic_lookup' ;; 10.[012][,.]*) - _lt_dar_allow_undefined=3D'${wl}-flat_namespace ${wl}-undefined ${wl}su= ppress' - ;; - *) - ;; - esac + _lt_dar_allow_undefined=3D'${wl}-flat_namespace ${wl}-undefined ${wl}su= ppress' ;; + 10.*) + _lt_dar_allow_undefined=3D'${wl}-undefined ${wl}dynamic_lookup' ;; + esac ;; esac if test "$lt_cv_apple_cc_single_mod" =3D "yes"; then @@ -9294,7 +9330,7 @@ _LT_EOF archive_expsym_cmds=3D'sed "s,^,_," $export_symbols >$output_objdir/= $soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl= }-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}-= -image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; =20 - gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpicea= bi) + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) tmp_diet=3Dno if test "$host_os" =3D linux-dietlibc; then case $cc_basename in @@ -9803,7 +9839,7 @@ if test -z "$aix_libpath"; then aix_libpath=3D"/usr/l= ib:/lib"; fi if test "$GCC" =3D yes && test "$with_gnu_ld" =3D no; then case $host_cpu in hppa*64*) - archive_cmds=3D'$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -= o $lib $libobjs $deplibs $compiler_flags' + archive_cmds=3D'$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $depl= ibs $compiler_flags' ;; ia64*) archive_cmds=3D'$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultr= path -o $lib $libobjs $deplibs $compiler_flags' @@ -9815,7 +9851,7 @@ if test -z "$aix_libpath"; then aix_libpath=3D"/usr/l= ib:/lib"; fi else case $host_cpu in hppa*64*) - archive_cmds=3D'$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $li= b $libobjs $deplibs $compiler_flags' + archive_cmds=3D'$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $= compiler_flags' ;; ia64*) archive_cmds=3D'$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $li= b $libobjs $deplibs $compiler_flags' @@ -10708,7 +10744,7 @@ haiku*) soname_spec=3D'${libname}${release}${shared_ext}$major' shlibpath_var=3DLIBRARY_PATH shlibpath_overrides_runpath=3Dyes - sys_lib_dlsearch_path_spec=3D'/boot/home/config/lib /boot/common/lib /bo= ot/beos/system/lib' + sys_lib_dlsearch_path_spec=3D'/boot/home/config/lib /boot/common/lib /bo= ot/system/lib' hardcode_into_libs=3Dyes ;; =20 @@ -10815,12 +10851,7 @@ linux*oldld* | linux*aout* | linux*coff*) ;; =20 # This must be Linux ELF. - -# uclinux* changes (here and below) have been submitted to the libtool -# project, but have not yet been accepted: they are GCC-local changes -# for the time being. (See -# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) -linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi) +linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) version_type=3Dlinux need_lib_prefix=3Dno need_version=3Dno @@ -11509,7 +11540,7 @@ else lt_dlunknown=3D0; lt_dlno_uscore=3D1; lt_dlneed_uscore=3D2 lt_status=3D$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11512 "configure" +#line 11543 "configure" #include "confdefs.h" =20 #if HAVE_DLFCN_H @@ -11615,7 +11646,7 @@ else lt_dlunknown=3D0; lt_dlno_uscore=3D1; lt_dlneed_uscore=3D2 lt_status=3D$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11618 "configure" +#line 11649 "configure" #include "confdefs.h" =20 #if HAVE_DLFCN_H diff --git a/libctf/configure b/libctf/configure index c56ac218213..8704bc215f4 100755 --- a/libctf/configure +++ b/libctf/configure @@ -5951,25 +5951,31 @@ else lt_nm_to_check=3D"$lt_nm_to_check nm" fi fi - for lt_tmp_nm in $lt_nm_to_check; do + for lt_tmp_nm in "$lt_nm_to_check"; do lt_save_ifs=3D"$IFS"; IFS=3D$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS=3D"$lt_save_ifs" test -z "$ac_dir" && ac_dir=3D. - case "$lt_tmp_nm" in + # Strip out any user-provided options from the nm to test twice, + # the first time to test to see if nm (rather than its options) has + # an explicit path, the second time to yield a file which can be + # nm'ed itself. + tmp_nm_path=3D"`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`" + case "$tmp_nm_path" in */*|*\\*) tmp_nm=3D"$lt_tmp_nm";; *) tmp_nm=3D"$ac_dir/$lt_tmp_nm";; esac - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then + tmp_nm_to_nm=3D"`$ECHO "$tmp_nm" | sed 's, -.*$,,'`" + if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_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 - case `"$tmp_nm" -B "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in + case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'= ` in *$tmp_nm*) lt_cv_path_NM=3D"$tmp_nm -B" break ;; *) - case `"$tmp_nm" -p "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in + case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in *$tmp_nm*) lt_cv_path_NM=3D"$tmp_nm -p" break @@ -11629,7 +11635,7 @@ else lt_dlunknown=3D0; lt_dlno_uscore=3D1; lt_dlneed_uscore=3D2 lt_status=3D$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11632 "configure" +#line 11638 "configure" #include "confdefs.h" =20 #if HAVE_DLFCN_H @@ -11735,7 +11741,7 @@ else lt_dlunknown=3D0; lt_dlno_uscore=3D1; lt_dlneed_uscore=3D2 lt_status=3D$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11738 "configure" +#line 11744 "configure" #include "confdefs.h" =20 #if HAVE_DLFCN_H diff --git a/libtool.m4 b/libtool.m4 index a216bb14e99..ad63ebbb385 100644 --- a/libtool.m4 +++ b/libtool.m4 @@ -3214,25 +3214,31 @@ AC_CACHE_CHECK([for BSD- or MS-compatible name list= er (nm)], lt_cv_path_NM, lt_nm_to_check=3D"$lt_nm_to_check nm" fi fi - for lt_tmp_nm in $lt_nm_to_check; do + for lt_tmp_nm in "$lt_nm_to_check"; do lt_save_ifs=3D"$IFS"; IFS=3D$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS=3D"$lt_save_ifs" test -z "$ac_dir" && ac_dir=3D. - case "$lt_tmp_nm" in + # Strip out any user-provided options from the nm to test twice, + # the first time to test to see if nm (rather than its options) has + # an explicit path, the second time to yield a file which can be + # nm'ed itself. + tmp_nm_path=3D"`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`" + case "$tmp_nm_path" in */*|*\\*) tmp_nm=3D"$lt_tmp_nm";; *) tmp_nm=3D"$ac_dir/$lt_tmp_nm";; esac - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then + tmp_nm_to_nm=3D"`$ECHO "$tmp_nm" | sed 's, -.*$,,'`" + if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_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 - case `"$tmp_nm" -B "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in + case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'= ` in *$tmp_nm*) lt_cv_path_NM=3D"$tmp_nm -B" break ;; *) - case `"$tmp_nm" -p "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in + case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in *$tmp_nm*) lt_cv_path_NM=3D"$tmp_nm -p" break diff --git a/opcodes/configure b/opcodes/configure index c98c5bcd0d1..740d54153ca 100755 --- a/opcodes/configure +++ b/opcodes/configure @@ -5357,25 +5357,31 @@ else lt_nm_to_check=3D"$lt_nm_to_check nm" fi fi - for lt_tmp_nm in $lt_nm_to_check; do + for lt_tmp_nm in "$lt_nm_to_check"; do lt_save_ifs=3D"$IFS"; IFS=3D$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS=3D"$lt_save_ifs" test -z "$ac_dir" && ac_dir=3D. - case "$lt_tmp_nm" in + # Strip out any user-provided options from the nm to test twice, + # the first time to test to see if nm (rather than its options) has + # an explicit path, the second time to yield a file which can be + # nm'ed itself. + tmp_nm_path=3D"`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`" + case "$tmp_nm_path" in */*|*\\*) tmp_nm=3D"$lt_tmp_nm";; *) tmp_nm=3D"$ac_dir/$lt_tmp_nm";; esac - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then + tmp_nm_to_nm=3D"`$ECHO "$tmp_nm" | sed 's, -.*$,,'`" + if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_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 - case `"$tmp_nm" -B "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in + case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'= ` in *$tmp_nm*) lt_cv_path_NM=3D"$tmp_nm -B" break ;; *) - case `"$tmp_nm" -p "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in + case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in *$tmp_nm*) lt_cv_path_NM=3D"$tmp_nm -p" break @@ -11035,7 +11041,7 @@ else lt_dlunknown=3D0; lt_dlno_uscore=3D1; lt_dlneed_uscore=3D2 lt_status=3D$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11038 "configure" +#line 11044 "configure" #include "confdefs.h" =20 #if HAVE_DLFCN_H @@ -11141,7 +11147,7 @@ else lt_dlunknown=3D0; lt_dlno_uscore=3D1; lt_dlneed_uscore=3D2 lt_status=3D$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11144 "configure" +#line 11150 "configure" #include "confdefs.h" =20 #if HAVE_DLFCN_H diff --git a/sim/configure b/sim/configure index 02a3fa5bb3c..fae9facc887 100755 --- a/sim/configure +++ b/sim/configure @@ -6014,25 +6014,31 @@ else lt_nm_to_check=3D"$lt_nm_to_check nm" fi fi - for lt_tmp_nm in $lt_nm_to_check; do + for lt_tmp_nm in "$lt_nm_to_check"; do lt_save_ifs=3D"$IFS"; IFS=3D$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS=3D"$lt_save_ifs" test -z "$ac_dir" && ac_dir=3D. - case "$lt_tmp_nm" in + # Strip out any user-provided options from the nm to test twice, + # the first time to test to see if nm (rather than its options) has + # an explicit path, the second time to yield a file which can be + # nm'ed itself. + tmp_nm_path=3D"`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`" + case "$tmp_nm_path" in */*|*\\*) tmp_nm=3D"$lt_tmp_nm";; *) tmp_nm=3D"$ac_dir/$lt_tmp_nm";; esac - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then + tmp_nm_to_nm=3D"`$ECHO "$tmp_nm" | sed 's, -.*$,,'`" + if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_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 - case `"$tmp_nm" -B "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in + case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'= ` in *$tmp_nm*) lt_cv_path_NM=3D"$tmp_nm -B" break ;; *) - case `"$tmp_nm" -p "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in + case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in *$tmp_nm*) lt_cv_path_NM=3D"$tmp_nm -p" break @@ -12635,7 +12641,7 @@ else lt_dlunknown=3D0; lt_dlno_uscore=3D1; lt_dlneed_uscore=3D2 lt_status=3D$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 12638 "configure" +#line 12644 "configure" #include "confdefs.h" =20 #if HAVE_DLFCN_H @@ -12741,7 +12747,7 @@ else lt_dlunknown=3D0; lt_dlno_uscore=3D1; lt_dlneed_uscore=3D2 lt_status=3D$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 12744 "configure" +#line 12750 "configure" #include "confdefs.h" =20 #if HAVE_DLFCN_H diff --git a/zlib/configure b/zlib/configure index db7845c5d42..e65ade3badd 100755 --- a/zlib/configure +++ b/zlib/configure @@ -4696,25 +4696,31 @@ else lt_nm_to_check=3D"$lt_nm_to_check nm" fi fi - for lt_tmp_nm in $lt_nm_to_check; do + for lt_tmp_nm in "$lt_nm_to_check"; do lt_save_ifs=3D"$IFS"; IFS=3D$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS=3D"$lt_save_ifs" test -z "$ac_dir" && ac_dir=3D. - case "$lt_tmp_nm" in + # Strip out any user-provided options from the nm to test twice, + # the first time to test to see if nm (rather than its options) has + # an explicit path, the second time to yield a file which can be + # nm'ed itself. + tmp_nm_path=3D"`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`" + case "$tmp_nm_path" in */*|*\\*) tmp_nm=3D"$lt_tmp_nm";; *) tmp_nm=3D"$ac_dir/$lt_tmp_nm";; esac - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then + tmp_nm_to_nm=3D"`$ECHO "$tmp_nm" | sed 's, -.*$,,'`" + if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_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 - case `"$tmp_nm" -B "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in + case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'= ` in *$tmp_nm*) lt_cv_path_NM=3D"$tmp_nm -B" break ;; *) - case `"$tmp_nm" -p "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in + case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in *$tmp_nm*) lt_cv_path_NM=3D"$tmp_nm -p" break @@ -10705,7 +10711,7 @@ else lt_dlunknown=3D0; lt_dlno_uscore=3D1; lt_dlneed_uscore=3D2 lt_status=3D$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 10708 "configure" +#line 10714 "configure" #include "confdefs.h" =20 #if HAVE_DLFCN_H @@ -10811,7 +10817,7 @@ else lt_dlunknown=3D0; lt_dlno_uscore=3D1; lt_dlneed_uscore=3D2 lt_status=3D$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 10814 "configure" +#line 10820 "configure" #include "confdefs.h" =20 #if HAVE_DLFCN_H