Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2004:
[Freeciv-Dev] (PR#10421) LOCALEDIR doesn't use correct datadir
Home

[Freeciv-Dev] (PR#10421) LOCALEDIR doesn't use correct datadir

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#10421) LOCALEDIR doesn't use correct datadir
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 3 Oct 2004 22:38:48 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=10421 >

You can set the datadir via --datadir=${datadir}.  This is respected by 
po/Makefile.in.in which uses $datadir/locale as the LOCALEDIR.  However 
configure.ac uses ${prefix}/share/locale as the LOCALEDIR.  Of course 
the default datadir is ${prefix}/share so this doesn't normally cause 
problems.  But if you set the datadir at configure-time to be different 
it won't work.  This was noticed by James when working on win32 (which 
has a different filesystem structure and a different datadir).

The attached patch should fix it.

jason

Index: configure.ac
===================================================================
RCS file: /home/freeciv/CVS/freeciv/configure.ac,v
retrieving revision 1.79
diff -u -r1.79 configure.ac
--- configure.ac        1 Oct 2004 08:07:25 -0000       1.79
+++ configure.ac        4 Oct 2004 05:21:40 -0000
@@ -257,7 +257,7 @@
 
 
 dnl note this has to match the path installed by po/Makefile
-FC_EXPAND_DIR(LOCALEDIR, '${prefix}/share/locale')
+FC_EXPAND_DIR(LOCALEDIR, '$datadir/locale')
 AC_DEFINE_UNQUOTED(LOCALEDIR, "$LOCALEDIR", [Locale directory])
 
 EXTRA_GCC_DEBUG_CFLAGS=""
Index: configure.in
===================================================================
RCS file: /home/freeciv/CVS/freeciv/configure.in,v
retrieving revision 1.255
diff -u -r1.255 configure.in
--- configure.in        1 Oct 2004 08:07:26 -0000       1.255
+++ configure.in        4 Oct 2004 05:21:40 -0000
@@ -256,7 +256,7 @@
 
 
 dnl note this has to match the path installed by po/Makefile
-FC_EXPAND_DIR(LOCALEDIR, '${prefix}/share/locale')
+FC_EXPAND_DIR(LOCALEDIR, '$datadir/locale')
 AC_DEFINE_UNQUOTED(LOCALEDIR, "$LOCALEDIR")
 
 EXTRA_GCC_DEBUG_CFLAGS=""

[Prev in Thread] Current Thread [Next in Thread]