1 |
commit: 05aa21138340e1e47fdc1221fe28f91c56069efd |
2 |
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Nov 6 01:00:57 2021 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 6 01:00:57 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sandbox.git/commit/?id=05aa2113 |
7 |
|
8 |
build: require at least a C99 compiler |
9 |
|
10 |
Realistically we aren't even testing with older than C11 compilers, |
11 |
but one thing at a time. |
12 |
|
13 |
Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org> |
14 |
|
15 |
configure.ac | 3 ++- |
16 |
1 file changed, 2 insertions(+), 1 deletion(-) |
17 |
|
18 |
diff --git a/configure.ac b/configure.ac |
19 |
index a353e0a..56ca87f 100644 |
20 |
--- a/configure.ac |
21 |
+++ b/configure.ac |
22 |
@@ -20,7 +20,8 @@ env 1>&AS_MESSAGE_LOG_FD |
23 |
AC_MSG_RESULT([ok]) |
24 |
|
25 |
dnl Check for compiler and features first. |
26 |
-AC_PROG_CC |
27 |
+AC_PROG_CC_C99 |
28 |
+AS_IF([test "$ac_cv_prog_cc_c99" = "no"], [AC_MSG_ERROR([A C99+ compiler is required])]) |
29 |
AM_PROG_CC_C_O |
30 |
AC_ISC_POSIX |
31 |
AC_USE_SYSTEM_EXTENSIONS |