diff options
Diffstat (limited to 'source3/configure.in')
-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 1cfeb1a3b4..dc036c6238 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -123,6 +123,14 @@ if test x"$samba_cv_have_setresuid_decl" = x"yes"; then AC_DEFINE(HAVE_SETRESUID_DECL) fi +# stupid glibc has the functions but no declaration. grrrr. +AC_CACHE_CHECK([for crypt declaration],samba_cv_have_crypt_decl,[ + AC_TRY_COMPILE([#include <unistd.h>],[int i = crypt], + samba_cv_have_crypt_decl=yes,samba_cv_have_crypt_decl=no)]) +if test x"$samba_cv_have_crypt_decl" = x"yes"; then + AC_DEFINE(HAVE_CRYPT_DECL) +fi + # and glibc has setresuid under linux but the function does # nothing until kernel 2.1.44! very dumb. AC_CACHE_CHECK([for real setresuid],samba_cv_have_setresuid,[ |