summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorSergey 'Jin' Bostandzhyan <jin at mediatomb dot cc>2017-01-10 09:55:21 +0100
committerSergey 'Jin' Bostandzhyan <jin at mediatomb dot cc>2017-01-10 09:55:21 +0100
commit2d7507314a00737a08b777b20a4807994a3bd3e2 (patch)
tree4694afd326d8d73353a84863cb9247c8dd885813 /configure.ac
parent6ec23c98bd5e6b6ca3dad9d5da5a46e83419f5bb (diff)
Explicitly check if compiler supports C99
c-tocxocre will start using C99 code, so check if the compiler supports it and abort in configure with an error if it does not. closes #413
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac7
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index dbbda824..8d59882c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -295,7 +295,12 @@ if test "x$WANT_NACL" = "xyes"; then
295fi 295fi
296 296
297# Checks for programs. 297# Checks for programs.
298AC_PROG_CC 298AC_PROG_CC_C99
299
300if test "x$ac_cv_prog_cc_c99" = "xno" ; then
301 AC_MSG_ERROR([c-toxcore requires a C99 compatible compiler])
302fi
303
299AM_PROG_CC_C_O 304AM_PROG_CC_C_O
300m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) 305m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
301AC_LIBTOOL_WIN32_DLL 306AC_LIBTOOL_WIN32_DLL