diff --git a/configure.ac b/configure.ac index e80b0e0..f89106c 100644 --- a/configure.ac +++ b/configure.ac @@ -18,6 +18,12 @@ AM_PROG_AR LT_INIT([disable-static]) AC_PROG_CC +AX_CHECK_COMPILE_FLAG( + [-std=c11 -pedantic], + [CFLAGS="${CFLAGS} -std=c11 -pedantic"], + [AC_MSG_ERROR([C compiled does not support C11])] +) + AC_ARG_ENABLE([man], [AS_HELP_STRING([--disable-man], [Disable man page generation])], [:],