# HG changeset patch # User Mike Becker # Date 1572791729 -3600 # Node ID 39cef8f37eb5e97be11b7710f2da927649a8c86c # Parent 8ee9e23adbd20ff8b5c7a665de294cef02d1cd4c adds automatic c11 detection to configure.ac diff -r 8ee9e23adbd2 -r 39cef8f37eb5 configure.ac --- a/configure.ac Sat Oct 05 17:07:16 2019 +0200 +++ b/configure.ac Sun Nov 03 15:35:29 2019 +0100 @@ -52,8 +52,11 @@ # in modern versions of autoconf, this is done by AC_PROG_CC AM_PROG_CC_C_O -# we require the current C standard -AC_PROG_CC_STDC +# we want c11, and may fall back to c99 +AX_CHECK_COMPILE_FLAG([-std=c11], + [AX_APPEND_FLAG([-std=c11])], + [AC_PROG_CC_C99] +) # where to place config macros AC_CONFIG_HEADERS([config.h])