Lines 3274-3285
Link Here
|
3274 |
AC_SEARCH_LIBS(res_query, resolv) |
3274 |
AC_SEARCH_LIBS(res_query, resolv) |
3275 |
AC_SEARCH_LIBS(dn_expand, resolv) |
3275 |
AC_SEARCH_LIBS(dn_expand, resolv) |
3276 |
AC_MSG_CHECKING(if res_query will link) |
3276 |
AC_MSG_CHECKING(if res_query will link) |
3277 |
AC_TRY_LINK_FUNC(res_query, AC_MSG_RESULT(yes), |
3277 |
AC_LINK_IFELSE([ |
|
|
3278 |
#include "confdefs.h" |
3279 |
#include <sys/types.h> |
3280 |
#include <netinet/in.h> |
3281 |
#include <arpa/nameser.h> |
3282 |
#include <netdb.h> |
3283 |
#include <resolv.h> |
3284 |
int main() |
3285 |
{ |
3286 |
res_query (0, 0, 0, 0, 0); |
3287 |
return 0; |
3288 |
} |
3289 |
], |
3290 |
AC_MSG_RESULT(yes), |
3278 |
[AC_MSG_RESULT(no) |
3291 |
[AC_MSG_RESULT(no) |
3279 |
saved_LIBS="$LIBS" |
3292 |
saved_LIBS="$LIBS" |
3280 |
LIBS="$LIBS -lresolv" |
3293 |
LIBS="$LIBS -lresolv" |
3281 |
AC_MSG_CHECKING(for res_query in -lresolv) |
3294 |
AC_MSG_CHECKING(for res_query in -lresolv) |
3282 |
AC_LINK_IFELSE([ |
3295 |
AC_LINK_IFELSE([ |
|
|
3296 |
#include "confdefs.h" |
3297 |
#include <sys/types.h> |
3298 |
#include <netinet/in.h> |
3299 |
#include <arpa/nameser.h> |
3300 |
#include <netdb.h> |
3283 |
#include <resolv.h> |
3301 |
#include <resolv.h> |
3284 |
int main() |
3302 |
int main() |
3285 |
{ |
3303 |
{ |
Lines 3287-3294
Link Here
|
3287 |
return 0; |
3305 |
return 0; |
3288 |
} |
3306 |
} |
3289 |
], |
3307 |
], |
3290 |
[LIBS="$LIBS -lresolv" |
3308 |
[AC_MSG_RESULT(yes)], |
3291 |
AC_MSG_RESULT(yes)], |
|
|
3292 |
[LIBS="$saved_LIBS" |
3309 |
[LIBS="$saved_LIBS" |
3293 |
AC_MSG_RESULT(no)]) |
3310 |
AC_MSG_RESULT(no)]) |
3294 |
]) |
3311 |
]) |