summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2020-12-11 16:24:53 +0100
committerLudovic Courtès <ludo@gnu.org>2020-12-11 19:06:53 +0100
commitdbdae9f96f11a006993b659e0e7fd5cbf467f844 (patch)
treec8614477a6d6d41c4e7dba4f521ef454da27c7a2
parentedc2acb7796a9f1c6d3a6caea54bad3a17cd988b (diff)
maint: Avoid macros obsolete in Autoconf 2.70.
* configure.ac: Require Autoconf 2.69. Use 'AS_HELP_STRING' instead of 'AC_HELP_STRING'. * m4/guix.m4: Likewise. * config-daemon.ac: Use 'AC_CONFIG_HEADERS' instead of the singular variant.
-rw-r--r--config-daemon.ac2
-rw-r--r--configure.ac12
-rw-r--r--m4/guix.m44
3 files changed, 9 insertions, 9 deletions
diff --git a/config-daemon.ac b/config-daemon.ac
index 50ead355a81..19958d331b7 100644
--- a/config-daemon.ac
+++ b/config-daemon.ac
@@ -13,7 +13,7 @@ if test "x$guix_build_daemon" = "xyes"; then
13 GUIX_ASSERT_CXX11 13 GUIX_ASSERT_CXX11
14 14
15 AC_PROG_RANLIB 15 AC_PROG_RANLIB
16 AC_CONFIG_HEADER([nix/config.h]) 16 AC_CONFIG_HEADERS([nix/config.h])
17 17
18 dnl Use 64-bit file system calls so that we can support files > 2 GiB. 18 dnl Use 64-bit file system calls so that we can support files > 2 GiB.
19 AC_SYS_LARGEFILE 19 AC_SYS_LARGEFILE
diff --git a/configure.ac b/configure.ac
index 942e84164a3..a5bdf24e939 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,7 +1,7 @@
1# -*- Autoconf -*- 1# -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script. 2# Process this file with autoconf to produce a configure script.
3 3
4AC_PREREQ(2.68) 4AC_PREREQ([2.69])
5AC_INIT([GNU Guix], 5AC_INIT([GNU Guix],
6 [m4_esyscmd([build-aux/git-version-gen .tarball-version])], 6 [m4_esyscmd([build-aux/git-version-gen .tarball-version])],
7 [bug-guix@gnu.org], [guix], 7 [bug-guix@gnu.org], [guix],
@@ -29,35 +29,35 @@ GUIX_ASSERT_SUPPORTED_SYSTEM
29AM_CONDITIONAL([CROSS_COMPILING], [test "x$cross_compiling" = "xyes"]) 29AM_CONDITIONAL([CROSS_COMPILING], [test "x$cross_compiling" = "xyes"])
30 30
31AC_ARG_WITH(store-dir, 31AC_ARG_WITH(store-dir,
32 AC_HELP_STRING([--with-store-dir=PATH], 32 AS_HELP_STRING([--with-store-dir=PATH],
33 [file name of the store (defaults to /gnu/store)]), 33 [file name of the store (defaults to /gnu/store)]),
34 [storedir="$withval"], 34 [storedir="$withval"],
35 [storedir="/gnu/store"]) 35 [storedir="/gnu/store"])
36AC_SUBST(storedir) 36AC_SUBST(storedir)
37 37
38AC_ARG_WITH([bash-completion-dir], 38AC_ARG_WITH([bash-completion-dir],
39 AC_HELP_STRING([--with-bash-completion-dir=DIR], 39 AS_HELP_STRING([--with-bash-completion-dir=DIR],
40 [name of the Bash completion directory]), 40 [name of the Bash completion directory]),
41 [bashcompletiondir="$withval"], 41 [bashcompletiondir="$withval"],
42 [bashcompletiondir='${sysconfdir}/bash_completion.d']) 42 [bashcompletiondir='${sysconfdir}/bash_completion.d'])
43AC_SUBST([bashcompletiondir]) 43AC_SUBST([bashcompletiondir])
44 44
45AC_ARG_WITH([zsh-completion-dir], 45AC_ARG_WITH([zsh-completion-dir],
46 AC_HELP_STRING([--with-zsh-completion-dir=DIR], 46 AS_HELP_STRING([--with-zsh-completion-dir=DIR],
47 [name of the Zsh completion directory]), 47 [name of the Zsh completion directory]),
48 [zshcompletiondir="$withval"], 48 [zshcompletiondir="$withval"],
49 [zshcompletiondir='${datadir}/zsh/site-functions']) 49 [zshcompletiondir='${datadir}/zsh/site-functions'])
50AC_SUBST([zshcompletiondir]) 50AC_SUBST([zshcompletiondir])
51 51
52AC_ARG_WITH([fish-completion-dir], 52AC_ARG_WITH([fish-completion-dir],
53 AC_HELP_STRING([--with-fish-completion-dir=DIR], 53 AS_HELP_STRING([--with-fish-completion-dir=DIR],
54 [name of the Fish completion directory]), 54 [name of the Fish completion directory]),
55 [fishcompletiondir="$withval"], 55 [fishcompletiondir="$withval"],
56 [fishcompletiondir='${datadir}/fish/vendor_completions.d']) 56 [fishcompletiondir='${datadir}/fish/vendor_completions.d'])
57AC_SUBST([fishcompletiondir]) 57AC_SUBST([fishcompletiondir])
58 58
59AC_ARG_WITH([selinux-policy-dir], 59AC_ARG_WITH([selinux-policy-dir],
60 AC_HELP_STRING([--with-selinux-policy-dir=DIR], 60 AS_HELP_STRING([--with-selinux-policy-dir=DIR],
61 [name of the SELinux policy directory]), 61 [name of the SELinux policy directory]),
62 [selinux_policydir="$withval"], 62 [selinux_policydir="$withval"],
63 [selinux_policydir='${datadir}/selinux/']) 63 [selinux_policydir='${datadir}/selinux/'])
diff --git a/m4/guix.m4 b/m4/guix.m4
index 4fa7cdf7374..f8eb5aaf517 100644
--- a/m4/guix.m4
+++ b/m4/guix.m4
@@ -26,7 +26,7 @@ AC_DEFUN([GUIX_SYSTEM_TYPE], [
26 AC_REQUIRE([AC_CANONICAL_HOST]) 26 AC_REQUIRE([AC_CANONICAL_HOST])
27 AC_PATH_PROG([SED], [sed]) 27 AC_PATH_PROG([SED], [sed])
28 28
29 AC_ARG_WITH(system, AC_HELP_STRING([--with-system=SYSTEM], 29 AC_ARG_WITH(system, AS_HELP_STRING([--with-system=SYSTEM],
30 [Platform identifier (e.g., `i686-linux').]), 30 [Platform identifier (e.g., `i686-linux').]),
31 [guix_system="$withval"], 31 [guix_system="$withval"],
32 [case "$host_cpu" in 32 [case "$host_cpu" in
@@ -78,7 +78,7 @@ dnl Assert that this is a system to which the distro is ported.
78AC_DEFUN([GUIX_ASSERT_SUPPORTED_SYSTEM], [ 78AC_DEFUN([GUIX_ASSERT_SUPPORTED_SYSTEM], [
79 AC_REQUIRE([GUIX_SYSTEM_TYPE]) 79 AC_REQUIRE([GUIX_SYSTEM_TYPE])
80 80
81 AC_ARG_WITH([courage], [AC_HELP_STRING([--with-courage], 81 AC_ARG_WITH([courage], [AS_HELP_STRING([--with-courage],
82 [Assert that even if this platform is unsupported, you will be 82 [Assert that even if this platform is unsupported, you will be
83courageous and port the GNU System distribution to it (see 83courageous and port the GNU System distribution to it (see
84"GNU Distribution" in the manual.)])], 84"GNU Distribution" in the manual.)])],