From: Eugene Crosser Date: Fri, 2 Jun 2023 16:33:08 +0000 (+0200) Subject: configure.ac: refuse to generate without libgcrypt X-Git-Url: http://www.average.org/gitweb/?a=commitdiff_plain;ds=sidebyside;h=b8fe217710e343b51423c13c8babea267dc8479d;p=pam_pcsc_cr.git configure.ac: refuse to generate without libgcrypt Though running resulting `configure` without gcrypt is totally ok Signed-off-by: Eugene Crosser --- diff --git a/configure.ac b/configure.ac index 1dfe833..0d0e047 100644 --- a/configure.ac +++ b/configure.ac @@ -78,7 +78,11 @@ AC_ARG_ENABLE(gcrypt, AS_IF([test "x$use_openssl" != "xyes" && test "x$use_tomcrypt" != "xyes" || \ test "x$enable_gcrypt" = "xyes"], [ - AM_PATH_LIBGCRYPT() + m4_ifdef([AM_PATH_LIBGCRYPT], [ + AM_PATH_LIBGCRYPT() + ], [ + m4_exit(1) + ]) ]) AS_IF([test "x$LIBGCRYPT_CFLAGS" != "x" -o "x$LIBGCRYPT_LIBS" != "x" ], [ use_gcrypt=yes