From 78a000e7740dffb613ade9cb78162e1a4ca63f72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20Beauz=C3=A9e-Luyssen?= Date: Thu, 20 Dec 2018 13:43:13 +0100 Subject: [PATCH] Don't try to link with openssl when it's disabled --- xiph_openssl.m4 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xiph_openssl.m4 b/xiph_openssl.m4 index f62a524..2702e91 100644 --- a/xiph_openssl.m4 +++ b/xiph_openssl.m4 @@ -29,6 +29,7 @@ else fi fi +if test x$with_openssl != xno; then # Now try linking to openssl xt_save_CFLAGS="$CFLAGS" xt_save_LIBS="$LIBS" @@ -37,6 +38,7 @@ LIBS="$OPENSSL_LIBS $LIBS" AC_TRY_LINK([#include ], [void *a = SSL_new], [openssl_ok='yes']) CFLAGS="$xt_save_CFLAGS" LIBS="$xt_save_LIBS" +fi if test "$openssl_ok" = "yes"; then AC_DEFINE(HAVE_OPENSSL, 1, [Define if you have libopenssl.])