From b9230ca3af2e7226d14d7b3d68fa2800a01b8b05 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Thu, 8 Dec 2016 16:16:42 +0200 Subject: [PATCH] If dbus and avahi enablings are fuzzed differently, make them the same Change-Id: I4acd0e3fac55a0969bfa99e5a2621f3f77aba74d --- configure.ac | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/configure.ac b/configure.ac index bcc29ef62277..4295ee16ce12 100644 --- a/configure.ac +++ b/configure.ac @@ -2368,6 +2368,17 @@ AC_ARG_WITH(system-icu-for-build, [Use icu already on system for build tools (cross-compilation only).])) +dnl =================================================================== +dnl Check for incompatible options set by fuzzing, and reset those +dnl automatically to working combinations +dnl =================================================================== + +if test "$libo_fuzzed_enable_dbus" = yes -a "$libo_fuzzed_enable_avahi" -a \ + "$enable_dbus" != "$enable_avahi"; then + AC_MSG_NOTICE([Resetting --enable-avahi=$enable_dbus]) + enable_avahi=$enable_dbus +fi + dnl =================================================================== dnl check for required programs (grep, awk, sed, bash) dnl ===================================================================