]> granicus.if.org Git - pdns/commitdiff
"--disable-hardening" option improved
authorThomas D <whissi@whissi.de>
Sat, 14 Feb 2015 17:42:52 +0000 (18:42 +0100)
committerThomas D <whissi@whissi.de>
Sat, 14 Feb 2015 22:26:51 +0000 (23:26 +0100)
* Splitted into argument and helptext

* MSG about hardening status added to configure output

configure.ac

index f34cc6331385f1d8a0f0183177aecec2f9cca39b..3c9908dd88e3c8c3166e6bfa33c3e76771d1c8ae 100644 (file)
@@ -37,9 +37,15 @@ AC_DEFINE([_GNU_SOURCE], [1],
 
 AX_CXX_COMPILE_STDCXX_11(,optional)
 AM_CONDITIONAL([CXX2011],[test "$HAVE_CXX11" = "1"])
-AC_ARG_ENABLE([hardening], [
-  AS_HELP_STRING([--disable-hardening, disable compiler security checks])
-])
+
+AC_MSG_CHECKING([whether we will enable compiler security checks])
+AC_ARG_ENABLE([hardening],
+  [AS_HELP_STRING([--disable-hardening],[disable compiler security checks @<:@default=no@:>@])],
+  [enable_hardening=$enableval],
+  [enable_hardening=yes]
+)
+AC_MSG_RESULT([$enable_hardening])
+
 AS_IF([test "x$enable_hardening" != "xno"], [
   AC_CC_PIE
   AC_CC_STACK_PROTECTOR