summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2019-03-21 18:45:34 (EDT)
committer P. J. McDermott <pj@pehjota.net>2019-03-21 18:45:34 (EDT)
commit2a4197d006e434a067b0e9e73bc21f31a61afe5f (patch)
tree18b0278981dab79f3e39a783af0f11f4e52cc1e4
parentd9aa15f7480f3f15208267b20b17ac6a04f2fd78 (diff)
configure.ac: Find ldd
-rw-r--r--configure.ac25
1 files changed, 25 insertions, 0 deletions
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])