Modperl uses some features of Perl 5.10, so let it depend on it.

Now we check version of perl in ./configure and on runtime when modperl is loaded.

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2183 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
darthgandalf
2010-12-05 06:27:09 +00:00
parent 6a1d27d149
commit 0bc606a928
3 changed files with 3 additions and 2 deletions
Vendored
+1 -1
View File
@@ -3718,7 +3718,7 @@ $as_echo "no" >&6; }
fi
if test -n "$PERL_BINARY"; then
if test -n "$PERL_BINARY" && eval "$PERL_BINARY -e'use 5.010'"; then
my_saved_LDFLAGS="$LDFLAGS"
appendLD `$PERL_BINARY -MExtUtils::Embed -e ccopts -e ldopts`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl_alloc in -lperl" >&5
+1 -1
View File
@@ -274,7 +274,7 @@ if test "x$PERL" != "xno"; then
old_PERL="$PERL"
old_SWIG="$SWIG"
AC_PATH_PROG([PERL_BINARY], [perl], [])
if test -n "$PERL_BINARY"; then
if test -n "$PERL_BINARY" && eval "$PERL_BINARY -e'use 5.010'"; then
my_saved_LDFLAGS="$LDFLAGS"
appendLD `$PERL_BINARY -MExtUtils::Embed -e ccopts -e ldopts`
AC_CHECK_LIB(perl, perl_alloc,
+1
View File
@@ -6,6 +6,7 @@
# by the Free Software Foundation.
#
use 5.010;
use strict;
use warnings;
use ZNC;