aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2017-02-07 14:53:24 +0100
committerLudovic Courtès <ludo@gnu.org>2017-02-07 14:53:24 +0100
commitd480ed7edb7ad787829fd8220c86220ca34ce8ac (patch)
tree337de03963937bab33d75176a622cb7b21c1a57d
parent328f7cbe435d79d61f57129d9e3ee90404d6bfda (diff)
downloadpatches-d480ed7edb7ad787829fd8220c86220ca34ce8ac.tar
patches-d480ed7edb7ad787829fd8220c86220ca34ce8ac.tar.gz
build: Warn about lack of substitutes for non-standard stores.
* configure.ac: Emit a warning when $storedir is not "/gnu/store".
-rw-r--r--configure.ac9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 9079a142dc..06b0618b43 100644
--- a/configure.ac
+++ b/configure.ac
@@ -236,6 +236,15 @@ dnl Emacs (optional), for 'etc/indent-package.el'.
AC_PATH_PROG([EMACS], [emacs], [/usr/bin/emacs])
AC_SUBST([EMACS])
+case "$storedir" in
+ /gnu/store)
+ ;;
+ *)
+ AC_MSG_WARN([Using a store directory other than '/gnu/store' will prevent you])
+ AC_MSG_WARN([from downloading substitutes from gnu.org.])
+ ;;
+esac
+
AC_CONFIG_FILES([Makefile
po/guix/Makefile.in
po/packages/Makefile.in