[Pkg-privacy-commits] [irssi-plugin-otr] 01/13: Make irssi module directory configurable
Antoine Beaupré
anarcat at moszumanska.debian.org
Wed Mar 23 17:35:21 UTC 2016
This is an automated email from the git hooks/post-receive script.
anarcat pushed a commit to branch debian
in repository irssi-plugin-otr.
commit 13ae352b0fe854f8dff17d45440594f501533b83
Author: Martin Milata <mmilata at srck.net>
Date: Sun Mar 9 14:21:13 2014 +0100
Make irssi module directory configurable
The hardcoded path does not work on all distributions and I can't think
of a reliable way to autodetect it.
Signed-off-by: Martin Milata <mmilata at srck.net>
Signed-off-by: David Goulet <dgoulet at ev0ke.net>
---
configure.ac | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/configure.ac b/configure.ac
index 34fc64c..160130b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -69,9 +69,16 @@ CFLAGS="-Wall $CFLAGS -g -fno-strict-aliasing -fstack-protector-all -D_FORTIFY_S
DEFAULT_INCLUDES="-I\$(top_srcdir) -I\$(top_builddir) -I\$(top_builddir)/src -I\$(top_builddir)/include"
AC_SUBST(DEFAULT_INCLUDES)
-# Hardcoded here since irssi only searches in $HOME/.irssi/modules or this path
-# which is unfortunate...
-IRSSI_MODULE_DIR="/usr/lib/irssi/modules"
+# Irssi searches for modules in $HOME/.irssi/modules and $(libdir)/irssi/modules
+# where the value of $(libdir) may depend on your distribution, architecture,
+# and whether irssi was installed from package or from source.
+# The hardcoded value should work for most systems but you need to override it for
+# e.g. x86_64 Fedora.
+AC_ARG_WITH([irssi-module-dir],
+ AS_HELP_STRING([--with-irssi-module-dir=DIR], [Irssi module directory]),
+ [IRSSI_MODULE_DIR="$withval"],
+ [IRSSI_MODULE_DIR="/usr/lib/irssi/modules"])
+
AC_SUBST(IRSSI_MODULE_DIR)
AC_CONFIG_FILES([
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/irssi-plugin-otr.git
More information about the Pkg-privacy-commits
mailing list