]> granicus.if.org Git - sudo/commitdiff
added SUDO_CHECK_SHADOW_DUNIX
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 26 Jul 1996 03:44:04 +0000 (03:44 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 26 Jul 1996 03:44:04 +0000 (03:44 +0000)
aclocal.m4

index e8d6536112a394d0f20cc66754e2061cfd080652..53201f7e73b1b36f1469c5cbe80085921baf08fb 100644 (file)
@@ -233,6 +233,13 @@ else
 fi
 ])
 
+AC_DEFUN(SUDO_CHECK_SHADOW_DUNIX, [AC_MSG_CHECKING(for shadow passwords)
+    AC_TRY_RUN([int main() {
+       int security_is_on();
+       exit(!(security_is_on() > 0));
+    }], AC_MSG_RESULT(yes) [$1], AC_MSG_RESULT(no), [$2])
+])
+
 dnl
 dnl
 dnl check for fullly working void