From 864ba10163084f4c98b5e3ea7faa7511f4b9c274 Mon Sep 17 00:00:00 2001
From: simonb <simonb>
Date: Mon, 3 Jul 2006 08:37:16 +0000
Subject: make sure that PREFIX is expanded in the correct place (make stage,
 rather than configure stage). Affects menu, init, keys, locale and style
 files

---
 ChangeLog    |  6 ++++++
 configure.in | 10 +++++-----
 2 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 03c7df2..6ddfd30 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,10 @@
  (Format: Year/Month/Day)
+Changes for 1.0rc3:
+*06/07/03:
+   * make our default locale, init, menu, and style paths properly
+     expand PREFIX in the make install stage, so that make prefix=elsewhere
+     works properly (Simon)
+     configure.in
 Changes for 1.0rc2:
 *06/07/03:
    * call waitpid() on SIGCHLD until no more children (thanks Devin/dlab)
diff --git a/configure.in b/configure.in
index 49563b5..f86455e 100644
--- a/configure.in
+++ b/configure.in
@@ -555,7 +555,7 @@ AC_ARG_WITH(
   menu,
   [  --with-menu=path        location menu file (PREFIX/share/fluxbox/menu)],
   DEFAULT_MENU=$with_menu,
-  DEFAULT_MENU=$prefix/share/fluxbox/menu
+  DEFAULT_MENU=\$\(prefix\)/share/fluxbox/menu
 )
 AC_SUBST(DEFAULT_MENU)
 
@@ -563,7 +563,7 @@ AC_ARG_WITH(
   style,
   [  --with-style=path       style by default   (PREFIX/share/fluxbox/styles/Meta)],
   DEFAULT_STYLE=$with_style,
-  DEFAULT_STYLE=$prefix/share/fluxbox/styles/Meta
+  DEFAULT_STYLE=\$\(prefix\)/share/fluxbox/styles/Meta
 )
 AC_SUBST(DEFAULT_STYLE)
 
@@ -571,7 +571,7 @@ AC_ARG_WITH(
   keys,
   [  --with-keys=path        location keys file (PREFIX/share/fluxbox/keys)],
   DEFAULT_KEYS=$with_keys,
-  DEFAULT_KEYS=$prefix/share/fluxbox/keys
+  DEFAULT_KEYS=\$\(prefix\)/share/fluxbox/keys
 )
 AC_SUBST(DEFAULT_KEYS)
 
@@ -579,7 +579,7 @@ AC_ARG_WITH(
   init,
   [  --with-init=path        location init file (PREFIX/share/fluxbox/init)],
   DEFAULT_INIT=$with_init,
-  DEFAULT_INIT=$prefix/share/fluxbox/init
+  DEFAULT_INIT=\$\(prefix\)/share/fluxbox/init
 )
 AC_SUBST(DEFAULT_INIT)
 
@@ -587,7 +587,7 @@ AC_ARG_WITH(
   locale,
   [  --with-locale=path      location for nls files (PREFIX/share/fluxbox/nls)],
   LOCALE_PATH=$with_locale_path,
-  LOCALE_PATH=$prefix/share/fluxbox/nls
+  LOCALE_PATH=\$\(prefix\)/share/fluxbox/nls
 )
 AC_DEFINE_UNQUOTED(LOCALEPATH, "$LOCALE_PATH", "location for nls files")
 AC_SUBST(LOCALE_PATH)
-- 
cgit v0.11.2