freebsd-ports/lang/eperl/files/patch-ab
Maxim Sobolev 64761a0ec5 Don't assume that strnstr(3) exists in the system libc. This should fix the
build on slightly outdated (3 weeks and more) 4-STABLE systems.

Submitted by:	bento
2002-01-02 12:27:25 +00:00

50 lines
1.3 KiB
Text

$FreeBSD$
--- configure.orig Sun Aug 2 16:48:40 1998
+++ configure Wed Jan 2 14:14:55 2002
@@ -571,7 +571,7 @@
if test "${with_perl+set}" = set; then
withval="$with_perl"
perlprog=$with_perl
-perlvers=`$perlprog -v | grep version | sed -e 's/.* version //' -e 's/ built.*//' -e 's/ with.*//'`
+perlvers=`$perlprog -v | grep "This is perl" | sed -e 's/^.* version //' -e 's/^.* v//' -e 's/ built.*//' -e 's/ with.*//'`
else
TMPFILE=/tmp/x.$$
@@ -600,7 +600,7 @@
PATH_PERL=$perlprog
echo "$ac_t""$perlprog v$perlvers" 1>&6
case $perlvers in
- 5.003* | 5.004* | 5.005* | 5.006* )
+ 5.003* | 5.004* | 5.005* | 5.006* | 5.6.*)
;;
* ) echo ""
echo "Latest Perl found on your system is $perlvers,"
@@ -617,6 +617,8 @@
perlvnum=`echo $perlvers | sed -e 's/\.//' -e 's/_//'` ;;
5.00[3-6] )
perlvnum=`echo $perlvers | sed -e 's/\.//' -e 's/$/00/'` ;;
+ 5.6.* )
+ perlvnum=`echo $perlvers | sed -e 's/\.//' -e 's/\./0/' -e 's/$/00/'` ;;
* )
perlvnum=`echo $perlvers | sed -e 's/\.//' -e 's/_//'` ;;
esac
@@ -1028,7 +1030,7 @@
CFLAGS="-Wall -g -ggdb3"
LDFLAGS="-g -ggdb3"
else
- CFLAGS="-g"
+# CFLAGS="-g"
LDFLAGS="-g"
fi
x="enabled"
@@ -1039,7 +1041,7 @@
else
- CFLAGS=""
+# CFLAGS=""
LDFLAGS=""
x=disabled
debug=off