Check for __res_query as well as res_query.
authorFredrik Tolf <fredrik@dolda2000.com>
Sat, 12 Jan 2008 12:47:20 +0000 (13:47 +0100)
committerFredrik Tolf <fredrik@dolda2000.com>
Sat, 12 Jan 2008 12:47:20 +0000 (13:47 +0100)
configure.in

index e42caf8..548f9af 100644 (file)
@@ -202,6 +202,8 @@ AC_CHECK_MEMBER(struct sockaddr_in6.sin6_family, [ AC_DEFINE(HAVE_IPV6) ], , [#i
 AH_TEMPLATE(HAVE_RESOLVER, [define if your system supports the res_* functions to fetch DNS RRs])
 AC_CHECK_LIB(resolv, res_query, [ AC_DEFINE(HAVE_RESOLVER)
                                  LDFLAGS="$LDFLAGS -lresolv" ])
+AC_CHECK_LIB(resolv, __res_query, [ AC_DEFINE(HAVE_RESOLVER)
+                                   LDFLAGS="$LDFLAGS -lresolv" ])
 
 # Unix credentials selector
 AH_TEMPLATE(UNIX_AUTH_STYLE, [undefine for no Unix auth, 1 for Linux style, 2 for BSD style])