mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Fix build with libxml2-2.6.0.
PR: 58464 Submitted by: Jens Rehsack <rehsack@liwing.de> Reported by: bento via kris
This commit is contained in:
parent
de146c7de5
commit
a6ee4badc3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=91990
1 changed files with 25 additions and 0 deletions
25
textproc/gxmlviewer/files/patch-configure
Normal file
25
textproc/gxmlviewer/files/patch-configure
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
--- configure.orig Thu Oct 23 19:31:15 2003
|
||||||
|
+++ configure Thu Oct 23 19:41:08 2003
|
||||||
|
@@ -4106,7 +4106,7 @@
|
||||||
|
else
|
||||||
|
echo $ac_n "checking version of bison""... $ac_c" 1>&6
|
||||||
|
echo "configure:4109: checking version of bison" >&5
|
||||||
|
- ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison .* \([0-9]*\.[0-9.]*\).*$/\1/p'`
|
||||||
|
+ ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
|
||||||
|
case $ac_prog_version in
|
||||||
|
'') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
|
||||||
|
1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
|
||||||
|
@@ -4195,9 +4195,10 @@
|
||||||
|
echo $ac_n "checking for libxml >= 2.3.1""... $ac_c" 1>&6
|
||||||
|
echo "configure:4197: checking for libxml >= 2.3.1" >&5
|
||||||
|
if xml2-config --libs > /dev/null 2>&1; then
|
||||||
|
- vers=`xml2-config --version | sed -e "s/xml-//" -e 's/cvs$//' -e 's/pre$//' | \
|
||||||
|
- awk 'BEGIN { FS = "."; } { print $3;}'`
|
||||||
|
- if test "$vers" -ge 1; then
|
||||||
|
+ vers=`xml2-config --version | sed -e "s/xml-//" -e 's/cvs$//' -e 's/pre$//'`
|
||||||
|
+ vers_minor=`echo ${vers} | awk 'BEGIN { FS = "."; } { print $2;}'`
|
||||||
|
+ vers_rev=`echo ${vers} | awk 'BEGIN { FS = "."; } { print $3;}'`
|
||||||
|
+ if test "$vers_minor" -gt 3 -o "$vers_minor" -ge 3 -a "$vers_rev" -ge 1; then
|
||||||
|
echo "$ac_t""found ("$vers")" 1>&6
|
||||||
|
XML_CFLAGS="`xml2-config --cflags`"
|
||||||
|
XML_LIBS="`xml2-config --libs`"
|
Loading…
Add table
Reference in a new issue