<p>Hugh McMaster has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/18241">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">configure.ac: Use pkg-config to detect libxml2<br><br>Use pkg-config to detect libxml2, falling back to xml2-config if the<br>former is not available.<br><br>This patch ensures Asterisk continues to build on systems without<br>xml2-config installed.<br><br>ASTERISK-29970 #close<br><br>Change-Id: I3c90dfe0b0590486cbb8e6d426a7c5c4199410c0<br>---<br>M configure.ac<br>M menuselect/configure.ac<br>2 files changed, 3 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/41/18241/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/configure.ac b/configure.ac</span><br><span>index 9eb62b8..196bae3 100644</span><br><span>--- a/configure.ac</span><br><span>+++ b/configure.ac</span><br><span>@@ -744,6 +744,7 @@</span><br><span> # See if clock_gettime is in librt</span><br><span> AST_EXT_LIB_CHECK([RT], [rt], [clock_gettime], [])</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+AST_PKG_CONFIG_CHECK([LIBXML2], [libxml-2.0])</span><br><span> AST_EXT_TOOL_CHECK([LIBXML2], [xml2-config], , ,</span><br><span> [#include <libxml/tree.h></span><br><span> #include <libxml/parser.h>],</span><br><span>diff --git a/menuselect/configure.ac b/menuselect/configure.ac</span><br><span>index 4629d52..589f082 100644</span><br><span>--- a/menuselect/configure.ac</span><br><span>+++ b/menuselect/configure.ac</span><br><span>@@ -45,6 +45,7 @@</span><br><span> AC_PROG_CC</span><br><span> AST_CHECK_GNU_MAKE</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+PKG_PROG_PKG_CONFIG</span><br><span> </span><br><span> AC_LANG(C)</span><br><span> AC_ARG_ENABLE([debug],</span><br><span>@@ -90,6 +91,7 @@</span><br><span> AST_EXT_LIB_CHECK([TINFO], [tinfo], [keypad], [curses.h])</span><br><span> fi</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+AST_PKG_CONFIG_CHECK([LIBXML2], [libxml-2.0])</span><br><span> AST_EXT_TOOL_CHECK([LIBXML2], [xml2-config], , ,</span><br><span> [#include <libxml/tree.h></span><br><span> #include <libxml/parser.h>],</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/18241">change 18241</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/c/asterisk/+/18241"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 18.10 </div>
<div style="display:none"> Gerrit-Change-Id: I3c90dfe0b0590486cbb8e6d426a7c5c4199410c0 </div>
<div style="display:none"> Gerrit-Change-Number: 18241 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Hugh McMaster <hugh.mcmaster@outlook.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>