commit e4252cb77740cade954837888bb4516f3ae0256d Author: Richard Hughes Date: Mon Feb 2 11:52:21 2009 +0000 bugfix: add an option to configure so we can specify a different browser plugin directory. Fixes fd#19884 diff --git a/configure.ac b/configure.ac index 52077aa..fc45a9a 100644 --- a/configure.ac +++ b/configure.ac @@ -354,6 +354,15 @@ if test x$enable_browser_plugin = xyes; then CPPFLAGS="$packagekit_save_CPPFLAGS" LDFLAGS="$packagekit_save_LDFLAGS" + + # Are we specifying a different mozilla plugin directory? + AC_ARG_WITH(mozilla-plugin-dir, [AC_HELP_STRING([--with-mozilla-plugin-dir=], [where to put the mozilla plugin])]) + if ! test -z "$with_mozilla_plugin_dir" ; then + MOZILLA_PLUGIN_DIR="$with_mozilla_plugin_dir" + else + MOZILLA_PLUGIN_DIR="$LIBDIR/mozilla/plugins" + fi + AC_SUBST(MOZILLA_PLUGIN_DIR) fi else build_browser_plugin=no diff --git a/contrib/browser-plugin/Makefile.am b/contrib/browser-plugin/Makefile.am index 9f3b570..1f563d8 100644 --- a/contrib/browser-plugin/Makefile.am +++ b/contrib/browser-plugin/Makefile.am @@ -1,4 +1,4 @@ -plugindir=$(libdir)/mozilla/plugins +plugindir=$(MOZILLA_PLUGIN_DIR) plugin_LTLIBRARIES = packagekit-plugin.la packagekit_plugin_la_LDFLAGS = -rpath $(plugindir) -module -avoid-version -no-undefined