Fix a misunderstanding on Autotools variables evaluation order.
authorJean-Claude Beaudoin <jean.claude.beaudoin@gmail.com>
Sat, 5 Jan 2013 21:26:31 +0000 (16:26 -0500)
committerJean-Claude Beaudoin <jean.claude.beaudoin@gmail.com>
Sat, 5 Jan 2013 21:26:31 +0000 (16:26 -0500)
src/configure
src/configure.in
src/mkcl/config.h.in

index 6fa2d1b..2e84b14 100755 (executable)
@@ -2397,7 +2397,7 @@ enable_smallcons=no
 
 enable_gengc=no
 
-mkcldir="${prefix}/lib/mkcl-${PACKAGE_VERSION}"
+mkcldir="\${libdir}/mkcl-${PACKAGE_VERSION}"
 
 test -z "${docdir}" && docdir="${datadir}/doc/mkcl-${PACKAGE_VERSION}"
 
index f3dee3f..548bd5f 100644 (file)
@@ -265,8 +265,8 @@ enable_gengc=no
 
 dnl -----------------------------------------------------------------------
 dnl Installation directories
-dnl mkcldir="${libdir}/mkcl-${PACKAGE_VERSION}"
-mkcldir="${prefix}/lib/mkcl-${PACKAGE_VERSION}"
+mkcldir="\${libdir}/mkcl-${PACKAGE_VERSION}"
+dnl mkcldir='${prefix}/lib/mkcl-${PACKAGE_VERSION}'
 AC_SUBST([mkcldir])
 test -z "${docdir}" && docdir="${datadir}/doc/mkcl-${PACKAGE_VERSION}"
 AC_SUBST([docdir])
index e7332ea..a4dbf4d 100644 (file)
@@ -57,7 +57,7 @@
 #define MKCL_MINOR_VERSION_STRING "@MKCL_MINOR_VERSION@"
 #define MKCL_PATCH_LEVEL_STRING "@MKCL_PATCH_LEVEL@"
 
-#define MKCL_SYS_LIBDIR_DEFAULT "@mkcldir@"
+#define MKCL_SYS_LIBDIR_DEFAULT "@prefix@/lib/mkcl-@PACKAGE_VERSION@"
 
 /*
  * FEATURES LINKED IN