From 172c07013d1ea99447a780fd36f49d5c3a76981b Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Sun, 24 Apr 2011 16:15:04 +0200 Subject: Require openssl-devel is libcrypto backend is selected --- src/conf_macros.m4 | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'src/conf_macros.m4') diff --git a/src/conf_macros.m4 b/src/conf_macros.m4 index 273a5270..31048d3d 100644 --- a/src/conf_macros.m4 +++ b/src/conf_macros.m4 @@ -295,3 +295,25 @@ AC_DEFUN([WITH_LIBNL], fi ]) +AC_DEFUN([WITH_CRYPTO], + [ AC_ARG_WITH([crypto], + [AC_HELP_STRING([--with-crypto=CRYPTO_LIB], + [The cryptographic library to use (nss|libcrypto). The default is nss.] + ) + ], + [], + with_crypto=nss + ) + + cryptolib="" + if test x"$with_crypto" != x; then + if test x"$with_crypto" = xnss || \ + test x"$with_crypto" = xlibcrypto; then + cryptolib="$with_crypto"; + else + AC_MSG_ERROR([Illegal value -$with_crypto- for option --with-crypto]) + fi + fi + AM_CONDITIONAL([HAVE_NSS], [test x"$cryptolib" = xnss]) + AM_CONDITIONAL([HAVE_LIBCRYPTO], [test x"$cryptolib" = xlibcrypto]) + ]) -- cgit