]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
check for and require a C99 capable compiler
authorDamien Miller <djm@mindrot.org>
Sat, 17 Oct 2020 01:03:34 +0000 (12:03 +1100)
committerDamien Miller <djm@mindrot.org>
Sat, 17 Oct 2020 01:03:34 +0000 (12:03 +1100)
recent logging changes use __VA_ARGS__.

configure.ac

index 7005a503e022c4dc709ff49779c8bdf701e028c0..05f7b713b5fa5b6d957eaacbe0e7cbf42e88cc84 100644 (file)
@@ -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