From 61494e43ae5a9b505b7e9e2b62f30e6462e450e8 Mon Sep 17 00:00:00 2001 From: Martin Ebourne Date: Sat, 11 Feb 2006 02:28:52 +0000 Subject: Workaround for autoconf's unexpanded directory substitutions vs. the current Makefile not being able to expand them itself. --- configure.ac | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 4f2c7ea5..4239b821 100644 --- a/configure.ac +++ b/configure.ac @@ -175,6 +175,18 @@ if test "x$enable_static_bin" = "xyes"; then LIBS="-Wl,-Bstatic $LIBS -Wl,-Bdynamic" fi +## Kludge to allow makeparcels.pl to use bindir. This is not a good long term +## solution because it prevents use of "make exec_prefix=/some/dir" +saved_prefix=$prefix +saved_exec_prefix=$exec_prefix +test "x$prefix" = xNONE && prefix=$ac_default_prefix +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' +bindir_expanded=`eval "echo $bindir"` +bindir_expanded=`eval "echo $bindir_expanded"` +prefix=$saved_prefix +exec_prefix=$saved_exec_prefix +AC_SUBST([bindir_expanded]) + ### Output files AC_CONFIG_FILES([infrastructure/BoxPlatform.pm]) -- cgit v1.2.3