From 8a794101a874707910f8c9a6a4c5c93caf956d64 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 03 Mar 2014 14:11:16 -0500 Subject: configure.ac: Make opkbuild-helpers required. Also, fix a syntax error. --- diff --git a/configure.ac b/configure.ac index 8a55037..8f4c040 100644 --- a/configure.ac +++ b/configure.ac @@ -74,15 +74,19 @@ AC_ARG_WITH( [AS_HELP_STRING([--with-opkbuild-helpers=PATH], [specify directory to install opkbuild helper script])], [ + opt='opkbuild-helpers' case "${withval}" in 'yes'|'') - helperdir='$(datadir)/opkbuild/helpers' + AC_MSG_ERROR( + [--with-${opt} requires an argument]) ;; 'no') - helperdir='' + AC_MSG_ERROR([${opt} is required]) ;; *) helperdir="${withval}" + ;; + esac ], [ helperdir='$(datadir)/opkbuild/helpers' @@ -92,6 +96,5 @@ AC_ARG_WITH( AC_SUBST([SH]) AC_SUBST([multiarch_libdir]) AC_SUBST([helperdir]) -AM_CONDITIONAL([HELPER], [test "x${helperdir}" != 'x']) AC_CONFIG_FILES([Makefile]) AC_OUTPUT() -- cgit v0.9.1