mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-12-03 06:55:44 +00:00
Fix building ssml-fuzzer with libFuzzer.
This commit is contained in:
@@ -86,6 +86,7 @@ fi
|
||||
dnl ================================================================
|
||||
dnl FreeBSD check.
|
||||
dnl ================================================================
|
||||
|
||||
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
|
||||
#if ! defined(__FreeBSD__)
|
||||
#error macro not defined
|
||||
@@ -282,6 +283,22 @@ AX_CHECK_COMPILE_FLAG([-Wuninitialized], [CFLAGS="-Wuninitialized $CFLAG
|
||||
AX_CHECK_COMPILE_FLAG([-Wunused], [CFLAGS="-Wunused $CFLAGS"])
|
||||
AX_CHECK_COMPILE_FLAG([-Wunused-parameter], [CFLAGS="-Wunused-parameter $CFLAGS"])
|
||||
|
||||
dnl ================================================================
|
||||
dnl libFuzzer checks.
|
||||
dnl ================================================================
|
||||
|
||||
AC_ARG_WITH([libfuzzer],
|
||||
[AS_HELP_STRING([--with-libfuzzer], [enable libFuzzer in the fuzzer tests @<:@default=no@:>@])],
|
||||
[])
|
||||
|
||||
if test "$with_libfuzzer" = "yes" ; then
|
||||
have_libfuzzer=yes
|
||||
else
|
||||
have_libfuzzer=no
|
||||
fi
|
||||
|
||||
AM_CONDITIONAL(HAVE_LIBFUZZER, [test x"$have_libfuzzer" = xyes])
|
||||
|
||||
dnl ================================================================
|
||||
dnl Generate output.
|
||||
dnl ================================================================
|
||||
|
||||
Reference in New Issue
Block a user