mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-26 07:46:21 +02:00
Expand configure variables before writing config.status
This way, we can use config.status for generating scripts/* (without ending up with lines like "#! /usr/bin/perl -I${libexecdir}/...").
This commit is contained in:
parent
7ce0e05ad8
commit
8f08046606
2 changed files with 10 additions and 3 deletions
11
configure.ac
11
configure.ac
|
@ -180,7 +180,7 @@ AC_MSG_RESULT(yes)
|
||||||
AC_MSG_CHECKING([for the Perl installation prefix])
|
AC_MSG_CHECKING([for the Perl installation prefix])
|
||||||
perlversion=$($perl -e 'use Config; print $Config{version};')
|
perlversion=$($perl -e 'use Config; print $Config{version};')
|
||||||
perlarchname=$($perl -e 'use Config; print $Config{archname};')
|
perlarchname=$($perl -e 'use Config; print $Config{archname};')
|
||||||
AC_SUBST(perllibdir, [$\(libdir\)/perl5/site_perl/$perlversion/$perlarchname])
|
AC_SUBST(perllibdir, [${libdir}/perl5/site_perl/$perlversion/$perlarchname])
|
||||||
AC_MSG_RESULT($perllibdir)
|
AC_MSG_RESULT($perllibdir)
|
||||||
|
|
||||||
|
|
||||||
|
@ -331,6 +331,15 @@ fi
|
||||||
AC_SUBST(tarFlags)
|
AC_SUBST(tarFlags)
|
||||||
|
|
||||||
|
|
||||||
|
# Expand all variables in config.status.
|
||||||
|
test "$prefix" = NONE && prefix=$ac_default_prefix
|
||||||
|
test "$exec_prefix" = NONE && exec_prefix='${prefix}'
|
||||||
|
for name in $ac_subst_vars; do
|
||||||
|
declare $name="$(eval echo "${!name}")"
|
||||||
|
declare $name="$(eval echo "${!name}")"
|
||||||
|
declare $name="$(eval echo "${!name}")"
|
||||||
|
done
|
||||||
|
|
||||||
AC_CONFIG_HEADER([config.h])
|
AC_CONFIG_HEADER([config.h])
|
||||||
AC_CONFIG_FILES([])
|
AC_CONFIG_FILES([])
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
|
|
@ -51,5 +51,3 @@ define install-symlink =
|
||||||
$(QUIET) ln -sfn $(1) $(2)
|
$(QUIET) ln -sfn $(1) $(2)
|
||||||
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue