From: Lev Stipakov Date: Tue, 21 Jan 2020 08:08:28 +0000 (+0200) Subject: configure.ac: simplify AC_CHECK_FUNCS statements X-Git-Tag: v2.5_beta1~213 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91d84530d7eb24718b99478ebac6ba40b0615b28;p=thirdparty%2Fopenvpn.git configure.ac: simplify AC_CHECK_FUNCS statements AC_CHECK_FUNCS checks availability of each function in argument list and defines HAVE_function macro. AC_CHECK_FUNC takes single function as an argument and doesn't automatically define any macros. When we check for availability of a single function and define own macro, it is enough to use AC_CHECK_FUNC. Signed-off-by: Lev Stipakov Acked-by: Arne Schwabe Message-Id: <20200121080828.1310-1-lstipakov@gmail.com> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg19333.html Signed-off-by: Gert Doering --- diff --git a/configure.ac b/configure.ac index 98fd39ceb..3c057295f 100644 --- a/configure.ac +++ b/configure.ac @@ -906,17 +906,17 @@ if test "${with_crypto_library}" = "openssl"; then fi have_crypto_aead_modes="yes" - AC_CHECK_FUNCS( + AC_CHECK_FUNC( [EVP_aes_256_gcm], , - [have_crypto_aead_modes="no"; break] + [have_crypto_aead_modes="no"] ) have_export_keying_material="yes" - AC_CHECK_FUNCS( + AC_CHECK_FUNC( [SSL_export_keying_material], , - [have_export_keying_material="no"; break] + [have_export_keying_material="no"] ) AC_CHECK_FUNCS( @@ -1018,10 +1018,10 @@ elif test "${with_crypto_library}" = "mbedtls"; then ) have_export_keying_material="yes" - AC_CHECK_FUNCS( + AC_CHECK_FUNC( [mbedtls_ssl_conf_export_keys_ext_cb], , - [have_export_keying_material="no"; break] + [have_export_keying_material="no"] ) CFLAGS="${saved_CFLAGS}"