[nautilus-sound-converter] Fix distcheck so it works without root privilege
- From: Brian Pepple <bpepple src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-sound-converter] Fix distcheck so it works without root privilege
- Date: Sat, 9 Oct 2010 20:44:17 +0000 (UTC)
commit 2ac13ad01993ebd0afedf328980026a6d99fb007
Author: Brian Pepple <bpepple fedoraproject org>
Date: Sat Oct 9 16:34:55 2010 -0400
Fix distcheck so it works without root privilege
Makefile.am | 2 ++
configure.ac | 13 +++++++++++--
2 files changed, 13 insertions(+), 2 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 4915eef..45f3587 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,5 +1,7 @@
SUBDIRS = data src po
+DISTCHECK_CONFIGURE_FLAGS = --with-nautilusdir='$${libdir}/nautilus/extensions-2.0-distcheck'
+
ACLOCAL_AMFLAGS = -I m4
EXTRA_DIST = \
diff --git a/configure.ac b/configure.ac
index 9d6f265..fe22084 100644
--- a/configure.ac
+++ b/configure.ac
@@ -54,8 +54,17 @@ AC_SUBST(NSC_LIBS)
dnl -----------------------------------------------------------
dnl Get the correct nautilus extensions directory
dnl -----------------------------------------------------------
-NAUTILUS_EXTENSION_DIR=`$PKG_CONFIG --variable=extensiondir libnautilus-extension`
-AC_SUBST(NAUTILUS_EXTENSION_DIR)
+AC_ARG_WITH(nautilusdir,
+ AS_HELP_STRING([--with-nautilusdir=DIR],[Installation path for Nautilus extension @<:@auto@:>@]),
+ [ac_with_nautilusdir=$withval],
+ [ac_with_nautilusdir=""])
+if test "${ac_with_nautilusdir}" = ""; then
+ ac_with_nautilusdir=`pkg-config --variable=extensiondir libnautilus-extension`
+fi
+
+AC_MSG_NOTICE([installing nautilus plugin in ${ac_with_nautilusdir}])
+AC_SUBST([NAUTILUS_EXTENSION_DIR],[${ac_with_nautilusdir}])
+
dnl -----------------------------------------------------------
dnl Find the GStreamer elements we use, and warn if they are
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]