|
13 | 13 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
14 | 14 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
15 | 15 |
|
16 | | -AC_INIT([OpenSSH], [Portable], [openssh-unix-dev@mindrot.org]) |
| 16 | +AC_INIT([OpenSSH],[Portable],[openssh-unix-dev@mindrot.org]) |
17 | 17 | AC_CONFIG_MACRO_DIR([m4]) |
18 | 18 | AC_CONFIG_SRCDIR([ssh.c]) |
19 | 19 |
|
@@ -845,29 +845,22 @@ int main(void) { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) |
845 | 845 | AC_DEFINE([SSH_TUN_PREPEND_AF], [1], |
846 | 846 | [Prepend the address family to IP tunnel traffic]) |
847 | 847 | AC_MSG_CHECKING([if we have the Security Authorization Session API]) |
848 | | - AC_TRY_COMPILE([#include <Security/AuthSession.h>], |
849 | | - [SessionCreate(0, 0);], |
850 | | - [ac_cv_use_security_session_api="yes" |
| 848 | + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <Security/AuthSession.h>]], [[SessionCreate(0, 0);]])],[ac_cv_use_security_session_api="yes" |
851 | 849 | AC_DEFINE([USE_SECURITY_SESSION_API], [1], |
852 | 850 | [platform has the Security Authorization Session API]) |
853 | 851 | LIBS="$LIBS -framework Security" |
854 | | - AC_MSG_RESULT([yes])], |
855 | | - [ac_cv_use_security_session_api="no" |
| 852 | + AC_MSG_RESULT([yes])],[ac_cv_use_security_session_api="no" |
856 | 853 | AC_MSG_RESULT([no])]) |
857 | 854 | AC_MSG_CHECKING([if we have an in-memory credentials cache]) |
858 | | - AC_TRY_COMPILE( |
859 | | - [#include <Kerberos/Kerberos.h>], |
860 | | - [cc_context_t c; |
861 | | - (void) cc_initialize (&c, 0, NULL, NULL);], |
862 | | - [AC_DEFINE([USE_CCAPI], [1], |
| 855 | + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <Kerberos/Kerberos.h>]], [[cc_context_t c; |
| 856 | + (void) cc_initialize (&c, 0, NULL, NULL);]])],[AC_DEFINE([USE_CCAPI], [1], |
863 | 857 | [platform uses an in-memory credentials cache]) |
864 | 858 | LIBS="$LIBS -framework Security" |
865 | 859 | AC_MSG_RESULT([yes]) |
866 | 860 | if test "x$ac_cv_use_security_session_api" = "xno"; then |
867 | 861 | AC_MSG_ERROR([*** Need a security framework to use the credentials cache API ***]) |
868 | | - fi], |
869 | | - [AC_MSG_RESULT([no])] |
870 | | - ) |
| 862 | + fi],[AC_MSG_RESULT([no]) |
| 863 | + ]) |
871 | 864 | m4_pattern_allow([AU_IPv]) |
872 | 865 | AC_CHECK_DECL([AU_IPv4], [], |
873 | 866 | AC_DEFINE([AU_IPv4], [0], [System only supports IPv4 audit records]) |
@@ -3485,6 +3478,26 @@ if test "x$openssl" = "xyes" ; then |
3485 | 3478 | AC_MSG_RESULT([no]) |
3486 | 3479 | ] |
3487 | 3480 | ) |
| 3481 | + |
| 3482 | + AC_MSG_CHECKING([whether OpenSSL has ML-DSA support]) |
| 3483 | + AC_LINK_IFELSE( |
| 3484 | + [AC_LANG_PROGRAM([[ |
| 3485 | +#include <openssl/evp.h> |
| 3486 | + ]], [[ |
| 3487 | + EVP_PKEY_CTX *ctx; |
| 3488 | + ctx = EVP_PKEY_CTX_new_from_name(NULL, "ML-DSA-44", NULL); |
| 3489 | + if (ctx == NULL) return 1; |
| 3490 | + EVP_PKEY_CTX_free(ctx); |
| 3491 | + ]])], |
| 3492 | + [ |
| 3493 | + AC_MSG_RESULT([yes]) |
| 3494 | + AC_DEFINE([OPENSSL_HAS_MLDSA], [1], |
| 3495 | + [libcrypto has ML-DSA support]) |
| 3496 | + ], |
| 3497 | + [ |
| 3498 | + AC_MSG_RESULT([no]) |
| 3499 | + ] |
| 3500 | + ) |
3488 | 3501 | fi |
3489 | 3502 |
|
3490 | 3503 | # PKCS11/U2F depend on OpenSSL and dlopen(). |
|
0 commit comments