Merge from vendor branch BIND:
[dragonfly.git] / crypto / heimdal / cf / krb-struct-spwd.m4
1 dnl $Id: krb-struct-spwd.m4,v 1.3 1999/07/13 21:04:11 assar Exp $
2 dnl
3 dnl Test for `struct spwd'
4
5 AC_DEFUN(AC_KRB_STRUCT_SPWD, [
6 AC_MSG_CHECKING(for struct spwd)
7 AC_CACHE_VAL(ac_cv_struct_spwd, [
8 AC_TRY_COMPILE(
9 [#include <pwd.h>
10 #ifdef HAVE_SHADOW_H
11 #include <shadow.h>
12 #endif],
13 [struct spwd foo;],
14 ac_cv_struct_spwd=yes,
15 ac_cv_struct_spwd=no)
16 ])
17 AC_MSG_RESULT($ac_cv_struct_spwd)
18
19 if test "$ac_cv_struct_spwd" = "yes"; then
20   AC_DEFINE(HAVE_STRUCT_SPWD, 1, [define if you have struct spwd])
21 fi
22 ])