AC_MSG_RESULT([$enable_cryptopp])
AM_CONDITIONAL([CRYPTOPP], [test "x$enable_cryptopp" != "xno"])
- AS_IF([test "x$enable_cryptopp" != "xno"],
- [AC_DEFINE([HAVE_CRYPTOPP], [1], [Define to 1 if you have crypto++])]
- )
+ AS_IF([test "x$enable_cryptopp" != "xno"], [
+ PKG_CHECK_MODULES([CRYPTOPP], [libcrypto++],
+ [AC_DEFINE([HAVE_CRYPTOPP], [1], [Define to 1 if you have crypto++])],
+ [AC_MSG_ERROR([Could not find crypto++])]
+ )
+ ])
])
if CRYPTOPP
pdns_server_SOURCES += cryptoppsigners.cc
-pdns_server_LDADD += -lcryptopp
+pdns_server_LDADD += $(CRYPTOPP_LIBS)
endif
if SQLITE3