From fa3cd8b9a5638e2f7980ffcf34e08840224f71f0 Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Thu, 9 Aug 2018 08:58:20 +0200 Subject: [PATCH] build: configure: Oops, substitute @prefix@. * build-aux/pre-inst-env.in (MES_PREFIX): Respect pre-set value. * configure (main): Oops, substitute @prefix@. * configure.sh (subst): Likewise. --- build-aux/pre-inst-env.in | 2 +- configure | 1 + configure.sh | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/build-aux/pre-inst-env.in b/build-aux/pre-inst-env.in index 529d00d9..ed41822d 100644 --- a/build-aux/pre-inst-env.in +++ b/build-aux/pre-inst-env.in @@ -23,7 +23,7 @@ abs_top_srcdir="@abs_top_srcdir@" abs_top_builddir="@abs_top_builddir@" prefix=${prefix-@prefix@} -MES_PREFIX=${srcdest}mes +MES_PREFIX=${MES_PREFIX-${srcdest}mes} export MES_PREFIX GUILE_LOAD_COMPILED_PATH="$abs_top_builddir/module${GUILE_LOAD_COMPILED_PATH:+:}$GUILE_LOAD_COMPILED_PATH" diff --git a/configure b/configure index 408e99a4..2e9ba9e5 100755 --- a/configure +++ b/configure @@ -471,6 +471,7 @@ Some influential environment variables: ("@BASH@" . ,(file-name "bash" deps)) ("@GUILE@" . ,(file-name "guile" deps)) ("@MES@" . ,(file-name "guile" deps)) + ("@prefix@" . ,prefix) ("@guile_site_dir@" . ,guile-site-dir) ("@guile_site_ccache_dir@" . ,guile-site-ccache-dir) ("@VERSION@" . ,VERSION) diff --git a/configure.sh b/configure.sh index a6d4e874..76d44cdc 100755 --- a/configure.sh +++ b/configure.sh @@ -69,6 +69,7 @@ subst () { -e s,"@top_builddir@,$top_builddir,"\ -e s,"@BASH@,$BASH,"\ -e s,"@GUILE@,$GUILE,"\ + -e s,"@prefix@,$prefix,"\ -e s,"@guile_site_dir@,$guile_site_dir,"\ -e s,"@guile_site_ccache_dir@,$guile_site_ccache_dir,"\ -e s,"@VERSION@,$VERSION,"\