added SUDO_CHECK_SHADOW

This commit is contained in:
Todd C. Miller
1995-07-17 04:19:42 +00:00
parent 59dcca855c
commit 17a7c74d56

16
aclocal.m4 vendored
View File

@@ -1,4 +1,5 @@
dnl Local m4 macors for autoconf (used by sudo)
snl XXX - should cache values in all cases!!!
dnl
dnl checks for programs
@@ -110,6 +111,20 @@ else
fi
])dnl
dnl
dnl check for shadow passwords
dnl
AC_DEFUN(SUDO_CHECK_SHADOW, [AC_MSG_CHECKING(for shadow passwords)
AC_TRY_RUN([#include <pwd.h>
int main() {
struct passwd *pwd;
pwd = getpwuid(getuid());
return(!(pwd->pw_passwd == (char *) 0 || (pwd->pw_passwd[0] && pwd->pw_passwd [1] == '\0'))); }
], AC_MSG_RESULT(yes)
[$1], AC_MSG_RESULT(no)
[$2])])
dnl
dnl
dnl check for fullly working void
dnl
@@ -118,6 +133,7 @@ AC_TRY_COMPILE(, [void *foo;
foo = (void *)0; foo += 0;], AC_DEFINE(VOID, void)
AC_MSG_RESULT(yes), AC_DEFINE(VOID, char)
AC_MSG_RESULT(no))])
dnl
dnl SUDO_CHECK_TYPE(TYPE, DEFAULT)
dnl XXX - should require the check for unistd.h...