summaryrefslogtreecommitdiffstats
path: root/m4/pdns_enable_fuzz_targets.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/pdns_enable_fuzz_targets.m4')
-rw-r--r--m4/pdns_enable_fuzz_targets.m411
1 files changed, 11 insertions, 0 deletions
diff --git a/m4/pdns_enable_fuzz_targets.m4 b/m4/pdns_enable_fuzz_targets.m4
new file mode 100644
index 0000000..9973fd9
--- /dev/null
+++ b/m4/pdns_enable_fuzz_targets.m4
@@ -0,0 +1,11 @@
+AC_DEFUN([PDNS_ENABLE_FUZZ_TARGETS], [
+ AC_MSG_CHECKING([whether to enable fuzzing targets])
+ AC_ARG_ENABLE([fuzz_targets],
+ AS_HELP_STRING([--enable-fuzz-targets],
+ [enable fuzz targets @<:@default=no@:>@]),
+ [enable_fuzz_targets=$enableval],
+ [enable_fuzz_targets=no]
+ )
+ AC_MSG_RESULT([$enable_fuzz_targets])
+ AM_CONDITIONAL([FUZZ_TARGETS], [test "x$enable_fuzz_targets" != "xno"])
+])