mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
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.
This commit is contained in:
parent
9b9a5e3283
commit
7d328e341a
2 changed files with 35 additions and 23 deletions
|
@ -137,9 +137,18 @@ fi
|
||||||
|
|
||||||
dnl Guile-newt is used by the graphical installer.
|
dnl Guile-newt is used by the graphical installer.
|
||||||
GUILE_MODULE_AVAILABLE([have_guile_newt], [(newt)])
|
GUILE_MODULE_AVAILABLE([have_guile_newt], [(newt)])
|
||||||
|
|
||||||
|
AC_ARG_ENABLE([installer],
|
||||||
|
AS_HELP_STRING([--enable-installer], [Build the graphical installer sources.]))
|
||||||
|
|
||||||
|
AS_IF([test "x$enable_installer" = "xyes"], [
|
||||||
if test "x$have_guile_newt" != "xyes"; then
|
if test "x$have_guile_newt" != "xyes"; then
|
||||||
AC_MSG_ERROR([Guile-newt could not be found; please install it.])
|
AC_MSG_ERROR([Guile-newt could not be found; please install it.])
|
||||||
fi
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
|
AM_CONDITIONAL([ENABLE_INSTALLER],
|
||||||
|
[test "x$enable_installer" = "xyes"])
|
||||||
|
|
||||||
dnl Make sure we have a full-fledged Guile.
|
dnl Make sure we have a full-fledged Guile.
|
||||||
GUIX_ASSERT_GUILE_FEATURES([regex posix socket net-db threads])
|
GUIX_ASSERT_GUILE_FEATURES([regex posix socket net-db threads])
|
||||||
|
|
49
gnu/local.mk
49
gnu/local.mk
|
@ -543,6 +543,29 @@ GNU_SYSTEM_MODULES = \
|
||||||
%D%/build/marionette.scm \
|
%D%/build/marionette.scm \
|
||||||
%D%/build/vm.scm \
|
%D%/build/vm.scm \
|
||||||
\
|
\
|
||||||
|
%D%/tests.scm \
|
||||||
|
%D%/tests/audio.scm \
|
||||||
|
%D%/tests/base.scm \
|
||||||
|
%D%/tests/databases.scm \
|
||||||
|
%D%/tests/desktop.scm \
|
||||||
|
%D%/tests/dict.scm \
|
||||||
|
%D%/tests/docker.scm \
|
||||||
|
%D%/tests/monitoring.scm \
|
||||||
|
%D%/tests/nfs.scm \
|
||||||
|
%D%/tests/install.scm \
|
||||||
|
%D%/tests/mail.scm \
|
||||||
|
%D%/tests/messaging.scm \
|
||||||
|
%D%/tests/networking.scm \
|
||||||
|
%D%/tests/rsync.scm \
|
||||||
|
%D%/tests/security-token.scm \
|
||||||
|
%D%/tests/ssh.scm \
|
||||||
|
%D%/tests/version-control.scm \
|
||||||
|
%D%/tests/virtualization.scm \
|
||||||
|
%D%/tests/web.scm
|
||||||
|
|
||||||
|
if ENABLE_INSTALLER
|
||||||
|
|
||||||
|
GNU_SYSTEM_MODULES += \
|
||||||
%D%/installer.scm \
|
%D%/installer.scm \
|
||||||
%D%/installer/build-installer.scm \
|
%D%/installer/build-installer.scm \
|
||||||
%D%/installer/connman.scm \
|
%D%/installer/connman.scm \
|
||||||
|
@ -563,29 +586,9 @@ GNU_SYSTEM_MODULES = \
|
||||||
%D%/installer/newt/timezone.scm \
|
%D%/installer/newt/timezone.scm \
|
||||||
%D%/installer/newt/utils.scm \
|
%D%/installer/newt/utils.scm \
|
||||||
%D%/installer/newt/welcome.scm \
|
%D%/installer/newt/welcome.scm \
|
||||||
%D%/installer/newt/wifi.scm \
|
%D%/installer/newt/wifi.scm
|
||||||
\
|
|
||||||
%D%/tests.scm \
|
endif ENABLE_INSTALLER
|
||||||
%D%/tests/audio.scm \
|
|
||||||
%D%/tests/base.scm \
|
|
||||||
%D%/tests/databases.scm \
|
|
||||||
%D%/tests/desktop.scm \
|
|
||||||
%D%/tests/dict.scm \
|
|
||||||
%D%/tests/docker.scm \
|
|
||||||
%D%/tests/monitoring.scm \
|
|
||||||
%D%/tests/nfs.scm \
|
|
||||||
%D%/tests/install.scm \
|
|
||||||
%D%/tests/mail.scm \
|
|
||||||
%D%/tests/messaging.scm \
|
|
||||||
%D%/tests/networking.scm \
|
|
||||||
%D%/tests/rsync.scm \
|
|
||||||
%D%/tests/security-token.scm \
|
|
||||||
%D%/tests/ssh.scm \
|
|
||||||
%D%/tests/version-control.scm \
|
|
||||||
%D%/tests/virtualization.scm \
|
|
||||||
%D%/tests/web.scm \
|
|
||||||
\
|
|
||||||
%D%/ci.scm
|
|
||||||
|
|
||||||
# Modules that do not need to be compiled.
|
# Modules that do not need to be compiled.
|
||||||
MODULES_NOT_COMPILED += \
|
MODULES_NOT_COMPILED += \
|
||||||
|
|
Loading…
Reference in a new issue