]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
auto-detect res_search() for Kerberos helpers
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 18 Feb 2011 13:31:38 +0000 (02:31 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 18 Feb 2011 13:31:38 +0000 (02:31 +1300)
From libc6 2.2 res_init which we were looking for is located in libc
but res_search is only located in libresolv.

configure.ac

index be89677fc658652ecd228f8f70576914a7c97706..1656f4c78f2581845af1fc1467f367455ec312d1 100644 (file)
@@ -1821,6 +1821,9 @@ if test x"$krb5confpath" != "xno"; then
     fi
 fi
 if test "x$ac_krb5_config" = "xyes" ; then
+  # Kerberos helpers use res_search() from libresolv or libc
+  AC_SEARCH_LIBS([__res_search],[resolv])
+
   ac_heimdal="`$krb5confpath --version 2>/dev/null | grep -i heimdal`"
   ac_solaris="`$krb5confpath --version 2>/dev/null | grep -i solaris`"
   if test "x$ac_heimdal" != "x" ; then