From: Garrett Wollman Date: Thu, 28 Jul 2011 05:44:25 +0000 (-0400) Subject: configure: provide some necessary prerequisites in header checks X-Git-Tag: upstream/1.8.0_pre1^2~3476 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=3d6f6e00439ba04f7d93c701cf85e921eab2565e;p=packages%2Fo%2Fopenafs.git configure: provide some necessary prerequisites in header checks is a prerequisite for and . is a prerequisite for . Change-Id: I2c974ad863c6ff7eedb3702159399118af8de074 Reviewed-on: http://gerrit.openafs.org/5107 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- diff --git a/acinclude.m4 b/acinclude.m4 index 1221e66ca..7e9f10336 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1261,7 +1261,6 @@ AC_CHECK_HEADERS([ \ pthread_np.h \ pwd.h \ regex.h \ - resolv.h \ security/pam_appl.h \ signal.h \ stdint.h \ @@ -1303,12 +1302,24 @@ AC_CHECK_HEADERS([ \ unistd.h \ windows.h \ ]) + +AC_CHECK_HEADERS([resolv.h], [], [], [AC_INCLUDES_DEFAULT +#ifdef HAVE_NETINET_IN_H +# include +#endif]) + AC_CHECK_HEADERS([net/if.h],[],[],[AC_INCLUDES_DEFAULT #ifdef HAVE_SYS_SOCKET_H # include #endif]) AC_CHECK_HEADERS([netinet/if_ether.h],[],[],[AC_INCLUDES_DEFAULT +#ifdef HAVE_SYS_SOCKET_H +# include +#endif +#ifdef HAVE_NETINET_IN_H +# include +#endif #ifdef HAVE_NET_IF_H # include #endif]) diff --git a/src/cf/ressearch.m4 b/src/cf/ressearch.m4 index 2abd444f9..7326edb11 100644 --- a/src/cf/ressearch.m4 +++ b/src/cf/ressearch.m4 @@ -6,6 +6,7 @@ AC_DEFUN([AC_CHECK_RESOLV_RETRANS],[ #if defined(__sun__) #include #endif +#include #include ],[ _res.retrans = 2;