X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=configure.ac;h=f9a93259e7ceb7d3b2adc1a15d55e0f3750acbc9;hb=c4deb6c20dceb73c0ac6baa2eb901434584e6191;hp=f0617f3206de57c1f8ccb6de7e785a2f8207990c;hpb=a5df8a6eac570fc0f3b10cfcdeb9ccccc8dd1ac1;p=meshlink diff --git a/configure.ac b/configure.ac index f0617f32..f9a93259 100644 --- a/configure.ac +++ b/configure.ac @@ -54,7 +54,7 @@ if test -d /sw/lib ; then LIBS="$LIBS -L/sw/lib" fi -AX_CHECK_COMPILE_FLAG([-std=c11], [CPPFLAGS="-std=c11"]) +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. @@ -123,7 +123,7 @@ AM_CONDITIONAL(INSTALL_TESTS, test "$install_tests" = true) dnl Checks for header files. dnl We do this in multiple stages, because unlike Linux all the other operating systems really suck and don't include their own dependencies. -AC_CHECK_HEADERS([syslog.h sys/file.h sys/param.h sys/resource.h sys/socket.h sys/time.h sys/un.h sys/wait.h netdb.h arpa/inet.h dirent.h curses.h ifaddrs.h]) +AC_CHECK_HEADERS([syslog.h sys/file.h sys/param.h sys/resource.h sys/socket.h sys/time.h sys/un.h sys/wait.h netdb.h arpa/inet.h dirent.h curses.h ifaddrs.h stdatomic.h]) dnl Checks for typedefs, structures, and compiler characteristics. MeshLink_ATTRIBUTE(__malloc__)