diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 7bfd625..f87f855 100644 --- a/configure.ac +++ b/configure.ac @@ -22,6 +22,8 @@ AC_ARG_ENABLE([compare], AS_HELP_STRING([--enable-compare], [enable compare program (requires libpng) @<:@default=no@:>@])) AC_ARG_ENABLE([profile], AS_HELP_STRING([--enable-profile], [enable profiling program @<:@default=no@:>@])) +AC_ARG_ENABLE([fuzz], AS_HELP_STRING([--enable-fuzz], + [enable fuzzing consumer @<:@default=no@:>@])) AC_ARG_ENABLE([fontconfig], AS_HELP_STRING([--disable-fontconfig], [disable fontconfig support @<:@default=check@:>@])) AC_ARG_ENABLE([directwrite], AS_HELP_STRING([--disable-directwrite], @@ -35,6 +37,12 @@ AC_ARG_ENABLE([asm], AS_HELP_STRING([--disable-asm], AC_ARG_ENABLE([large-tiles], AS_HELP_STRING([--enable-large-tiles], [use larger tiles in the rasterizer (better performance, slightly worse quality) @<:@default=disabled@:>@])) +AC_ARG_VAR([FUZZ_LDFLAGS], + [Optional special linking flags only used for the fuzzer binary.]) +AC_ARG_VAR([FUZZ_CPPFLAGS], + [If fuzzing program is enabled, set this to select alternative modes; see fuzzer source for options.]) +FUZZ_CPPFLAGS="${FUZZ_CPPFLAGS:--DASS_FUZZMODE=0}" + # Checks for available libraries and define corresponding C Macros # Start with system libs, then check everything else via pkg-config AS_IF([test "x$ac_cv_header_iconv_h" = xyes], [ @@ -323,6 +331,7 @@ AM_CONDITIONAL([ENABLE_LARGE_TILES], [test "x$enable_large_tiles" = xyes]) AM_CONDITIONAL([ENABLE_COMPARE], [test "x$enable_compare" = xyes && test "x$libpng" = xtrue]) AM_CONDITIONAL([ENABLE_TEST], [test "x$enable_test" = xyes && test "x$libpng" = xtrue]) AM_CONDITIONAL([ENABLE_PROFILE], [test "x$enable_profile" = xyes]) +AM_CONDITIONAL([ENABLE_FUZZ], [test "x$enable_fuzz" = xyes]) AM_CONDITIONAL([FONTCONFIG], [test "x$fontconfig" = xtrue]) AM_CONDITIONAL([CORETEXT], [test "x$coretext" = xtrue]) |