1*4882a593SmuzhiyunDo not use the _libxml_check_lib() on cross-compile 2*4882a593Smuzhiyun 3*4882a593SmuzhiyunUpstream-Status: Inappropriate [configuration] 4*4882a593Smuzhiyun 5*4882a593Smuzhiyunxml2 have been added into package's DEPENDS, so not need to use the 6*4882a593Smuzhiyun_libxml_check_lib() to check it again, and _libxml_check_lib() always 7*4882a593Smuzhiyunreturn false on cross-compile environment 8*4882a593Smuzhiyun 9*4882a593SmuzhiyunSigned-off-by: Roy Li <rongqing.li@windriver.com> 10*4882a593Smuzhiyun--- 11*4882a593Smuzhiyun Makefile.PL | 52 ++++++++++++++++++++++++++-------------------------- 12*4882a593Smuzhiyun 1 file changed, 26 insertions(+), 26 deletions(-) 13*4882a593Smuzhiyun 14*4882a593Smuzhiyundiff --git a/Makefile.PL b/Makefile.PL 15*4882a593Smuzhiyunindex c0485f1..09c676b 100644 16*4882a593Smuzhiyun--- a/Makefile.PL 17*4882a593Smuzhiyun+++ b/Makefile.PL 18*4882a593Smuzhiyun@@ -411,32 +411,32 @@ sub _libxml_check_lib { 19*4882a593Smuzhiyun } 20*4882a593Smuzhiyun } 21*4882a593Smuzhiyun 22*4882a593Smuzhiyun-print "Checking for ability to link against xml2..."; 23*4882a593Smuzhiyun-if ( _libxml_check_lib('xml2') ) { 24*4882a593Smuzhiyun- print "yes\n"; 25*4882a593Smuzhiyun-} 26*4882a593Smuzhiyun-else { 27*4882a593Smuzhiyun- print "no\n"; 28*4882a593Smuzhiyun- print "Checking for ability to link against libxml2..."; 29*4882a593Smuzhiyun- if ( _libxml_check_lib('libxml2')) { 30*4882a593Smuzhiyun- print "yes\n"; 31*4882a593Smuzhiyun- } 32*4882a593Smuzhiyun- else { 33*4882a593Smuzhiyun- print STDERR <<"DEATH"; 34*4882a593Smuzhiyun-libxml2, zlib, and/or the Math library (-lm) have not been found. 35*4882a593Smuzhiyun-Try setting LIBS and INC values on the command line 36*4882a593Smuzhiyun-Or get libxml2 from 37*4882a593Smuzhiyun- http://xmlsoft.org/ 38*4882a593Smuzhiyun-If you install via RPMs, make sure you also install the -devel 39*4882a593Smuzhiyun-RPMs, as this is where the headers (.h files) are. 40*4882a593Smuzhiyun- 41*4882a593Smuzhiyun-Also, you may try to run perl Makefile.PL with the DEBUG=1 parameter 42*4882a593Smuzhiyun-to see the exact reason why the detection of libxml2 installation 43*4882a593Smuzhiyun-failed or why Makefile.PL was not able to compile a test program. 44*4882a593Smuzhiyun-DEATH 45*4882a593Smuzhiyun- exit 0; # 0 recommended by http://cpantest.grango.org (Notes for CPAN Authors) 46*4882a593Smuzhiyun- } 47*4882a593Smuzhiyun-} 48*4882a593Smuzhiyun+#print "Checking for ability to link against xml2..."; 49*4882a593Smuzhiyun+#if ( _libxml_check_lib('xml2') ) { 50*4882a593Smuzhiyun+# print "yes\n"; 51*4882a593Smuzhiyun+#} 52*4882a593Smuzhiyun+#else { 53*4882a593Smuzhiyun+# print "no\n"; 54*4882a593Smuzhiyun+# print "Checking for ability to link against libxml2..."; 55*4882a593Smuzhiyun+# if ( _libxml_check_lib('libxml2')) { 56*4882a593Smuzhiyun+# print "yes\n"; 57*4882a593Smuzhiyun+# } 58*4882a593Smuzhiyun+# else { 59*4882a593Smuzhiyun+# print STDERR <<"DEATH"; 60*4882a593Smuzhiyun+#libxml2, zlib, and/or the Math library (-lm) have not been found. 61*4882a593Smuzhiyun+#Try setting LIBS and INC values on the command line 62*4882a593Smuzhiyun+#Or get libxml2 from 63*4882a593Smuzhiyun+# http://xmlsoft.org/ 64*4882a593Smuzhiyun+#If you install via RPMs, make sure you also install the -devel 65*4882a593Smuzhiyun+#RPMs, as this is where the headers (.h files) are. 66*4882a593Smuzhiyun+# 67*4882a593Smuzhiyun+#Also, you may try to run perl Makefile.PL with the DEBUG=1 parameter 68*4882a593Smuzhiyun+#to see the exact reason why the detection of libxml2 installation 69*4882a593Smuzhiyun+#failed or why Makefile.PL was not able to compile a test program. 70*4882a593Smuzhiyun+#DEATH 71*4882a593Smuzhiyun+# exit 0; # 0 recommended by http://cpantest.grango.org (Notes for CPAN Authors) 72*4882a593Smuzhiyun+# } 73*4882a593Smuzhiyun+#} 74*4882a593Smuzhiyun 75*4882a593Smuzhiyun # -------------------------------------------------------------------------- # 76*4882a593Smuzhiyun # _NOW_ write the Makefile 77*4882a593Smuzhiyun-- 78*4882a593Smuzhiyun1.7.10.4 79*4882a593Smuzhiyun 80