From 29c85286eabb7ee64c3100a57ba2c077311a72b9 Mon Sep 17 00:00:00 2001 From: Dariqq Date: Mon, 21 Jul 2025 17:28:02 +0000 Subject: [PATCH] maint: Actually set the default prefix. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Followup to 77771036f0970083c146b709d792d128f4235125. * configure.ac: Use AC_DEFAULT_PREFIX to set default prefix. Change-Id: I213347a3976fa5cd305a5d26110b7aac24b9dbe1 Signed-off-by: Ludovic Courtès Fixes: guix/guix#1451 --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 0b0e7876fc1..7f11eead027 100644 --- a/configure.ac +++ b/configure.ac @@ -94,7 +94,8 @@ dnl Prepare a version of $localstatedir & co. that does not contain references dnl to shell variables. Also set some sane default directory variables for dnl use with the Guix. This also causes localstatedir to be /var and dnl sysconfdir to be /etc. -test "$prefix" = NONE && prefix= +AC_PREFIX_DEFAULT() +guix_prefix="`eval echo $prefix | sed -e"s|NONE|$ac_default_prefix|g"`" guix_localstatedir="`eval echo $localstatedir | sed -e "s|NONE|$guix_prefix|g"`" guix_sysconfdir="`eval echo $sysconfdir | sed -e "s|NONE|$guix_prefix|g"`" guix_sbindir="`eval echo $sbindir | sed -e "s|NONE|$guix_prefix|g"`"