Mirror of GNU Guix
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

278 linhas
8.4 KiB

maint: Switch to Guile-JSON 3.x. Guile-JSON 3.x is incompatible with Guile-JSON 1.x, which we relied on until now: it maps JSON dictionaries to alists (instead of hash tables), and JSON arrays to vectors (instead of lists). This commit is about adjusting all the existing code to this new mapping. * m4/guix.m4 (GUIX_CHECK_GUILE_JSON): New macro. * configure.ac: Use it. * doc/guix.texi (Requirements): Mention the Guile-JSON version. * guix/git-download.scm (git-fetch)[guile-json]: Use GUILE-JSON-3. * guix/import/cpan.scm (string->license): Expect vectors instead of lists. (module->dist-name): Use 'json-fetch' instead of 'json-fetch-alist'. (cpan-fetch): Likewise. * guix/import/crate.scm (crate-fetch): Likewise, and call 'vector->list' for DEPS. * guix/import/gem.scm (rubygems-fetch): Likewise. * guix/import/json.scm (json-fetch-alist): Remove. * guix/import/pypi.scm (pypi-fetch): Use 'json-fetch' instead of 'json-fetch-alist'. (latest-source-release, latest-wheel-release): Call 'vector->list' on RELEASES. * guix/import/stackage.scm (stackage-lts-info-fetch): Use 'json-fetch' instead of 'json-fetch-alist'. (lts-package-version): Use 'vector->list'. * guix/import/utils.scm (hash-table->alist): Remove. (alist->package): Pass 'vector->list' on the inputs fields, and default to the empty vector. * guix/scripts/import/json.scm (guix-import-json): Remove call to 'hash-table->alist'. * guix/swh.scm (define-json-reader): Expect pair? or null? instead of hash-table?. [extract-field]: Use 'assoc-ref' instead of 'hash-ref'. (json->branches): Use 'map' instead of 'hash-map->list'. (json->checksums): Likewise. (json->directory-entries, origin-visits): Call 'vector->list' on the result of 'json->scm'. * tests/import-utils.scm ("alist->package with dependencies"): New test. * gnu/installer.scm (build-compiled-file)[builder]: Use GUILE-JSON-3. * gnu/installer.scm (installer-program)[installer-builder]: Likewise. * gnu/installer/locale.scm (iso639->iso639-languages): Use 'assoc-ref' instead of 'hash-ref', and pass vectors through 'vector->list'. (iso3166->iso3166-territories): Likewise. * gnu/system/vm.scm (system-docker-image)[build]: Use GUILE-JSON-3. * guix/docker.scm (manifest, config): Adjust for Guile-JSON 3. * guix/scripts/pack.scm (docker-image)[build]: Use GUILE-JSON-3. * guix/import/github.scm (fetch-releases-or-tags): Update docstring. (latest-released-version): Use 'assoc-ref' instead of 'hash-ref'. Pass the result of 'fetch-releases-or-tags' to 'vector->list'. * guix/import/launchpad.scm (latest-released-version): Likewise.
há 2 anos
Switch to Guile-Gcrypt. This removes (guix hash) and (guix pk-crypto), which now live as part of Guile-Gcrypt (version 0.1.0.) * guix/gcrypt.scm, guix/hash.scm, guix/pk-crypto.scm, tests/hash.scm, tests/pk-crypto.scm: Remove. * configure.ac: Test for Guile-Gcrypt. Remove LIBGCRYPT and LIBGCRYPT_LIBDIR assignments. * m4/guix.m4 (GUIX_ASSERT_LIBGCRYPT_USABLE): Remove. * README: Add Guile-Gcrypt to the dependencies; move libgcrypt as "required unless --disable-daemon". * doc/guix.texi (Requirements): Likewise. * gnu/packages/bash.scm, guix/derivations.scm, guix/docker.scm, guix/git.scm, guix/http-client.scm, guix/import/cpan.scm, guix/import/cran.scm, guix/import/crate.scm, guix/import/elpa.scm, guix/import/gnu.scm, guix/import/hackage.scm, guix/import/texlive.scm, guix/import/utils.scm, guix/nar.scm, guix/pki.scm, guix/scripts/archive.scm, guix/scripts/authenticate.scm, guix/scripts/download.scm, guix/scripts/hash.scm, guix/scripts/pack.scm, guix/scripts/publish.scm, guix/scripts/refresh.scm, guix/scripts/substitute.scm, guix/store.scm, guix/store/deduplication.scm, guix/tests.scm, tests/base32.scm, tests/builders.scm, tests/challenge.scm, tests/cpan.scm, tests/crate.scm, tests/derivations.scm, tests/gem.scm, tests/nar.scm, tests/opam.scm, tests/pki.scm, tests/publish.scm, tests/pypi.scm, tests/store-deduplication.scm, tests/store.scm, tests/substitute.scm: Adjust imports. * gnu/system/vm.scm: Likewise. (guile-sqlite3&co): Rename to... (gcrypt-sqlite3&co): ... this. Add GUILE-GCRYPT. (expression->derivation-in-linux-vm)[config]: Remove. (iso9660-image)[config]: Remove. (qemu-image)[config]: Remove. (system-docker-image)[config]: Remove. * guix/scripts/pack.scm: Adjust imports. (guile-sqlite3&co): Rename to... (gcrypt-sqlite3&co): ... this. Add GUILE-GCRYPT. (self-contained-tarball)[build]: Call 'make-config.scm' without #:libgcrypt argument. (squashfs-image)[libgcrypt]: Remove. [build]: Call 'make-config.scm' without #:libgcrypt. (docker-image)[config, json]: Remove. [build]: Add GUILE-GCRYPT to the extensions Remove (guix config) from the imported modules. * guix/self.scm (specification->package): Remove "libgcrypt", add "guile-gcrypt". (compiled-guix): Remove #:libgcrypt. [guile-gcrypt]: New variable. [dependencies]: Add it. [*core-modules*]: Remove #:libgcrypt from 'make-config.scm' call. Add #:extensions. [*config*]: Remove #:libgcrypt from 'make-config.scm' call. (%dependency-variables): Remove %libgcrypt. (make-config.scm): Remove #:libgcrypt. * build-aux/build-self.scm (guile-gcrypt): New variable. (make-config.scm): Remove #:libgcrypt. (build-program)[fake-gcrypt-hash]: New variable. Add (gcrypt hash) to the imported modules. Adjust load path assignments. * gnu/packages/package-management.scm (guix)[propagated-inputs]: Add GUILE-GCRYPT. [arguments]: In 'wrap-program' phase, add GUILE-GCRYPT to the search path.
há 3 anos
Use "guile-zlib" and "guile-lzlib" instead of (guix config). * Makefile.am (MODULES): Remove guix/zlib.scm and guix/lzlib.scm, (SCM_TESTS): remove tests/zlib.scm, tests/lzlib.scm. * build-aux/build-self.scm (make-config.scm): Remove unused %libz variable. * configure.ac: Remove LIBZ and LIBLZ variables and check instead for Guile-zlib and Guile-lzlib. * doc/guix.texi ("Requirements"): Remove zlib requirement and add Guile-zlib and Guile-lzlib instead. * gnu/packages/package-management.scm (guix)[native-inputs]: Add "guile-zlib" and "guile-lzlib", [inputs]: remove "zlib" and "lzlib", [propagated-inputs]: ditto, [arguments]: add "guile-zlib" and "guile-lzlib" to Guile load path. * guix/config.scm.in (%libz, %liblz): Remove them. * guix/lzlib.scm: Remove it. * guix/man-db.scm: Use (zlib) instead of (guix zlib). * guix/profiles.scm (manual-database): Do not stub (guix config) in imported modules list, instead add "guile-zlib" to the extension list. * guix/scripts/publish.scm: Use (zlib) instead of (guix zlib) and (lzlib) instead of (guix lzlib), (string->compression-type, effective-compression): do not check for zlib and lzlib availability. * guix/scripts/substitute.scm (%compression-methods): Do not check for lzlib availability. * guix/self.scm (specification->package): Add "guile-zlib" and "guile-lzlib" and remove "zlib" and "lzlib", (compiled-guix): remove "zlib" and "lzlib" arguments and add guile-zlib and guile-lzlib to the dependencies, also do not pass "zlib" and "lzlib" to "make-config.scm" procedure, (make-config.scm): remove "zlib" and "lzlib" arguments as well as %libz and %liblz variables. * guix/utils.scm (lzip-port): Use (lzlib) instead of (guix lzlib) and do not check for lzlib availability. * guix/zlib.scm: Remove it. * m4/guix.m4 (GUIX_LIBZ_LIBDIR, GUIX_LIBLZ_FILE_NAME): Remove them. * tests/lzlib.scm: Use (zlib) instead of (guix zlib) and (lzlib) instead of (guix lzlib), and do not check for zlib and lzlib availability. * tests/publish.scm: Ditto. * tests/substitute.scm: Do not check for lzlib availability. * tests/utils.scm: Ditto. * tests/zlib.scm: Remove it.
há 1 ano
Use "guile-zlib" and "guile-lzlib" instead of (guix config). * Makefile.am (MODULES): Remove guix/zlib.scm and guix/lzlib.scm, (SCM_TESTS): remove tests/zlib.scm, tests/lzlib.scm. * build-aux/build-self.scm (make-config.scm): Remove unused %libz variable. * configure.ac: Remove LIBZ and LIBLZ variables and check instead for Guile-zlib and Guile-lzlib. * doc/guix.texi ("Requirements"): Remove zlib requirement and add Guile-zlib and Guile-lzlib instead. * gnu/packages/package-management.scm (guix)[native-inputs]: Add "guile-zlib" and "guile-lzlib", [inputs]: remove "zlib" and "lzlib", [propagated-inputs]: ditto, [arguments]: add "guile-zlib" and "guile-lzlib" to Guile load path. * guix/config.scm.in (%libz, %liblz): Remove them. * guix/lzlib.scm: Remove it. * guix/man-db.scm: Use (zlib) instead of (guix zlib). * guix/profiles.scm (manual-database): Do not stub (guix config) in imported modules list, instead add "guile-zlib" to the extension list. * guix/scripts/publish.scm: Use (zlib) instead of (guix zlib) and (lzlib) instead of (guix lzlib), (string->compression-type, effective-compression): do not check for zlib and lzlib availability. * guix/scripts/substitute.scm (%compression-methods): Do not check for lzlib availability. * guix/self.scm (specification->package): Add "guile-zlib" and "guile-lzlib" and remove "zlib" and "lzlib", (compiled-guix): remove "zlib" and "lzlib" arguments and add guile-zlib and guile-lzlib to the dependencies, also do not pass "zlib" and "lzlib" to "make-config.scm" procedure, (make-config.scm): remove "zlib" and "lzlib" arguments as well as %libz and %liblz variables. * guix/utils.scm (lzip-port): Use (lzlib) instead of (guix lzlib) and do not check for lzlib availability. * guix/zlib.scm: Remove it. * m4/guix.m4 (GUIX_LIBZ_LIBDIR, GUIX_LIBLZ_FILE_NAME): Remove them. * tests/lzlib.scm: Use (zlib) instead of (guix zlib) and (lzlib) instead of (guix lzlib), and do not check for zlib and lzlib availability. * tests/publish.scm: Ditto. * tests/substitute.scm: Do not check for lzlib availability. * tests/utils.scm: Ditto. * tests/zlib.scm: Remove it.
há 1 ano
Switch to Guile-Gcrypt. This removes (guix hash) and (guix pk-crypto), which now live as part of Guile-Gcrypt (version 0.1.0.) * guix/gcrypt.scm, guix/hash.scm, guix/pk-crypto.scm, tests/hash.scm, tests/pk-crypto.scm: Remove. * configure.ac: Test for Guile-Gcrypt. Remove LIBGCRYPT and LIBGCRYPT_LIBDIR assignments. * m4/guix.m4 (GUIX_ASSERT_LIBGCRYPT_USABLE): Remove. * README: Add Guile-Gcrypt to the dependencies; move libgcrypt as "required unless --disable-daemon". * doc/guix.texi (Requirements): Likewise. * gnu/packages/bash.scm, guix/derivations.scm, guix/docker.scm, guix/git.scm, guix/http-client.scm, guix/import/cpan.scm, guix/import/cran.scm, guix/import/crate.scm, guix/import/elpa.scm, guix/import/gnu.scm, guix/import/hackage.scm, guix/import/texlive.scm, guix/import/utils.scm, guix/nar.scm, guix/pki.scm, guix/scripts/archive.scm, guix/scripts/authenticate.scm, guix/scripts/download.scm, guix/scripts/hash.scm, guix/scripts/pack.scm, guix/scripts/publish.scm, guix/scripts/refresh.scm, guix/scripts/substitute.scm, guix/store.scm, guix/store/deduplication.scm, guix/tests.scm, tests/base32.scm, tests/builders.scm, tests/challenge.scm, tests/cpan.scm, tests/crate.scm, tests/derivations.scm, tests/gem.scm, tests/nar.scm, tests/opam.scm, tests/pki.scm, tests/publish.scm, tests/pypi.scm, tests/store-deduplication.scm, tests/store.scm, tests/substitute.scm: Adjust imports. * gnu/system/vm.scm: Likewise. (guile-sqlite3&co): Rename to... (gcrypt-sqlite3&co): ... this. Add GUILE-GCRYPT. (expression->derivation-in-linux-vm)[config]: Remove. (iso9660-image)[config]: Remove. (qemu-image)[config]: Remove. (system-docker-image)[config]: Remove. * guix/scripts/pack.scm: Adjust imports. (guile-sqlite3&co): Rename to... (gcrypt-sqlite3&co): ... this. Add GUILE-GCRYPT. (self-contained-tarball)[build]: Call 'make-config.scm' without #:libgcrypt argument. (squashfs-image)[libgcrypt]: Remove. [build]: Call 'make-config.scm' without #:libgcrypt. (docker-image)[config, json]: Remove. [build]: Add GUILE-GCRYPT to the extensions Remove (guix config) from the imported modules. * guix/self.scm (specification->package): Remove "libgcrypt", add "guile-gcrypt". (compiled-guix): Remove #:libgcrypt. [guile-gcrypt]: New variable. [dependencies]: Add it. [*core-modules*]: Remove #:libgcrypt from 'make-config.scm' call. Add #:extensions. [*config*]: Remove #:libgcrypt from 'make-config.scm' call. (%dependency-variables): Remove %libgcrypt. (make-config.scm): Remove #:libgcrypt. * build-aux/build-self.scm (guile-gcrypt): New variable. (make-config.scm): Remove #:libgcrypt. (build-program)[fake-gcrypt-hash]: New variable. Add (gcrypt hash) to the imported modules. Adjust load path assignments. * gnu/packages/package-management.scm (guix)[propagated-inputs]: Add GUILE-GCRYPT. [arguments]: In 'wrap-program' phase, add GUILE-GCRYPT to the search path.
há 3 anos
  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. AC_PREREQ([2.69])
  4. AC_INIT([GNU Guix],
  5. [m4_esyscmd([build-aux/git-version-gen .tarball-version])],
  6. [bug-guix@gnu.org], [guix],
  7. [https://www.gnu.org/software/guix/])
  8. AC_CONFIG_AUX_DIR([build-aux])
  9. AM_INIT_AUTOMAKE([1.14 gnu tar-ustar silent-rules subdir-objects \
  10. color-tests parallel-tests -Woverride -Wno-portability])
  11. # Enable silent rules by default.
  12. AM_SILENT_RULES([yes])
  13. AC_CONFIG_SRCDIR([guix.scm])
  14. AC_CONFIG_MACRO_DIR([m4])
  15. dnl For the C++ code. This must be used early.
  16. AC_USE_SYSTEM_EXTENSIONS
  17. AM_GNU_GETTEXT([external])
  18. AM_GNU_GETTEXT_VERSION([0.19.1])
  19. GUIX_SYSTEM_TYPE
  20. GUIX_ASSERT_SUPPORTED_SYSTEM
  21. GUIX_CHANNEL_METADATA
  22. AM_CONDITIONAL([CROSS_COMPILING], [test "x$cross_compiling" = "xyes"])
  23. AC_ARG_WITH(store-dir,
  24. AS_HELP_STRING([--with-store-dir=PATH],
  25. [file name of the store (defaults to /gnu/store)]),
  26. [storedir="$withval"],
  27. [storedir="/gnu/store"])
  28. AC_SUBST(storedir)
  29. AC_ARG_WITH([bash-completion-dir],
  30. AS_HELP_STRING([--with-bash-completion-dir=DIR],
  31. [name of the Bash completion directory]),
  32. [bashcompletiondir="$withval"],
  33. [bashcompletiondir='${sysconfdir}/bash_completion.d'])
  34. AC_SUBST([bashcompletiondir])
  35. AC_ARG_WITH([zsh-completion-dir],
  36. AS_HELP_STRING([--with-zsh-completion-dir=DIR],
  37. [name of the Zsh completion directory]),
  38. [zshcompletiondir="$withval"],
  39. [zshcompletiondir='${datadir}/zsh/site-functions'])
  40. AC_SUBST([zshcompletiondir])
  41. AC_ARG_WITH([fish-completion-dir],
  42. AS_HELP_STRING([--with-fish-completion-dir=DIR],
  43. [name of the Fish completion directory]),
  44. [fishcompletiondir="$withval"],
  45. [fishcompletiondir='${datadir}/fish/vendor_completions.d'])
  46. AC_SUBST([fishcompletiondir])
  47. AC_ARG_WITH([selinux-policy-dir],
  48. AS_HELP_STRING([--with-selinux-policy-dir=DIR],
  49. [name of the SELinux policy directory]),
  50. [selinux_policydir="$withval"],
  51. [selinux_policydir='${datadir}/selinux/'])
  52. AC_SUBST([selinux_policydir])
  53. dnl Better be verbose.
  54. AC_MSG_CHECKING([for the store directory])
  55. AC_MSG_RESULT([$storedir])
  56. AC_ARG_ENABLE([daemon],
  57. [AS_HELP_STRING([--disable-daemon], [do not build the Nix daemon (C++)])],
  58. [guix_build_daemon="$enableval"],
  59. [guix_build_daemon="yes"])
  60. # Prepare a version of $localstatedir & co. that does not contain references
  61. # to shell variables.
  62. guix_prefix="`eval echo $prefix | sed -e"s|NONE|/usr/local|g"`"
  63. guix_localstatedir="`eval echo $localstatedir | sed -e "s|NONE|$guix_prefix|g"`"
  64. guix_sysconfdir="`eval echo $sysconfdir | sed -e "s|NONE|$guix_prefix|g"`"
  65. guix_sbindir="`eval echo $sbindir | sed -e "s|NONE|$guix_prefix|g"`"
  66. AC_SUBST([guix_localstatedir])
  67. AC_SUBST([guix_sysconfdir])
  68. AC_SUBST([guix_sbindir])
  69. GUIX_CHECK_FILE_NAME_LIMITS([can_run_tests])
  70. AM_CONDITIONAL([CAN_RUN_TESTS], [test "x$can_run_tests" = "xyes"])
  71. dnl We require pkg.m4 (from pkg-config) and guile.m4 (from Guile.)
  72. dnl Make sure they are available.
  73. m4_pattern_forbid([PKG_CHECK_MODULES])
  74. m4_pattern_forbid([GUILE_MODULE_AVAILABLE])
  75. m4_pattern_forbid([^GUILE_P])
  76. m4_pattern_allow([^GUILE_PKG_ERRORS])
  77. m4_pattern_forbid([^GUIX_])
  78. dnl Search for 'guile' and 'guild'. This macro defines
  79. dnl 'GUILE_EFFECTIVE_VERSION'.
  80. GUILE_PKG([3.0])
  81. GUILE_PROGS
  82. if test "x$GUILD" = "x"; then
  83. AC_MSG_ERROR(['guild' binary not found; please check your Guile installation.])
  84. fi
  85. dnl Get CFLAGS and LDFLAGS for libguile.
  86. GUILE_FLAGS
  87. dnl Installation directories for .scm and .go files.
  88. guilemoduledir="${datarootdir}/guile/site/$GUILE_EFFECTIVE_VERSION"
  89. guileobjectdir="${libdir}/guile/$GUILE_EFFECTIVE_VERSION/site-ccache"
  90. AC_SUBST([guilemoduledir])
  91. AC_SUBST([guileobjectdir])
  92. dnl The GnuTLS bindings are necessary for substitutes over HTTPS and for 'guix
  93. dnl pull', among other things.
  94. GUILE_MODULE_AVAILABLE([have_gnutls], [(gnutls)])
  95. if test "x$have_gnutls" != "xyes"; then
  96. AC_MSG_ERROR([The Guile bindings of GnuTLS are missing; please install them.])
  97. fi
  98. dnl Check for Guile-Git.
  99. GUILE_MODULE_AVAILABLE([have_guile_git], [(git)])
  100. if test "x$have_guile_git" != "xyes"; then
  101. AC_MSG_ERROR([Guile-Git is missing; please install it.])
  102. fi
  103. dnl Check for Guile-JSON.
  104. GUIX_CHECK_GUILE_JSON
  105. if test "x$guix_cv_have_recent_guile_json" != "xyes"; then
  106. AC_MSG_ERROR([Guile-JSON is missing; please install it.])
  107. fi
  108. dnl Guile-Sqlite3 is used by the (guix store ...) modules.
  109. GUIX_CHECK_GUILE_SQLITE3
  110. if test "x$guix_cv_have_recent_guile_sqlite3" != "xyes"; then
  111. AC_MSG_ERROR([A recent Guile-SQLite3 could not be found; please install it.])
  112. fi
  113. GUIX_CHECK_GUILE_GCRYPT
  114. if test "x$guix_cv_have_recent_guile_gcrypt" != "xyes"; then
  115. AC_MSG_ERROR([A recent Guile-Gcrypt could not be found; please install it.])
  116. fi
  117. GUIX_CHECK_GUILE_GIT
  118. if test "x$guix_cv_have_recent_guile_git" != "xyes"; then
  119. AC_MSG_ERROR([A recent Guile-Git could not be found; please install it.])
  120. fi
  121. dnl Check for the optional Guile-Lib.
  122. GUILE_MODULE_EXPORTS([have_guile_lib], [(htmlprag)], [%strict-tokenizer?])
  123. AM_CONDITIONAL([HAVE_GUILE_LIB], [test "x$have_guile_lib" = "xyes"])
  124. AM_COND_IF(HAVE_GUILE_LIB,,
  125. [AC_MSG_WARN([The Guile-Lib requirement was not satisfied (>= 0.2.7);
  126. Some features such as the Go importer will not be usable.])])
  127. dnl Check for Guile-zlib.
  128. GUIX_CHECK_GUILE_ZLIB
  129. if test "x$guix_cv_have_recent_guile_zlib" != "xyes"; then
  130. AC_MSG_ERROR([A recent Guile-zlib could not be found; please install it.])
  131. fi
  132. dnl Check for Guile-lzlib.
  133. GUILE_MODULE_AVAILABLE([have_guile_lzlib], [(lzlib)])
  134. if test "x$have_guile_lzlib" != "xyes"; then
  135. AC_MSG_ERROR([Guile-lzlib is missing; please install it.])
  136. fi
  137. dnl Check for Guile-Avahi.
  138. GUILE_MODULE_AVAILABLE([have_guile_avahi], [(avahi)])
  139. AM_CONDITIONAL([HAVE_GUILE_AVAHI],
  140. [test "x$have_guile_avahi" = "xyes"])
  141. dnl Guile-newt is used by the graphical installer.
  142. GUILE_MODULE_AVAILABLE([have_guile_newt], [(newt)])
  143. AC_ARG_ENABLE([installer],
  144. AS_HELP_STRING([--enable-installer], [Build the graphical installer sources.]))
  145. AS_IF([test "x$enable_installer" = "xyes"], [
  146. if test "x$have_guile_newt" != "xyes"; then
  147. AC_MSG_ERROR([Guile-newt could not be found; please install it.])
  148. fi
  149. ])
  150. AM_CONDITIONAL([ENABLE_INSTALLER],
  151. [test "x$enable_installer" = "xyes"])
  152. dnl Make sure we have a full-fledged Guile.
  153. GUIX_ASSERT_GUILE_FEATURES([regex posix socket net-db threads])
  154. AC_PROG_SED
  155. dnl Decompressors, for use by the substituter and other modules.
  156. AC_PATH_PROG([GZIP], [gzip])
  157. AC_PATH_PROG([BZIP2], [bzip2])
  158. AC_PATH_PROG([XZ], [xz])
  159. AC_SUBST([GZIP])
  160. AC_SUBST([BZIP2])
  161. AC_SUBST([XZ])
  162. LIBGCRYPT_LIBDIR="no"
  163. LIBGCRYPT_PREFIX="no"
  164. AC_ARG_WITH([libgcrypt-prefix],
  165. [AS_HELP_STRING([--with-libgcrypt-prefix=DIR], [search for GNU libgcrypt in DIR])],
  166. [case "$withval" in
  167. yes|no)
  168. ;;
  169. *)
  170. LIBGCRYPT_PREFIX="$withval"
  171. LIBGCRYPT_LIBDIR="$withval/lib"
  172. ;;
  173. esac])
  174. AC_ARG_WITH([libgcrypt-libdir],
  175. [AS_HELP_STRING([--with-libgcrypt-libdir=DIR],
  176. [search for GNU libgcrypt's shared library in DIR])],
  177. [case "$withval" in
  178. yes|no)
  179. LIBGCRYPT_LIBDIR="no"
  180. ;;
  181. *)
  182. LIBGCRYPT_LIBDIR="$withval"
  183. ;;
  184. esac])
  185. dnl If none of the --with-libgcrypt-* options was used, try to determine the
  186. dnl the library directory.
  187. case "x$LIBGCRYPT_PREFIX$LIBGCRYPT_LIBDIR" in
  188. xnono)
  189. GUIX_LIBGCRYPT_LIBDIR([LIBGCRYPT_LIBDIR])
  190. ;;
  191. esac
  192. AC_SUBST([LIBGCRYPT_PREFIX])
  193. AC_SUBST([LIBGCRYPT_LIBDIR])
  194. dnl Check for Guile-SSH, for the (guix ssh) module.
  195. GUIX_CHECK_GUILE_SSH
  196. AM_CONDITIONAL([HAVE_GUILE_SSH],
  197. [test "x$guix_cv_have_recent_guile_ssh" = "xyes"])
  198. AC_CACHE_SAVE
  199. m4_include([config-daemon.ac])
  200. dnl `dot' (from the Graphviz package) is only needed for maintainers.
  201. dnl See `Building from Git' in the manual for more info.
  202. AM_MISSING_PROG([DOT], [dot])
  203. dnl Manual pages.
  204. AM_MISSING_PROG([HELP2MAN], [help2man])
  205. dnl Documentation translation.
  206. AM_MISSING_PROG([PO4A_TRANSLATE], [po4a-translate])
  207. AM_MISSING_PROG([PO4A_UPDATEPO], [po4a-updatepo])
  208. case "$storedir" in
  209. /gnu/store)
  210. ;;
  211. *)
  212. AC_MSG_WARN([Using a store directory other than '/gnu/store' will prevent you])
  213. AC_MSG_WARN([from downloading substitutes from gnu.org.])
  214. ;;
  215. esac
  216. AC_CONFIG_FILES([Makefile
  217. po/guix/Makefile.in
  218. po/packages/Makefile.in
  219. etc/guix-daemon.cil
  220. guix/config.scm])
  221. AC_CONFIG_FILES([etc/committer.scm], [chmod +x etc/committer.scm])
  222. AC_CONFIG_FILES([test-env:build-aux/test-env.in], [chmod +x test-env])
  223. AC_CONFIG_FILES([pre-inst-env:build-aux/pre-inst-env.in],
  224. [chmod +x pre-inst-env])
  225. AC_OUTPUT