From 267c3778366d1eb1b533c0472894a6ccf4dc5409 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Fri, 22 Mar 2019 12:34:11 -0400 Subject: configure.ac, Makefile.am: Find readelf instead of ldd --- diff --git a/Makefile.am b/Makefile.am index f7988e5..0479753 100644 --- a/Makefile.am +++ b/Makefile.am @@ -66,7 +66,7 @@ do_subst = sed \ -e 's|[@]PACKAGE_VERSION[@]|$(PACKAGE_VERSION)|g' \ -e 's|[@]MANUAL[@]|$(MANUAL)|g' \ -e 's|[@]SH[@]|$(SH)|g' \ - -e 's|[@]LDD[@]|$(LDD)|g' \ + -e 's|[@]READELF[@]|$(READELF)|g' \ -e 's|[@]OPKG[@]|$(OPKG)|g' \ -e 's|[@]multiarch_libdir[@]|$(multiarch_libdir)|g' \ -e 's|[@]bindir[@]|$(bindir)|g' \ diff --git a/configure.ac b/configure.ac index 9c9d038..0beab1e 100644 --- a/configure.ac +++ b/configure.ac @@ -50,25 +50,25 @@ AC_ARG_WITH( ) AC_ARG_WITH( - [ldd], - [AS_HELP_STRING([--with-ldd=PATH], [path to ldd])], + [readelf], + [AS_HELP_STRING([--with-readelf=PATH], [path to readelf])], [ case "${withval}" in 'yes'|'') - AC_MSG_ERROR([--with-ldd requires an argument]) + AC_MSG_ERROR([--with-readelf requires an argument]) ;; 'no') - AC_MSG_ERROR([ldd is required]) + AC_MSG_ERROR([readelf is required]) ;; *) - LDD="${withval}" + READELF="${withval}" ;; esac ], [ - AC_PATH_PROG([LDD], [ldd]) - if test -z "${LDD}"; then - AC_MSG_ERROR([ldd not found]) + AC_PATH_PROG([READELF], [readelf]) + if test -z "${READELF}"; then + AC_MSG_ERROR([readelf not found]) fi ] ) @@ -143,7 +143,7 @@ AC_ARG_WITH( ) AC_SUBST([SH]) -AC_SUBST([LDD]) +AC_SUBST([READELF]) AC_SUBST([OPKG]) AC_SUBST([multiarch_libdir]) AC_SUBST([helperdir]) -- cgit v0.9.1