Index: configure.in
===================================================================
--- configure.in.orig
+++ configure.in
@@ -106,6 +106,7 @@ PKG_CHECK_MODULES(GNOME,libglade-2.0 lib
 if test "x$HAVE_GNOME" = "xtrue"; then
 	AC_SUBST(GNOME_CFLAGS)
 	AC_SUBST(GNOME_LIBS)
+    AC_SUBST(GNOME_PREFIX)
 	OPTDIRS="$OPTDIRS gmdb2"
 fi
 
Index: src/gmdb2/Makefile.am
===================================================================
--- src/gmdb2/Makefile.am.orig
+++ src/gmdb2/Makefile.am
@@ -1,3 +1,4 @@
+prefix = @GNOME_PREFIX@
 SUBDIRS = help gladefiles pixmaps
 bin_PROGRAMS	= gmdb2 
 include_HEADERS = gmdb.h
Index: src/gmdb2/gladefiles/Makefile.am
===================================================================
--- src/gmdb2/gladefiles/Makefile.am.orig
+++ src/gmdb2/gladefiles/Makefile.am
@@ -1,3 +1,4 @@
+prefix = @GNOME_PREFIX@
 gladedir = $(datadir)/gmdb/glade/
 
 glade_DATA =			\
Index: src/gmdb2/help/C/Makefile.am
===================================================================
--- src/gmdb2/help/C/Makefile.am.orig
+++ src/gmdb2/help/C/Makefile.am
@@ -1,3 +1,4 @@
+prefix = @GNOME_PREFIX@
 figs = \
 	figures/gmdb2_window.png \
 	figures/gmdb2_sql_window.png
Index: src/gmdb2/pixmaps/Makefile.am
===================================================================
--- src/gmdb2/pixmaps/Makefile.am.orig
+++ src/gmdb2/pixmaps/Makefile.am
@@ -1,3 +1,4 @@
+prefix = @GNOME_PREFIX@
 
 appicondir = $(datadir)/gmdb/glade
 
