about summary refs log tree commit diff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-01-11 18:17:10 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-01-12 09:05:09 -0300
commit02abdab0d1a28a36b21ad2f263c94f11fad98f24 (patch)
treed5ef4300defe174bfaad6851c01c6b98f4bed820 /aclocal.m4
parent2d2d7e1a8f2e62b442ae8978f0a6c17f385575c4 (diff)
downloadglibc-02abdab0d1a28a36b21ad2f263c94f11fad98f24.tar.gz
glibc-02abdab0d1a28a36b21ad2f263c94f11fad98f24.tar.xz
glibc-02abdab0d1a28a36b21ad2f263c94f11fad98f24.zip
configure: Move nm, objdump, and readelf to LIBC_PROG_BINUTILS
Allow the variables to be overriden or have the defaults come
from the compiler currently in use.
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m412
1 files changed, 12 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index cbe3c4698a..213835e1d5 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -133,6 +133,18 @@ if test -z "$GPROF"; then
     GPROF=`$CC -print-prog-name=gprof`
 fi
 AC_SUBST(GPROF)
+if test -z "$READELF"; then
+    READELF=`$CC -print-prog-name=readelf`
+fi
+AC_SUBST(READELF)
+if test -z "$OBJDUMP"; then
+    OBJDUMP=`$CC -print-prog-name=objdump`
+fi
+AC_SUBST(OBJDUMP)
+if test -z "$NM"; then
+    NM=`$CC -print-prog-name=nm`
+fi
+AC_SUBST(NM)
 ])
 
 dnl Run a static link test with -nostdlib -nostartfiles.