Use PKG_CHECK_MODULES and PKG_HAVE_MODULES for Cryb libraries.

This commit is contained in:
Dag-Erling Smørgrav 2017-03-22 23:18:58 +01:00
parent 75fe73025a
commit 80be04ed48

View file

@ -81,12 +81,11 @@ AC_CHECK_FUNCS([wcslcat wcslcmp wcslcpy])
# #
# Cryb.to components # Cryb.to components
PKG_HAVE_WITH_MODULES([CRYB_CORE], [cryb-core], PKG_CHECK_MODULES([CRYB_CORE], [cryb-core])
[Cryb.to core utilities]) PKG_CHECK_MODULES([CRYB_OATH], [cryb-oath])
PKG_HAVE_WITH_MODULES([CRYB_OATH], [cryb-oath], PKG_HAVE_MODULES([CRYB_TEST], [cryb-test],
[Cryb.to Open Authentication primitives]) [AC_MSG_NOTICE([Cryb test framework found, unit tests enabled.])],
PKG_HAVE_WITH_MODULES([CRYB_TEST], [cryb-test], [AC_MSG_WARN([Cryb test framework not found, unit tests disabled.])])
[Cryb.to test framework])
# libpam # libpam
save_LIBS="${LIBS}" save_LIBS="${LIBS}"