blob: 160eeede69d54a5847646cca0fa16f2a21ea77e3 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001From afe545e77f9d841b7777d859e7e8108492fece96 Mon Sep 17 00:00:00 2001
2From: Jackie Huang <jackie.huang@windriver.com>
3Date: Wed, 26 Apr 2017 16:22:00 +0800
4Subject: [PATCH] Fix libxml2 for cross-compiling
5
6Use proper XML2_INCLUDE path when cross-compiling
7
8Upstream-Status: Pending
9
10Signed-of-by: Aws Ismail <aws.ismail@windriver.com>
11
12---
13 configure.ac | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/configure.ac b/configure.ac
17index 6242cbf..4fb6b69 100644
18--- a/configure.ac
19+++ b/configure.ac
20@@ -179,7 +179,7 @@ AC_CHECK_HEADERS([openssl/md2.h openssl/md5.h openssl/bio.h openssl/ssl.h openss
21
22 dnl xml is used for XML-based communication in ilo2_ribcl and oa_soap
23 AC_CHECK_LIB([xml2],[xmlParseMemory],[XML2_LIB=-lxml2],[XML2_LIB=])
24-AC_CHECK_HEADERS([libxml2/libxml/xmlexports.h],[XML2_INCLUDE="-I/usr/include/libxml2"],[XML2_INCLUDE=])
25+AC_CHECK_HEADERS([libxml2/libxml/xmlexports.h],[XML2_INCLUDE="$XML2_INCLUDE"],[XML2_INCLUDE=])
26 AC_SUBST(XML2_LIB)
27 AC_SUBST(XML2_INCLUDE)
28