aboutsummaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-12-06 19:29:44 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-12-06 19:29:44 +0000
commit6ea4ec893472a7c441d2d6c26ff2914a51c1f978 (patch)
treec04712998e71720f50075119ffd1b72b9b874269 /configure.in
parentc409da175f0925b1d064f218ad069aa11a3f0dcc (diff)
downloadfetchmail-6ea4ec893472a7c441d2d6c26ff2914a51c1f978.tar.gz
fetchmail-6ea4ec893472a7c441d2d6c26ff2914a51c1f978.tar.bz2
fetchmail-6ea4ec893472a7c441d2d6c26ff2914a51c1f978.zip
Avoid using -lresolv if possible.
svn path=/trunk/; revision=605
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 9e40d26c..49dc4ce4 100644
--- a/configure.in
+++ b/configure.in
@@ -33,7 +33,12 @@ AC_SUBST(LIBOBJS)
AC_CHECK_LIB(socket,socket)
AC_CHECK_LIB(nsl,inet_addr)
-AC_CHECK_LIB(resolv,res_search)
+
+
+# Under Red Hat 4.0 (and many other Linuxes) -lresolv is seriously flaky
+# and breaks gethostbyname(2). It's better to use the bind stuff in the C
+# library. So don't add -lresolv to the link list unless it's necessary
+AC_CHECK_FUNC(res_search,, AC_CHECK_LIB(resolv,res_search))
AC_CHECK_FUNC(strcasecmp, AC_DEFINE(HAVE_STRCASECMP),
[EXTRASRC="$EXTRASRC \$(srcdir)/strcasecmp.c"