]> git.ipfire.org Git - location/libloc.git/commitdiff
Link against OpenSSL
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 26 Nov 2019 16:50:47 +0000 (16:50 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 26 Nov 2019 16:50:47 +0000 (16:50 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Makefile.am
configure.ac

index 53264f0f603f88d8e09a55bfc4d905364776cb5a..2e6e0cbc46f6808e62bb7879693e89e34bc36653 100644 (file)
@@ -128,6 +128,7 @@ src_libloc_la_LDFLAGS += -export-symbols $(top_srcdir)/src/libloc.sym
 endif
 
 src_libloc_la_LIBADD = \
+       $(OPENSSL_LIBS) \
        $(RESOLV_LIBS)
 
 src_libloc_la_DEPENDENCIES = \
index 97faf93b6d455a5396a6fba1da9ee174a4a920fc..e55f4163b02e99db36f83b53b5bc982cb27db5d4 100644 (file)
@@ -160,6 +160,11 @@ case "${host}" in
 esac
 RESOLV_LIBS="${LIBS}"
 
+dnl Checking for OpenSSL
+LIBS=
+AC_CHECK_LIB(crypto, EVP_EncryptInit,, AC_MSG_ERROR([libcrypto has not been found]))
+OPENSSL_LIBS="${LIBS}"
+
 AC_CONFIG_HEADERS(config.h)
 AC_CONFIG_FILES([
         Makefile