diff --git a/configure.ac b/configure.ac index 49646ad9..cc5add7f 100644 --- a/configure.ac +++ b/configure.ac @@ -59,12 +59,15 @@ CFLAGS="$KVZ_CFLAGS $CFLAGS" AC_ARG_WITH([cryptopp], AS_HELP_STRING([--with-cryptopp], [Build with cryptopp Enables selective encryption.])) -AS_IF([test "x$with_cryptopp" = "xyes"], [ - PKG_CHECK_MODULES([cryptopp], [cryptopp], +AS_IF([test "x$with_cryptopp" = "xyes"], + [PKG_CHECK_MODULES([cryptopp], [cryptopp], [AC_DEFINE([KVZ_SEL_ENCRYPTION], [1], [With cryptopp])], - [AC_MSG_ERROR([cryptopp not found with pkg-config])] - ) -]) + [PKG_CHECK_MODULES([cryptopp], [libcrypto++], + [AC_DEFINE([KVZ_SEL_ENCRYPTION], [1], [With cryptopp])], + [AC_MSG_ERROR([neither cryptopp nor libcrypto++ found with pkg-config])] + )] + )] +) AM_CONDITIONAL([USE_CRYPTOPP], [test "x$with_cryptopp" = "xyes"]) CPPFLAGS="$CPPFLAGS $cryptopp_CFLAGS"