From 67e43afdaa931250b2628a465bae116f20346550 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Thu, 21 Mar 2019 19:06:33 -0400 Subject: configure.ac: Find opkg --- diff --git a/configure.ac b/configure.ac index 311213e..9c9d038 100644 --- a/configure.ac +++ b/configure.ac @@ -73,6 +73,30 @@ AC_ARG_WITH( ] ) +AC_ARG_WITH( + [opkg], + [AS_HELP_STRING([--with-opkg=PATH], [path to opkg])], + [ + case "${withval}" in + 'yes'|'') + AC_MSG_ERROR([--with-opkg requires an argument]) + ;; + 'no') + AC_MSG_ERROR([opkg is required]) + ;; + *) + OPKG="${withval}" + ;; + esac + ], + [ + AC_PATH_PROG([OPKG], [opkg]) + if test -z "${OPKG}"; then + AC_MSG_ERROR([opkg not found]) + fi + ] +) + AC_ARG_ENABLE( [multiarch-libdir], [AS_HELP_STRING( @@ -120,6 +144,7 @@ AC_ARG_WITH( AC_SUBST([SH]) AC_SUBST([LDD]) +AC_SUBST([OPKG]) AC_SUBST([multiarch_libdir]) AC_SUBST([helperdir]) AC_CONFIG_FILES([Makefile]) -- cgit v0.9.1