summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Esser <besser82@fedoraproject.org>2018-01-18 18:11:16 +0100
committerRobert Ancell <robert.ancell@gmail.com>2018-01-22 12:41:05 +1300
commit9a615ad92e2b7441b527bb90b98bf40b51130a68 (patch)
treeef89bb331cbd10261f279680fc7b24445fcb85eb
parentb6756cf48240805bd77dbbe7a47db86d52d33469 (diff)
downloadlightdm-git-9a615ad92e2b7441b527bb90b98bf40b51130a68.tar.gz
configure: Activate needed C99 mode of compiler
-rw-r--r--configure.ac6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index f836a842..76af6328 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5,12 +5,18 @@ AC_CONFIG_MACRO_DIR(m4)
AC_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE([1.11 no-dist-gzip dist-xz foreign])
AM_SILENT_RULES(yes)
+AC_PROG_CC_C99
LT_INIT
AM_PROG_CC_C_O
AC_PROG_CXX
AC_PROG_LIBTOOL
AM_MAINTAINER_MODE
+dnl Check if the compiler really supports `-std=c99`.
+if test "x$ac_cv_prog_cc_c99" == xno; then
+ AC_MSG_ERROR([$CC does not support '-std=c99'.])
+fi
+
dnl Enable compile warnings (only supporting GCC)
if test "x$GCC" == xyes; then
WARN_CFLAGS="-Wall \