Bruno Haible <bruno@clisp.org>.
2005-10-21 Simon Josefsson <jas@extundo.com>
+ * gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
+ Bruno Haible <bruno@clisp.org>.
+
* gc-des.m4: New file.
2005-10-21 Simon Josefsson <jas@extundo.com>
AS_HELP_STRING([--with-libgcrypt], [use libgcrypt for low-level crypto]),
libgcrypt=$withval, libgcrypt=no)
if test "$libgcrypt" != no; then
- AC_LIB_HAVE_LINKFLAGS([gcrypt])
+ AC_LIB_HAVE_LINKFLAGS([gcrypt], [], [#include <gcrypt.h>])
fi
if test "$ac_cv_libgcrypt" = yes; then
- AC_CHECK_HEADER(gcrypt.h)
AC_LIBOBJ([gc-libgcrypt])
else
AC_LIBOBJ([gc-gnulib])