summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-07-09 12:33:33 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-07-09 12:33:33 +0000
commita055127cf13f2fee8e408e7fa7df7fb67f11be9d (patch)
treeba73926652befaf4d5988e5b2f1379f176361c8f
parent0fcb26a9553c70d48b7d469cb616da034acafde6 (diff)
downloadirssi-a055127cf13f2fee8e408e7fa7df7fb67f11be9d.zip
--enable-perl[=libdir] to configure - you can specify what directory to
install the perl libraries. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@439 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r--configure.in24
-rw-r--r--src/perl/Makefile.am2
2 files changed, 18 insertions, 8 deletions
diff --git a/configure.in b/configure.in
index 08330835..4b8f738e 100644
--- a/configure.in
+++ b/configure.in
@@ -1,7 +1,7 @@
AC_INIT(src)
AM_CONFIG_HEADER(config.h)
-AM_INIT_AUTOMAKE(irssi, 0.7.92)
+AM_INIT_AUTOMAKE(irssi, 0.7.93)
AM_MAINTAINER_MODE
@@ -72,8 +72,9 @@ AC_ARG_WITH(modules,
[ --with-modules Specify what modules to build in binary],
build_modules="$withval")
+PERL_LIB_DIR=
AC_ARG_ENABLE(perl,
-[ --enable-perl Enable Perl scripting],
+[ --enable-perl[=dir] Enable Perl scripting, you can specify the Perl libraries installation path],
if test x$enableval = xyes; then
want_perl=yes
else
@@ -81,6 +82,7 @@ AC_ARG_ENABLE(perl,
want_perl=no
else
want_perl=yes
+ PERL_LIB_DIR="$enableval"
fi
fi,
want_perl=yes)
@@ -240,6 +242,7 @@ if test "$want_perl" = yes; then
AC_SUBST(PERL_CFLAGS)
AC_SUBST(PERL_LDFLAGS)
+ AC_SUBST(PERL_LIB_DIR)
AC_DEFINE(HAVE_PERL)
fi
@@ -391,9 +394,16 @@ fi
echo
-echo Building text frontend ..... : $want_textui
-echo Building irssi-bot ......... : $want_irssibot
-echo Building with IPv6 support . : $want_ipv6
-echo Building with Perl support . : $want_perl
-echo Install prefix ............. : $prefix
+echo "Building text frontend ..... : $want_textui"
+echo "Building irssi-bot ......... : $want_irssibot"
+echo "Building with IPv6 support . : $want_ipv6"
+echo "Building with Perl support . : $want_perl"
+if test "x$want_perl" = "xyes"; then
+ if test "x$PERL_LIB_DIR" = "x"; then
+ echo "Perl library directory ..... : (default - usually /usr/local/lib/perl_site)"
+ else
+ echo "Perl library directory ..... : $PERL_LIB_DIR"
+ fi
+fi
+echo "Install prefix ............. : $prefix"
diff --git a/src/perl/Makefile.am b/src/perl/Makefile.am
index 2e527e70..9f9cc2f9 100644
--- a/src/perl/Makefile.am
+++ b/src/perl/Makefile.am
@@ -44,7 +44,7 @@ noinst_HEADERS = \
xs/module.h
all-local:
- cd xs && if [ ! -f Makefile ]; then $(perlpath) Makefile.PL; fi && $(MAKE) && cd ..
+ cd xs && if [ ! -f Makefile ]; then if [ "x$(PERL_LIB_DIR)" = "x" ]; then $(perlpath) Makefile.PL; else $(perlpath) Makefile.PL LIB=$(PERL_LIB_DIR); fi; fi && $(MAKE) && cd ..
install-exec-local:
cd xs && make install && cd ..