aboutsummaryrefslogtreecommitdiffstats
path: root/SoftHSMv2/m4/acx_pedantic.m4
diff options
context:
space:
mode:
Diffstat (limited to 'SoftHSMv2/m4/acx_pedantic.m4')
-rw-r--r--SoftHSMv2/m4/acx_pedantic.m412
1 files changed, 12 insertions, 0 deletions
diff --git a/SoftHSMv2/m4/acx_pedantic.m4 b/SoftHSMv2/m4/acx_pedantic.m4
new file mode 100644
index 0000000..11808ee
--- /dev/null
+++ b/SoftHSMv2/m4/acx_pedantic.m4
@@ -0,0 +1,12 @@
+AC_DEFUN([ACX_PEDANTIC],[
+ AC_ARG_ENABLE(
+ [pedantic],
+ [AS_HELP_STRING([--enable-pedantic],[enable pedantic compile mode @<:@enabled@:>@])],
+ ,
+ [enable_pedantic="yes"]
+ )
+ if test "${enable_pedantic}" = "yes"; then
+ enable_strict="yes";
+ CFLAGS="${CFLAGS} -pedantic"
+ fi
+])