sure to include the correct header when checking structure
members.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13219
dc483132-0cff-0310-8789-
dd5450dbe970
2001-04-27 Tom Yu <tlyu@mit.edu>
+ * configure.in(K5_CHECK_UT_MEMBER): Fix typo in previous; make
+ sure to include the correct header when checking structure
+ members.
+
* configure.in: Many changes to support the rewriting of the utmp
pieces of libpty. Do a large amount of checking for consistency
of various utmp and utmpx APIs as currently understood. See rant
[AC_MSG_CHECKING([for $2 in struct $1])
AC_CACHE_VAL([krb5_cv_struct_$1_$2],
[AC_TRY_COMPILE([#include <sys/types.h>
-#include <utmp.h>], [struct $1 u; u.$2;],
+#include <$1.h>], [struct $1 u; u.$2;],
eval "krb5_cv_struct_$1_$2=yes", eval "krb5_cv_struct_$1_$2=no")])
if eval "test \"`echo '$krb5_cv_struct_'$1'_'$2`\" = yes"; then
AC_MSG_RESULT(yes)