X-Git-Url: http://git.meshlink.io/?p=meshlink;a=blobdiff_plain;f=configure.ac;h=1047dc1b7101b69f3419f3c244bc306403305d0e;hp=cfef2a11362b7b411ad9face45cb0a1f477969d4;hb=4b6c01b1d5383b1a7417244a31ad4652aab2d5db;hpb=306cfa82f27bc7fcf798e6bc35e58ea695ef7bf2 diff --git a/configure.ac b/configure.ac index cfef2a11..1047dc1b 100644 --- a/configure.ac +++ b/configure.ac @@ -54,6 +54,8 @@ if test -d /sw/lib ; then LIBS="$LIBS -L/sw/lib" fi +AX_CHECK_COMPILE_FLAG([-std=c11], [CFLAGS="$CFLAGS -std=c11"]) + dnl Compiler hardening flags dnl No -fstack-protector-all because it doesn't work on all platforms or architectures.