Skip to content

Commit

Permalink
added --enable-libfiu-support to build fwknop with fault injection su…
Browse files Browse the repository at this point in the history
…pport
  • Loading branch information
mrash committed May 21, 2014
1 parent 8482143 commit 0238993
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion configure.ac
Expand Up @@ -130,11 +130,28 @@ AC_ARG_ENABLE([profile-coverage],
[])

if test "x$want_profile_coverage" = "xyes"; then
CFLAGS="-g"
FKO_CHECK_COMPILER_ARG([-fprofile-arcs -ftest-coverage -fno-inline])
FKO_CHECK_COMPILER_ARG([-g])
FKO_CHECK_COMPILER_ARG_LDFLAGS_ONLY([-lgcov])
fi

dnl Decide whether or not to build binaries with fault injection support
dnl provided by libfiu (see: http://blitiri.com.ar/p/libfiu/) for fault
dnl testing
dnl
want_libfiu_support=no
AC_ARG_ENABLE([libfiu-support],
[AS_HELP_STRING([--enable-libfiu-support],
[Build fwknop binaries with fault injection testing support @<:@default is to disable@:>@])],
[want_libfiu_support=$enableval],
[])

if test "x$want_libfiu_support" = "xyes"; then
AC_DEFINE([HAVE_LIBFIU], [1], [Define for fault injection testing support])
FKO_CHECK_COMPILER_ARG([-DFIU_ENABLE])
FKO_CHECK_COMPILER_ARG_LDFLAGS_ONLY([-lfiu])
fi

dnl Decide whether or not to compile in certain features that enable fuzzing
dnl of fwknop code - this is for testing purposes only.
dnl
Expand Down

0 comments on commit 0238993

Please sign in to comment.