From 35a32fefb4695442265809805145b7a262ae4988 Mon Sep 17 00:00:00 2001 From: Mathieu Othacehe Date: Sun, 29 Nov 2020 18:05:11 +0100 Subject: Make "guile-avahi" dependency optional. * configure.ac (HAVE_GUILE_AVAHI): New conditional. * Makefile.am (MODULES): Add "guix/avahi.scm" and "guix/scripts/discover.scm" if HAVE_GUILE_AVAHI is set. * guix/scripts/publish.scm: Autoload (guix avahi). * guix/scripts/substitute.scm: Autoload (guix scripts discovery). --- configure.ac | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 307e8b361f..942e84164a 100644 --- a/configure.ac +++ b/configure.ac @@ -163,9 +163,8 @@ fi dnl Check for Guile-Avahi. GUILE_MODULE_AVAILABLE([have_guile_avahi], [(avahi)]) -if test "x$have_guile_avahi" != "xyes"; then - AC_MSG_ERROR([Guile-Avahi is missing; please install it.]) -fi +AM_CONDITIONAL([HAVE_GUILE_AVAHI], + [test "x$have_guile_avahi" = "xyes"]) dnl Guile-newt is used by the graphical installer. GUILE_MODULE_AVAILABLE([have_guile_newt], [(newt)]) -- cgit v1.2.3