<p>Alexander Traud has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/7963">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">BuildSystem: Resolve resolv.h not via Generic but Particular Header-Check.<br><br>ASTERISK-27585<br><br>Change-Id: I27c67563788e6f67eeda5fb51a741823a50a95e2<br>---<br>M configure<br>M configure.ac<br>2 files changed, 37 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/63/7963/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/configure b/configure<br>index 37ac28b..749b2fc 100755<br>--- a/configure<br>+++ b/configure<br>@@ -13566,11 +13566,41 @@<br> as_fn_error $? "*** POSIX.1 compatible sys/wait.h is required." "$LINENO" 5<br> fi<br> <br>+for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h<br>+do :<br>+ as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`<br>+ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H<br>+# include <sys/types.h><br>+#endif<br>+#ifdef HAVE_NETINET_IN_H<br>+# include <netinet/in.h> /* inet_ functions / structs */<br>+#endif<br>+#ifdef HAVE_ARPA_NAMESER_H<br>+# include <arpa/nameser.h> /* DNS HEADER struct */<br>+#endif<br>+#ifdef HAVE_NETDB_H<br>+# include <netdb.h><br>+#endif<br>+"<br>+if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :<br>+ cat >>confdefs.h <<_ACEOF<br>+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1<br>+_ACEOF<br>+<br>+fi<br>+<br>+done<br>+<br>+<br>+if test "$ac_cv_header_resolv_h" != "yes"; then<br>+ as_fn_error $? "*** resolv.h is required." "$LINENO" 5<br>+fi<br>+<br> # Check for headers that are unconditionally required on all platforms. Do not use<br> # this to check for headers that are only needed by modules.<br> for ac_header in \<br> arpa/nameser.h assert.h ctype.h dlfcn.h errno.h fcntl.h float.h grp.h \<br>- inttypes.h limits.h locale.h math.h pwd.h netinet/in.h regex.h resolv.h \<br>+ inttypes.h limits.h locale.h math.h pwd.h netinet/in.h regex.h \<br> sched.h stdarg.h stdint.h stdio.h stdlib.h string.h syslog.h \<br> sys/file.h sys/ioctl.h sys/param.h sys/resource.h sys/socket.h sys/stat.h \<br> sys/time.h sys/types.h sys/un.h \<br>diff --git a/configure.ac b/configure.ac<br>index f0a978e..f68338b 100644<br>--- a/configure.ac<br>+++ b/configure.ac<br>@@ -605,11 +605,16 @@<br> AC_MSG_ERROR([*** POSIX.1 compatible sys/wait.h is required.])<br> fi<br> <br>+AC_HEADER_RESOLV<br>+if test "$ac_cv_header_resolv_h" != "yes"; then<br>+ AC_MSG_ERROR([*** resolv.h is required.])<br>+fi<br>+<br> # Check for headers that are unconditionally required on all platforms. Do not use<br> # this to check for headers that are only needed by modules.<br> AC_CHECK_HEADERS([ \<br> arpa/nameser.h assert.h ctype.h dlfcn.h errno.h fcntl.h float.h grp.h \<br>- inttypes.h limits.h locale.h math.h pwd.h netinet/in.h regex.h resolv.h \<br>+ inttypes.h limits.h locale.h math.h pwd.h netinet/in.h regex.h \<br> sched.h stdarg.h stdint.h stdio.h stdlib.h string.h syslog.h \<br> sys/file.h sys/ioctl.h sys/param.h sys/resource.h sys/socket.h sys/stat.h \<br> sys/time.h sys/types.h sys/un.h \<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/7963">change 7963</a>. To unsubscribe, 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/7963"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I27c67563788e6f67eeda5fb51a741823a50a95e2 </div>
<div style="display:none"> Gerrit-Change-Number: 7963 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Alexander Traud <pabstraud@compuserve.com> </div>