diff options
author | Volker Lendecke <vl@samba.org> | 2011-04-25 10:55:58 +0200 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2011-04-25 11:44:58 +0200 |
commit | 4f6b1e8c81776cf1fa386574e60e54fe6b4fe82e (patch) | |
tree | 699bed7b6ae8d7a024508956c75ea0eb1d15fc0a /source3 | |
parent | 422b2fa0d064f2afeeec400223bb8a47deecc4a5 (diff) | |
download | samba-4f6b1e8c81776cf1fa386574e60e54fe6b4fe82e.tar.gz samba-4f6b1e8c81776cf1fa386574e60e54fe6b4fe82e.tar.bz2 samba-4f6b1e8c81776cf1fa386574e60e54fe6b4fe82e.zip |
s3: Check for res_ninit
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Apr 25 11:44:58 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r-- | source3/configure.in | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/configure.in b/source3/configure.in index 3a2f089a29..556b8d3aee 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -1411,6 +1411,14 @@ AC_CHECK_LIB(resolv, dn_expand) AC_CHECK_LIB(resolv, _dn_expand) AC_CHECK_LIB(resolv, __dn_expand) +AC_TRY_COMPILE([#include <resolv.h>], + [struct __res_state s; res_ninit(&s);], + ac_cv_have_res_ninit=yes,ac_cv_have_res_ninit=no) + +if test x"$ac_cv_have_res_ninit" = x"yes"; then + AC_DEFINE(HAVE_RES_NINIT, 1, [Whether we have res_ninit]) +fi + # # Check for the functions putprpwnam, set_auth_parameters, # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity |