3 # AX_CHECK_OPENSSL_DEFINE([DEFINE], [VAR][, action-if-found[, action-if-not-found]])
7 # Check if OpenSSL has a define set in it's features provided, i.e. OPENSSL_NO_MD4.
8 # If so, the var argument ac_cv_openssl_[VAR] is set to yes, and action-is-found is
9 # run, else action-if-not-found is executed.
11 # This module require AX_CHECK_OPENSSL
15 # Copyright (c) 2021 Eivind Naess <eivnaes@yahoo.com>
17 # Copying and distribution of this file, with or without modification, are
18 # permitted in any medium without royalty provided the copyright notice
19 # and this notice are preserved. This file is offered as-is, without any
24 AC_DEFUN([AX_CHECK_OPENSSL_DEFINE], [
25 AC_REQUIRE([AX_CHECK_OPENSSL])
26 AC_MSG_CHECKING([for $2 support in openssl])
27 save_CPPFLAGS="$CPPFLAGS"
28 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
31 [[@%:@include <openssl/opensslconf.h>]],
33 #error "No support for $1"
36 [ac_cv_openssl_$2=yes]
42 CPPFLAGS="$save_CPPFLAGS"