X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=configure.ac;h=1a032e68d87e002ddb8c0fa5622a53370a3847d8;hp=ad5ba622301d909cdd379b3c6ec8fda999d914d9;hb=aebaaa8db80ec3931346af710f2182d129c74c41;hpb=3cceae93f61a44d4f9f38d729555b2f31e209beb diff --git a/configure.ac b/configure.ac index ad5ba622..1a032e68 100644 --- a/configure.ac +++ b/configure.ac @@ -140,6 +140,8 @@ AS_IF([test -d /sw/lib], [LIBS="$LIBS -L/sw/lib"]) dnl Compiler hardening flags dnl No -fstack-protector-all because it doesn't work on all platforms or architectures. +AX_CFLAGS_WARN_ALL(CFLAGS) + AC_ARG_ENABLE([hardening], AS_HELP_STRING([--disable-hardening], [disable compiler and linker hardening flags])) AS_IF([test "x$enable_hardening" != "xno"], [AX_CHECK_COMPILE_FLAG([-DFORTIFY_SOURCE=2], [CPPFLAGS="$CPPFLAGS -DFORTIFY_SOURCE=2"]) @@ -203,7 +205,7 @@ case $host_os in [], [AC_MSG_ERROR([Required header file missng])], [#include "$srcdir/src/have.h"] ) ;; - *bsd*|*darwin*) + *bsd*|*dragonfly*|*darwin*) AC_CHECK_HEADERS([net/if_tun.h net/if_utun.h net/tun/if_tun.h net/if_tap.h net/tap/if_tap.h], [], [], [#include "$srcdir/src/have.h"] )