mirror of
https://github.com/irssi/irssi.git
synced 2024-09-01 04:14:16 -04:00
--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
This commit is contained in:
parent
0fcb26a955
commit
a055127cf1
24
configure.in
24
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"
|
||||
|
||||
|
@ -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 ..
|
||||
|
Loading…
Reference in New Issue
Block a user