diff --git a/configure.ac b/configure.ac index b132499..b40bbef 100644 --- a/configure.ac +++ b/configure.ac @@ -325,12 +325,14 @@ AC_ARG_ENABLE([gcrypt], [have_gcrypt=auto]) if test "x${have_gcrypt}" != xno ; then - AM_PATH_LIBGCRYPT( + m4_ifdef([AM_PATH_LIBGCRYPT], + [AM_PATH_LIBGCRYPT( [1.4.5], [have_gcrypt=yes], [if test "x$have_gcrypt" = xyes ; then AC_MSG_ERROR([*** GCRYPT headers not found.]) - fi]) + fi])], + [have_gcrypt=no]) if test "x$have_gcrypt" = xyes ; then GCRYPT_LIBS="$LIBGCRYPT_LIBS"