aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2004-06-20 12:31:18 +0000
committerMatthias Andree <matthias.andree@gmx.de>2004-06-20 12:31:18 +0000
commit79e3401dd016e1569512f1bc7f9973aa126dbcf8 (patch)
treebd3df3534d3eb3f8efe3442b8b0b835968ce0172
parent2fbf7bcbea6e6db78a1b3cacc3e8371a1db2d599 (diff)
downloadfetchmail-79e3401dd016e1569512f1bc7f9973aa126dbcf8.tar.gz
fetchmail-79e3401dd016e1569512f1bc7f9973aa126dbcf8.tar.bz2
fetchmail-79e3401dd016e1569512f1bc7f9973aa126dbcf8.zip
Fix "resolv.h: present but cannot be compiled" on FreeBSD.
svn path=/trunk/; revision=3913
-rw-r--r--configure.in11
1 files changed, 10 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 02955a7d..58ca6aaa 100644
--- a/configure.in
+++ b/configure.in
@@ -28,8 +28,17 @@ AC_TYPE_PID_T
AC_TYPE_SIGNAL
AC_CHECK_HEADERS([unistd.h termios.h termio.h sgtty.h stdarg.h \
alloca.h sys/itimer.h fcntl.h sys/fcntl.h memory.h sys/wait.h \
- sys/shm.h arpa/inet.h arpa/nameser.h resolv.h net/socket.h \
+ sys/shm.h arpa/inet.h arpa/nameser.h netinet/in.h net/socket.h \
sys/select.h sys/time.h])
+AC_CHECK_HEADERS([resolv.h],,,[
+#include <sys/types.h>
+#ifdef HAVE_NETINET_IN_H
+#include <netinet/in.h>
+#endif
+#ifdef HAVE_ARPA_NAMESER_H
+#include <arpa/nameser.h>
+#endif
+])
AC_C_CONST dnl getopt needs this.