diff options
author | Damien Miller <djm@mindrot.org> | 2024-09-09 09:30:38 +0200 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2024-09-09 09:30:38 +0200 |
commit | 273581210c99ce7275b8efdefbb9f89e1c22e341 (patch) | |
tree | 9afb17c5c11c7482fad04c3826804b8920d4d297 /configure.ac | |
parent | fix previous; check for C99 compound literals (diff) | |
download | openssh-273581210c99ce7275b8efdefbb9f89e1c22e341.tar.xz openssh-273581210c99ce7275b8efdefbb9f89e1c22e341.zip |
declare defeat trying to detect C89 compilers
I can't find a reliable way to detect the features the ML-KEM code
requires in configure. Give up for now and use VLA support (that we
can detect) as a proxy for "old compiler" and turn off ML-KEM if
it isn't supported.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/configure.ac b/configure.ac index 954de6caf..591d5a388 100644 --- a/configure.ac +++ b/configure.ac @@ -353,20 +353,6 @@ AC_COMPILE_IFELSE( [ AC_MSG_RESULT([no]) ] ) -AC_MSG_CHECKING([if compiler supports compound literals]) -AC_COMPILE_IFELSE( - [AC_LANG_PROGRAM([[#include <stdlib.h>]], - [[ struct foo { int bar; int baz; }; - void *fooc = &(struct foo){.bar = 1, .baz = 2}; - struct foo *foo2 = (struct foo *)fooc; - return (foo2->bar == 1 && foo2->baz == 2) ? 0 : 1; - ]])], - [ AC_MSG_RESULT([yes]) - AC_DEFINE(COMPOUND_LITERALS, [1], - [compiler supports compound literals]) ], - [ AC_MSG_RESULT([no]) ] -) - AC_MSG_CHECKING([if compiler accepts variable declarations after code]) AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([[#include <stdlib.h>]], |