From 75deeac080f1868c61b0fa1deac0ecc8471debd5 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Wed, 23 Feb 2011 12:39:33 +1300 Subject: [PATCH] Fix for revno11239. Perform detection where it is not going to be erased The kerberos library detection is wrapped inside a state which erases the results of LIBS and flags found by AC_SEARCH_LIBS. Do the search outside that block. --- configure.ac | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 106fe08f74..8a36faa871 100644 --- a/configure.ac +++ b/configure.ac @@ -1821,9 +1821,6 @@ 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 @@ -2514,6 +2511,7 @@ AC_MSG_NOTICE([libcap2 headers are ok: $squid_cv_sys_capability_works]) dnl Check for needed libraries AC_SEARCH_LIBS([gethostbyname],[nsl resolv bind]) AC_SEARCH_LIBS([res_init],[resolv]) +AC_SEARCH_LIBS([__res_search],[resolv]) AC_SEARCH_LIBS([bind],[socket]) AC_SEARCH_LIBS([opcom_stack_trace],[opcom_stack]) AC_SEARCH_LIBS([strlcpy], [bsd]) -- 2.47.3