--- afs-krb5/src/configure.in.res_search	2005-09-30 12:53:38.000000000 -0400
+++ afs-krb5/src/configure.in	2005-09-30 14:40:38.000000000 -0400
@@ -89,7 +89,10 @@
 		if test "$have_res_search" != yes; then
 			AC_CHECK_LIB(${lib}, res_search,
 				     [have_res_search=yes
-				      NETLIBS="$NETLIBS -l${lib}"])
+				      NETLIBS="$NETLIBS -l${lib}"],
+			             [AC_CHECK_LIB(${lib}, __res_search,
+				       [have_res_search=yes
+					NETLIBS="$NETLIBS -l${lib}"])])
 		fi
 	done
 fi
