Commits

Anonymous committed 316a6b6

Check for libxml2 version
Bump rev
1.30 changes

Comments (0)

Files changed (3)

 Revision history for Perl extension XML::LibXSLT.
 
+1.30
+    - Full PI access
+    - New parser implementation (safer)
+    - Callbacks API changed to be on the object, not the class
+    - SAX uses XML::SAX now (required)
+    - Memory leak fixes
+
 1.00
     - Added SAX serialisation
     - Added a SAX builder module
 use Carp;
 use XML::LibXML::NodeList;
 
-$VERSION = "1.01";
+$VERSION = "1.30";
 require Exporter;
 require DynaLoader;
 
 # get libs and inc from gnome-config
 eval {
     print "running xml2-config... ";
+    my $ver = backtick('xml2-config --version');
+    my ($major, $minor, $point) = $ver =~ /(\d+).(\d+)\.(\d+)/g;
+    die "VERSION" unless $major > 2 || $minor > 4 || $point >= 8;
     $config{LIBS} ||= backtick('xml2-config --libs');
     $config{INC} ||= backtick('xml2-config --cflags');
     print "ok\n";
 };
 if ($@) {
     print "failed\n";
+    if ($@ =~ /^VERSION/) {
+        die "XML::LibXML needs libxml2 version 2.4.8 or higher\n";
+    }
     warn "*** ", $@ if $DEBUG;
     warn "using fallback values for LIBS and INC\n";
     # backtick fails if gnome-config didn't exist...