1 diff -Naurp mb-desktop-image-browser-0.2.orig/configure.ac mb-desktop-image-browser-0.2/configure.ac
2 --- mb-desktop-image-browser-0.2.orig/configure.ac 2010-01-06 01:05:40.000000000 +0000
3 +++ mb-desktop-image-browser-0.2/configure.ac 2010-01-06 01:07:24.000000000 +0000
4 @@ -34,6 +34,20 @@ AC_ARG_ENABLE(debug,
5 MB_CFLAGS="$MB_CFLAGS -DDEBUG"
9 +dnl ------ Substitute in found libs, clags to Makefiles etc -----------------
11 +if test "x$prefix" = xNONE; then
12 + prefix="${ac_default_prefix}"
14 +if test "x$exec_prefix" = xNONE; then
15 + exec_prefix='${prefix}'
18 +MBDESKTOP_PLUGIN_DIR=$libdir/matchbox/desktop
19 +eval MBDESKTOP_PLUGIN_DIR=`eval echo "$MBDESKTOP_PLUGIN_DIR"`
21 +AC_SUBST(MBDESKTOP_PLUGIN_DIR)
25 diff -Naurp mb-desktop-image-browser-0.2.orig/Makefile.am mb-desktop-image-browser-0.2/Makefile.am
26 --- mb-desktop-image-browser-0.2.orig/Makefile.am 2010-01-06 01:05:40.000000000 +0000
27 +++ mb-desktop-image-browser-0.2/Makefile.am 2010-01-06 01:07:01.000000000 +0000
28 @@ -4,7 +4,7 @@ LDADD = $(MB_LIBS)
29 AM_CFLAGS = $(MB_CFLAGS) -g -DDATADIR=\"$(datadir)\"
31 lib_LTLIBRARIES = imgbrowser.la
32 -libdir = $(datadir)/matchbox/desktop/modules
33 +libdir = $(MBDESKTOP_PLUGIN_DIR)
35 imgbrowser_la_SOURCES = imgbrowser.c
36 imgbrowser_la_LIBADD = $(LDADD)