build: Expand ‘scripts/guix’ at Make time.
authorMathieu Lirzin <mthl@gnu.org>
Wed, 17 Jan 2018 16:14:24 +0000 (17:14 +0100)
committerLudovic Courtès <ludo@gnu.org>
Tue, 23 Jan 2018 09:13:16 +0000 (10:13 +0100)
commitcba386c1295b7054df22dfb4662b1b92f668e2c0
tree76078a073f62240b582c39cc20f8c9625edb6380
parent341afe2a36125b11c1bc08bdc8f63421edaba008
build: Expand ‘scripts/guix’ at Make time.

This moves the complexity of Autotools variable expansion outside of the
application code.

* scripts/guix.in (config-lookup): Delete.
(maybe-augment-load-paths!, run-guix-main): Use fully expanded variables
instead of calling ‘config-lookup’.
* configure.ac: Don't use AC_CONFIG_FILES for ‘scripts/guix’.
Use AC_PROG_SED.
* Makefile.am (scripts/guix): New rule.
(do_subst): New variable.
(CLEANFILES, EXTRA_DIST): Adapt.

Co-authored-by: Ludovic Courtès <ludo@gnu.org>
Makefile.am
configure.ac
scripts/guix.in