From 2a4197d006e434a067b0e9e73bc21f31a61afe5f Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Thu, 21 Mar 2019 18:45:34 -0400 Subject: configure.ac: Find ldd --- diff --git a/configure.ac b/configure.ac index 053eed9..311213e 100644 --- a/configure.ac +++ b/configure.ac @@ -49,6 +49,30 @@ AC_ARG_WITH( ] ) +AC_ARG_WITH( + [ldd], + [AS_HELP_STRING([--with-ldd=PATH], [path to ldd])], + [ + case "${withval}" in + 'yes'|'') + AC_MSG_ERROR([--with-ldd requires an argument]) + ;; + 'no') + AC_MSG_ERROR([ldd is required]) + ;; + *) + LDD="${withval}" + ;; + esac + ], + [ + AC_PATH_PROG([LDD], [ldd]) + if test -z "${LDD}"; then + AC_MSG_ERROR([ldd not found]) + fi + ] +) + AC_ARG_ENABLE( [multiarch-libdir], [AS_HELP_STRING( @@ -95,6 +119,7 @@ AC_ARG_WITH( ) AC_SUBST([SH]) +AC_SUBST([LDD]) AC_SUBST([multiarch_libdir]) AC_SUBST([helperdir]) AC_CONFIG_FILES([Makefile]) -- cgit v0.9.1