summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Othacehe <m.othacehe@gmail.com>2018-11-23 10:56:49 +0900
committerLudovic Courtès <ludo@gnu.org>2019-01-17 14:04:21 +0100
commit7d328e341a5caca995b6c18c38ae2e9ee07f7b7e (patch)
tree3d26bc1fecaaec5c341d03734a3528b266de9969
parent9b9a5e3283168463545588f83748bb36411e68fe (diff)
configure: Disable installer build by default.
Only build installer if "--enable-installer" is passed. In that case only, the support for Guile-newt becomes mandatory. * configure.ac: Add --enable-installer argument. Export ENABLE_INSTALLER conditional according to the argument value. * gnu/local.mk (GNU_SYSTEM_MODULES): Remove installer modules and build them only if ENABLE_INSTALLER is set.
-rw-r--r--configure.ac9
-rw-r--r--gnu/local.mk49
2 files changed, 35 insertions, 23 deletions
diff --git a/configure.ac b/configure.ac
index 83a9b87d77e..5d70de4beba 100644
--- a/configure.ac
+++ b/configure.ac
@@ -137,9 +137,18 @@ fi
137 137
138dnl Guile-newt is used by the graphical installer. 138dnl Guile-newt is used by the graphical installer.
139GUILE_MODULE_AVAILABLE([have_guile_newt], [(newt)]) 139GUILE_MODULE_AVAILABLE([have_guile_newt], [(newt)])
140
141AC_ARG_ENABLE([installer],
142 AS_HELP_STRING([--enable-installer], [Build the graphical installer sources.]))
143
144AS_IF([test "x$enable_installer" = "xyes"], [
140if test "x$have_guile_newt" != "xyes"; then 145if test "x$have_guile_newt" != "xyes"; then
141 AC_MSG_ERROR([Guile-newt could not be found; please install it.]) 146 AC_MSG_ERROR([Guile-newt could not be found; please install it.])
142fi 147fi
148])
149
150AM_CONDITIONAL([ENABLE_INSTALLER],
151 [test "x$enable_installer" = "xyes"])
143 152
144dnl Make sure we have a full-fledged Guile. 153dnl Make sure we have a full-fledged Guile.
145GUIX_ASSERT_GUILE_FEATURES([regex posix socket net-db threads]) 154GUIX_ASSERT_GUILE_FEATURES([regex posix socket net-db threads])
diff --git a/gnu/local.mk b/gnu/local.mk
index 3e6d30d8e92..665721bec18 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -543,6 +543,29 @@ GNU_SYSTEM_MODULES = \
543 %D%/build/marionette.scm \ 543 %D%/build/marionette.scm \
544 %D%/build/vm.scm \ 544 %D%/build/vm.scm \
545 \ 545 \
546 %D%/tests.scm \
547 %D%/tests/audio.scm \
548 %D%/tests/base.scm \
549 %D%/tests/databases.scm \
550 %D%/tests/desktop.scm \
551 %D%/tests/dict.scm \
552 %D%/tests/docker.scm \
553 %D%/tests/monitoring.scm \
554 %D%/tests/nfs.scm \
555 %D%/tests/install.scm \
556 %D%/tests/mail.scm \
557 %D%/tests/messaging.scm \
558 %D%/tests/networking.scm \
559 %D%/tests/rsync.scm \
560 %D%/tests/security-token.scm \
561 %D%/tests/ssh.scm \
562 %D%/tests/version-control.scm \
563 %D%/tests/virtualization.scm \
564 %D%/tests/web.scm
565
566if ENABLE_INSTALLER
567
568GNU_SYSTEM_MODULES += \
546 %D%/installer.scm \ 569 %D%/installer.scm \
547 %D%/installer/build-installer.scm \ 570 %D%/installer/build-installer.scm \
548 %D%/installer/connman.scm \ 571 %D%/installer/connman.scm \
@@ -563,29 +586,9 @@ GNU_SYSTEM_MODULES = \
563 %D%/installer/newt/timezone.scm \ 586 %D%/installer/newt/timezone.scm \
564 %D%/installer/newt/utils.scm \ 587 %D%/installer/newt/utils.scm \
565 %D%/installer/newt/welcome.scm \ 588 %D%/installer/newt/welcome.scm \
566 %D%/installer/newt/wifi.scm \ 589 %D%/installer/newt/wifi.scm
567 \ 590
568 %D%/tests.scm \ 591endif ENABLE_INSTALLER
569 %D%/tests/audio.scm \
570 %D%/tests/base.scm \
571 %D%/tests/databases.scm \
572 %D%/tests/desktop.scm \
573 %D%/tests/dict.scm \
574 %D%/tests/docker.scm \
575 %D%/tests/monitoring.scm \
576 %D%/tests/nfs.scm \
577 %D%/tests/install.scm \
578 %D%/tests/mail.scm \
579 %D%/tests/messaging.scm \
580 %D%/tests/networking.scm \
581 %D%/tests/rsync.scm \
582 %D%/tests/security-token.scm \
583 %D%/tests/ssh.scm \
584 %D%/tests/version-control.scm \
585 %D%/tests/virtualization.scm \
586 %D%/tests/web.scm \
587 \
588 %D%/ci.scm
589 592
590# Modules that do not need to be compiled. 593# Modules that do not need to be compiled.
591MODULES_NOT_COMPILED += \ 594MODULES_NOT_COMPILED += \