diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2015-12-09 19:22:08 +0100 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2015-12-09 22:18:47 +0100 |
| commit | cd48eae560c76f93cec6cf3db7c8cd788b929a69 (patch) | |
| tree | 8630465ef867f96bd3c30957a31d70254aa57d05 | |
| parent | 6b6a0b143d487befb115bcbcb54de862c508f4f6 (diff) | |
build: Always check for gzip/bzip2/xz.
This allows (guix config) to contain valid values of %GZIP et al. even
when configured with --disable-daemon.
* config-daemon.ac: Move 'AC_PATH_PROG' invocations for
gzip & co. to...
* configure.ac: ... here.
| -rw-r--r-- | config-daemon.ac | 8 | ||||
| -rw-r--r-- | configure.ac | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/config-daemon.ac b/config-daemon.ac index 8c1c7761337..c74ec94d312 100644 --- a/config-daemon.ac +++ b/config-daemon.ac | |||
| @@ -14,14 +14,6 @@ if test "x$guix_build_daemon" = "xyes"; then | |||
| 14 | AC_PROG_RANLIB | 14 | AC_PROG_RANLIB |
| 15 | AC_CONFIG_HEADER([nix/config.h]) | 15 | AC_CONFIG_HEADER([nix/config.h]) |
| 16 | 16 | ||
| 17 | dnl Decompressors, for use by the substituter. | ||
| 18 | AC_PATH_PROG([GZIP], [gzip]) | ||
| 19 | AC_PATH_PROG([BZIP2], [bzip2]) | ||
| 20 | AC_PATH_PROG([XZ], [xz]) | ||
| 21 | AC_SUBST([GZIP]) | ||
| 22 | AC_SUBST([BZIP2]) | ||
| 23 | AC_SUBST([XZ]) | ||
| 24 | |||
| 25 | dnl Use 64-bit file system calls so that we can support files > 2 GiB. | 17 | dnl Use 64-bit file system calls so that we can support files > 2 GiB. |
| 26 | AC_SYS_LARGEFILE | 18 | AC_SYS_LARGEFILE |
| 27 | 19 | ||
diff --git a/configure.ac b/configure.ac index 00e7c7b4bc5..19efd08e640 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -90,6 +90,14 @@ GUIX_CHECK_LIBC_MOUNT | |||
| 90 | AM_CONDITIONAL([BUILD_SYSCALLS_MODULE], | 90 | AM_CONDITIONAL([BUILD_SYSCALLS_MODULE], |
| 91 | [test "x$guix_cv_libc_has_mount" = "xyes"]) | 91 | [test "x$guix_cv_libc_has_mount" = "xyes"]) |
| 92 | 92 | ||
| 93 | dnl Decompressors, for use by the substituter and other modules. | ||
| 94 | AC_PATH_PROG([GZIP], [gzip]) | ||
| 95 | AC_PATH_PROG([BZIP2], [bzip2]) | ||
| 96 | AC_PATH_PROG([XZ], [xz]) | ||
| 97 | AC_SUBST([GZIP]) | ||
| 98 | AC_SUBST([BZIP2]) | ||
| 99 | AC_SUBST([XZ]) | ||
| 100 | |||
| 93 | AC_ARG_WITH([nix-prefix], | 101 | AC_ARG_WITH([nix-prefix], |
| 94 | [AS_HELP_STRING([--with-nix-prefix=DIR], | 102 | [AS_HELP_STRING([--with-nix-prefix=DIR], |
| 95 | [search for Nix in DIR (for testing purposes and '--disable-daemon' builds)])], | 103 | [search for Nix in DIR (for testing purposes and '--disable-daemon' builds)])], |
