enhanced configure.ac for better ssl detection
This commit is contained in:
35
qse/configure
vendored
35
qse/configure
vendored
@ -18117,8 +18117,22 @@ else
|
||||
enable_ssl_is=yes
|
||||
fi
|
||||
|
||||
if test "$enable_ssl_is" = "yes"
|
||||
if test "x$enable_ssl_is" = "xyes"
|
||||
then
|
||||
for ac_header in openssl/err.h openssl/engine.h
|
||||
do :
|
||||
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
||||
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
|
||||
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
||||
_ACEOF
|
||||
|
||||
fi
|
||||
|
||||
done
|
||||
|
||||
|
||||
for ac_func in SSL_library_init
|
||||
do :
|
||||
ac_fn_c_check_func "$LINENO" "SSL_library_init" "ac_cv_func_SSL_library_init"
|
||||
@ -18130,7 +18144,8 @@ _ACEOF
|
||||
fi
|
||||
done
|
||||
|
||||
if test "$ac_cv_func_SSL_library_init" = "yes"
|
||||
|
||||
if test "x$ac_cv_func_SSL_library_init" = "xyes"
|
||||
then
|
||||
|
||||
$as_echo "#define HAVE_SSL 1" >>confdefs.h
|
||||
@ -18228,6 +18243,22 @@ fi
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
OLDLIBS="$LIBS"
|
||||
LIBS="$SSL_LIBS $LIBS"
|
||||
for ac_func in ENGINE_cleanup CRYPTO_cleanup_all_ex_data
|
||||
do :
|
||||
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
||||
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
||||
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
||||
_ACEOF
|
||||
|
||||
fi
|
||||
done
|
||||
|
||||
LIBS="$OLDLIBS"
|
||||
fi
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user