|author||Guy Harris <firstname.lastname@example.org>||2015-10-07 11:00:31 -0700|
|committer||Guy Harris <email@example.com>||2015-10-07 18:01:01 +0000|
Don't just ask for C, ask for standard C - preferably C99.
We're using some C99 features, such as variadic macros, so if there's a compiler flag needed for C99 features, make sure it's supplied. If the compiler doesn't support standard C, complain. Change-Id: I6fb18f5222567249370b3d43065f2258dbde7e4d Reviewed-on: https://code.wireshark.org/review/10866 Reviewed-by: Guy Harris <firstname.lastname@example.org>
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 592448d862..e708e0f8ba 100644
@@ -59,7 +59,11 @@ AM_DISABLE_STATIC
# Checks for programs used in the main build process.
+if test "$ac_cv_prog_cc_stdc" == "no"
+ AC_MSG_ERROR([The C compiler does not support standard C])