From ef37d8f0e5391a6c955e5c77816b182d5f6ee824 Mon Sep 17 00:00:00 2001 From: Sam Tygier Date: Sat, 24 Dec 2011 20:03:14 +0000 Subject: Use MATECONFTOOL in makefile. Without this install fails if PATH for sudo does not contain install prefixed bin. --- configure.in | 2 ++ src/Makefile.am | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 9ade4bf..aa002bc 100644 --- a/configure.in +++ b/configure.in @@ -64,6 +64,8 @@ fi dnl CXXFLAGS="-fvisibility=hidden -fvisibility-inlines-hidden $CXXFLAGS" dnl CXXFLAGS="-fvisibility-inlines-hidden $CXXFLAGS" +AC_PATH_PROG(MATECONFTOOL, mateconftool-2) + AM_MATECONF_SOURCE_2 diff --git a/src/Makefile.am b/src/Makefile.am index 8794e47..fb22e4b 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -63,7 +63,7 @@ install-data-local: if test -z "$(DESTDIR)"; then \ for p in $(schema_DATA); do \ MATECONF_CONFIG_SOURCE=$(MATECONF_SCHEMA_CONFIG_SOURCE) \ - mateconftool-2 --makefile-install-rule $(top_builddir)/src/$$p; \ + ${MATECONFTOOL} --makefile-install-rule $(top_builddir)/src/$$p; \ done; \ fi else -- cgit v1.2.1