fi
if test x$gcrypt = xtrue; then
- AC_HAVE_LIBRARY([gcrypt],[LIBS="$LIBS"],[AC_MSG_ERROR([libgcrypt library not found])])
- AC_CHECK_HEADER([gcrypt.h],,[AC_MSG_ERROR([libgcrypt header gcrypt.h not found!])])
+ AM_PATH_LIBGCRYPT(,,[AC_MSG_ERROR([libgcrypt not found!])])
fi
if test x$uci = xtrue; then
INCLUDES = -I$(top_srcdir)/src/libstrongswan
-AM_CFLAGS = -rdynamic
+AM_CFLAGS = -rdynamic $(LIBGCRYPT_CFLAGS)
plugin_LTLIBRARIES = libstrongswan-gcrypt.la
gcrypt_hasher.h gcrypt_hasher.c
libstrongswan_gcrypt_la_LDFLAGS = -module
-libstrongswan_gcrypt_la_LIBADD = -lgcrypt
-
+libstrongswan_gcrypt_la_LIBADD = $(LIBGCRYPT_LIBS)