configure.ac: check for pkg-config when using it

This commit is contained in:
Mirek Kratochvil 2017-10-27 10:41:40 +02:00
parent df3ed069d7
commit 8a55068d89

View file

@ -35,6 +35,8 @@ AC_ARG_WITH([cryptopp],
#and check crypto++ #and check crypto++
if test "$WITH_CRYPTOPP" = "yes"; then if test "$WITH_CRYPTOPP" = "yes"; then
PKG_PROG_PKG_CONFIG([0.25])
PKG_CHECK_MODULES([CRYPTOPP],[libcrypto++]) PKG_CHECK_MODULES([CRYPTOPP],[libcrypto++])
#crypto++ headers are either in include/crypto++ or include/cryptopp, #crypto++ headers are either in include/crypto++ or include/cryptopp,