autotools: check for ssl.h if pkg-config failed
Some distros provides libssl without openssl.pc.
This commit is contained in:
committed by
Dmitry Podgorny
parent
e2acd98612
commit
dcbf3fb4d5
@@ -12,7 +12,9 @@ AS_CASE([$host_os],
|
||||
[freebsd*], [PLATFORM="freebsd"],
|
||||
[PLATFORM="nix"])
|
||||
|
||||
PKG_CHECK_MODULES([openssl], [openssl], [], [AC_MSG_ERROR([openssl not found; openssl required])])
|
||||
PKG_CHECK_MODULES([openssl], [openssl], [],
|
||||
[AC_CHECK_HEADER(openssl/ssl.h, [openssl_LIBS="-lssl -lcrypto"], [AC_MSG_ERROR([openssl not found; openssl required])])])
|
||||
|
||||
PKG_CHECK_MODULES([check], [check >= 0.9.4], [], [AC_MSG_WARN([libcheck not found; unit tests will not be compilable])])
|
||||
|
||||
AC_ARG_WITH([libxml2],
|
||||
|
||||
Reference in New Issue
Block a user