]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
configure.ac: simplify AC_CHECK_FUNCS statements
authorLev Stipakov <lev@openvpn.net>
Tue, 21 Jan 2020 08:08:28 +0000 (10:08 +0200)
committerGert Doering <gert@greenie.muc.de>
Thu, 13 Feb 2020 19:14:45 +0000 (20:14 +0100)
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 <lev@openvpn.net>
Acked-by: Arne Schwabe <arne@rfc2549.org>
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 <gert@greenie.muc.de>
configure.ac

index 98fd39ceb8dac1f9114ef732b1adb5862734091b..3c057295f7a63f2cb4a7e82a6244bd9de77ff775 100644 (file)
@@ -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}"