You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apreq-dev@httpd.apache.org by "Philip M. Gollucci" <pg...@p6m7g8.com> on 2005/04/08 10:11:59 UTC
[PATCH[ build/version_check.pl fix ExtUtils::XSBuilder version detection
Hi,
this fixes version check to not die with a fatal perl error when
ExtUtils::XSBuilder is not installed and instead print version not found
message like it does for other tools.
[against branches/multi-env-unstable/]
Index: build/version_check.pl
===================================================================
--- build/version_check.pl (revision 160526)
+++ build/version_check.pl (working copy)
@@ -10,9 +10,10 @@
sub gnu_version { scalar qx/$path --version/ }
sub xsb_version {
- package ExtUtils::XSBuilder;
- require ExtUtils::XSBuilder;
- return our $VERSION;
+ eval {
+ require ExtUtils::XSBuilder;
+ };
+ $@ ? return '' : return $ExtUtils::XSBuilder::VERSION;
}
--
END
------------------------------------------------------
Philip M. Gollucci (pgollucci@p6m7g8.com) 301.254.5198
Consultant / http://p6m7g8.net/Resume/resume.shtml