summaryrefslogtreecommitdiff
blob: 92db743a8df595232cb3a5261363d5342b516403 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
http://bugs.gentoo.org/292856

--- a/config/Makefile.am
+++ b/config/Makefile.am
@@ -1,6 +1,6 @@
 # $Id$
 
-myrcdir = @PACKAGE_DATA_DIR@
+myrcdir = $(sysconfdir)
 myrc_DATA = gmrunrc
 
 EXTRA_DIST = gmrunrc
--- a/config.h.in
+++ b/config.h.in
@@ -10,7 +10,6 @@
 #undef HAVE_STPCPY
 #undef HAVE_LIBSM
 #undef PACKAGE_LOCALE_DIR
-#undef PACKAGE_DATA_DIR
 #undef PACKAGE_SOURCE_DIR
 
 /* Define if you have the <dirent.h> header file.  */
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -15,3 +15,5 @@
 
 gmrun_LDADD = @GTK_LIBS@ @STLPORT_LDFLAGS@
 
+AM_CPPFLAGS = \
+	-DPACKAGE_DATA_DIR='"$(datadir)/$(PACKAGE)"' -DPACKAGE_SYSCONF_DIR='"$(sysconfdir)"'
--- a/src/prefs.cc
+++ b/src/prefs.cc
@@ -30,7 +30,7 @@
 
 Prefs::Prefs()
 {
-  string file_name = PACKAGE_DATA_DIR"/";
+  string file_name = PACKAGE_SYSCONF_DIR"/";
   file_name += GMRUNRC;
   init(file_name);