From: Ted Gould Date: Thu, 31 Dec 2009 06:07:45 +0000 (-0600) Subject: Setting up a flag for local install for distcheck X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=690616c90626ab0142761a448f6d8c6718c7d32b;p=inkscape.git Setting up a flag for local install for distcheck --- diff --git a/Makefile.am b/Makefile.am index f07cf6979..fa9640a1d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -16,6 +16,7 @@ Graphics_DATA = $(Graphics_in_files:.desktop.in=.desktop) ## cp $(srcdir)/AUTHORS $(distdir) ## cp $(srcdir)/NEWS $(distdir) +DISTCHECK_CONFIGURE_FLAGS = --enable-localinstall man_MANS = inkscape.1 \ inkview.1 diff --git a/configure.ac b/configure.ac index 4db84a1d3..6d673ca0d 100644 --- a/configure.ac +++ b/configure.ac @@ -619,6 +619,14 @@ AM_CONDITIONAL(WITH_LIBWPG, test "x$with_libwpg" = "xyes") AC_SUBST(LIBWPG_LIBS) AC_SUBST(LIBWPG_CFLAGS) +dnl ****************************** +dnl Support doing a local install +dnl (mostly for distcheck) +dnl ****************************** + +with_localinstall="no" +AC_ARG_ENABLE(localinstall, AS_HELP_STRING([--enable-localinstall], [install system files in the local path (for distcheck)]), with_localinstall=$enableval, with_localinstall=no) + dnl ****************************** dnl Check for dbus functionality dnl ****************************** @@ -626,6 +634,12 @@ dnl ****************************** PKG_CHECK_MODULES(DBUS, dbus-glib-1, with_dbus=yes, with_dbus=no) if test "x$with_dbus" = "xyes"; then AC_DEFINE(WITH_DBUS,1,[Build in dbus]) + if test "x$with_localinstall" = "xyes"; then + DBUSSERVICEDIR="${datadir}/dbus-1/services/" + else + DBUSSERVICEDIR=`$PKG_CONFIG --variable=session_bus_services_dir dbus-1` + fi + AC_SUBST(DBUSSERVICEDIR) fi AM_CONDITIONAL(WITH_DBUS, test "x$with_dbus" = "xyes") @@ -1035,4 +1049,5 @@ Configuration: Enable Poppler-Cairo: ${enable_poppler_cairo} ImageMagick Magick++: ${magick_ok} Libwpg: ${with_libwpg} + Doing Local Install: ${with_localinstall} "