diff options
author | Damien Miller <djm@mindrot.org> | 2020-10-17 03:03:34 +0200 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2020-10-17 03:03:34 +0200 |
commit | f812a36cee5727147bc897d34ab9af068dd4561e (patch) | |
tree | ab64bd376042296db195dcd6fb7d4de674848c8a /configure.ac | |
parent | logging is now macros, remove function pointers (diff) | |
download | openssh-f812a36cee5727147bc897d34ab9af068dd4561e.tar.xz openssh-f812a36cee5727147bc897d34ab9af068dd4561e.zip |
check for and require a C99 capable compiler
recent logging changes use __VA_ARGS__.
Diffstat (limited to '')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 7005a503e..05f7b713b 100644 --- a/configure.ac +++ b/configure.ac @@ -22,6 +22,12 @@ AC_CONFIG_HEADER([config.h]) AC_PROG_CC([cc gcc]) AC_CANONICAL_HOST AC_C_BIGENDIAN +AC_PROG_CC_C99 + +# XXX relax this after reimplementing logit() etc. +if test "x$ac_cv_prog_cc_c99" = "xno" ; then + AC_MSG_ERROR([*** OpenSSH requires a C99 capable compiler ***]) +fi # Checks for programs. AC_PROG_AWK |