Просмотр исходного кода

OpenSSL3: Fix build with base SSL

Bryan Drewery 2 лет назад
Родитель
Сommit
865865fa39
2 измененных файлов с 4 добавлено и 2 удалено
  1. 2 1
      build/autotools/includes/acinclude.m4
  2. 2 1
      configure

+ 2 - 1
build/autotools/includes/acinclude.m4

@@ -607,7 +607,7 @@ fi
 dnl Now check cf_openssl_found to see if we found anything.
 dnl Now check cf_openssl_found to see if we found anything.
 if test ! -z "$cf_openssl_basedir"; then
 if test ! -z "$cf_openssl_basedir"; then
   if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" && test -f "${cf_openssl_basedir}/lib/libssl.so"; then
   if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" && test -f "${cf_openssl_basedir}/lib/libssl.so"; then
-    SSL_INCLUDES="-I${cf_openssl_basedir}/include -DOPENSSL_API_COMPAT=0x10100000L"
+    SSL_INCLUDES="-I${cf_openssl_basedir}/include"
     SSL_LIBS="-L${cf_openssl_basedir}/lib"
     SSL_LIBS="-L${cf_openssl_basedir}/lib"
   else
   else
     dnl OpenSSL wasn't found in the directory specified.
     dnl OpenSSL wasn't found in the directory specified.
@@ -619,6 +619,7 @@ else
     cf_openssl_basedir="/usr"
     cf_openssl_basedir="/usr"
   fi
   fi
 fi
 fi
+SSL_INCLUDES="${SSL_INCLUDES} -DOPENSSL_API_COMPAT=0x10100000L"
 
 
 dnl Has it been found by now?
 dnl Has it been found by now?
 if test ! -z "$cf_openssl_basedir"; then
 if test ! -z "$cf_openssl_basedir"; then

+ 2 - 1
configure

@@ -6849,7 +6849,7 @@ else
 fi
 fi
 if test ! -z "$cf_openssl_basedir"; then
 if test ! -z "$cf_openssl_basedir"; then
   if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" && test -f "${cf_openssl_basedir}/lib/libssl.so"; then
   if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" && test -f "${cf_openssl_basedir}/lib/libssl.so"; then
-    SSL_INCLUDES="-I${cf_openssl_basedir}/include -DOPENSSL_API_COMPAT=0x10100000L"
+    SSL_INCLUDES="-I${cf_openssl_basedir}/include"
     SSL_LIBS="-L${cf_openssl_basedir}/lib"
     SSL_LIBS="-L${cf_openssl_basedir}/lib"
   else
   else
         cf_openssl_basedir=""
         cf_openssl_basedir=""
@@ -6859,6 +6859,7 @@ else
     cf_openssl_basedir="/usr"
     cf_openssl_basedir="/usr"
   fi
   fi
 fi
 fi
+SSL_INCLUDES="${SSL_INCLUDES} -DOPENSSL_API_COMPAT=0x10100000L"
 
 
 if test ! -z "$cf_openssl_basedir"; then
 if test ! -z "$cf_openssl_basedir"; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5