Combined KRB5_UTPID, KRB5_UTTYPE, and KRB5_UTHOST into CHECK_UTMP macro.
authorRichard Basch <probe@mit.edu>
Tue, 27 Dec 1994 11:15:03 +0000 (11:15 +0000)
committerRichard Basch <probe@mit.edu>
Tue, 27 Dec 1994 11:15:03 +0000 (11:15 +0000)
Files affected: aclocal.m4, kadmin/kpasswd/configure.in, appl/bsd/configure.in

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4753 dc483132-0cff-0310-8789-dd5450dbe970

src/aclocal.m4
src/kadmin/kpasswd/ChangeLog
src/kadmin/kpasswd/configure.in

index 902be17d73767f25a44247a12a464c0e125dc43a..9fc0b30d347e3ce8c9f028194c6d0617afbb73a9 100644 (file)
@@ -302,8 +302,7 @@ AC_FUNC_CHECK(sigsetjmp,
 AC_MSG_CHECKING(for sigjmp_buf)
 AC_CACHE_VAL(krb5_cv_struct_sigjmp_buf,
 [AC_TRY_COMPILE(
-[#include <setjmp.h>],
-[sigjmp_buf x],
+[#include <setjmp.h>],[sigjmp_buf x],
 krb5_cv_struct_sigjmp_buf=yes,krb5_cv_struct_sigjmp_buf=no)])
 AC_MSG_RESULT($krb5_cv_struct_sigjmp_buf)
 if test $krb5_cv_struct_sigjmp_buf = yes; then
@@ -552,11 +551,9 @@ dnl
 define(V5_AC_OUTPUT_MAKEFILE,
 [AC_OUTPUT(pre.out:[$]ac_prepend Makefile.out:Makefile.in post.out:[$]ac_postpend,[EXTRA_RULES], cat pre.out Makefile.out post.out > Makefile)])dnl
 dnl
+dnl CHECK_UTMP: check utmp structure and functions
 dnl
-dnl utmp structure checks (used by appl/bsd and kadmin/kpasswd)
-dnl
-dnl check for ut_pid in struct utmp
-define(KRB5_UTPID,[
+define(CHECK_UTMP,[
 AC_MSG_CHECKING([ut_pid in struct utmp])
 AC_CACHE_VAL(krb5_cv_struct_ut_pid,
 [AC_TRY_COMPILE(
@@ -567,11 +564,6 @@ AC_MSG_RESULT($krb5_cv_struct_ut_pid)
 if test $krb5_cv_struct_ut_pid = no; then
   AC_DEFINE(NO_UT_PID)
 fi
-])dnl
-dnl
-dnl check for ut_type in struct utmp
-dnl
-define(KRB5_UTTYPE,[
 AC_MSG_CHECKING([ut_type in struct utmp])
 AC_CACHE_VAL(krb5_cv_struct_ut_type,
 [AC_TRY_COMPILE(
@@ -582,11 +574,6 @@ AC_MSG_RESULT($krb5_cv_struct_ut_type)
 if test $krb5_cv_struct_ut_type = no; then
   AC_DEFINE(NO_UT_TYPE)
 fi
-])dnl
-dnl
-dnl check for ut_host in struct utmp
-dnl
-define(KRB5_UTHOST,[
 AC_MSG_CHECKING([ut_host in struct utmp])
 AC_CACHE_VAL(krb5_cv_struct_ut_host,
 [AC_TRY_COMPILE(
@@ -597,12 +584,6 @@ AC_MSG_RESULT($krb5_cv_struct_ut_host)
 if test $krb5_cv_struct_ut_host = no; then
   AC_DEFINE(NO_UT_HOST)
 fi
-])dnl
-dnl
-dnl
-dnl check for ut_exit in struct utmp
-dnl
-define(KRB5_UTEXIT,[
 AC_MSG_CHECKING([ut_exit in struct utmp])
 AC_CACHE_VAL(krb5_cv_struct_ut_exit,
 [AC_TRY_COMPILE(
@@ -613,6 +594,10 @@ AC_MSG_RESULT($krb5_cv_struct_ut_exit)
 if test $krb5_cv_struct_ut_exit = no; then
   AC_DEFINE(NO_UT_EXIT)
 fi
+AC_FUNC_CHECK(setutent,AC_DEFINE(HAVE_SETUTENT))
+AC_FUNC_CHECK(setutxent,AC_DEFINE(HAVE_SETUTXENT))
+AC_FUNC_CHECK(updwtmp,AC_DEFINE(HAVE_UPDWTMP))
+AC_FUNC_CHECK(updwtmpx,AC_DEFINE(HAVE_UPDWTMPX))
 ])dnl
 dnl
 dnl
index a648bb9b1e603cbe2da9fe1835a778fda7ea24e4..6379bb4955c365bbcc3a4a25395be4a9efafab44 100644 (file)
@@ -1,3 +1,9 @@
+Tue Dec 27 06:09:03 1994  Richard Basch  (probe@tardis)
+
+       * configure.in:
+       combined KRB5_UTPID, KRB5_UTTYPE, and KRB5_UTHOST
+       into CHECK_UTMP macro (and added additional checks)
+
 Fri Nov 18 01:08:39 1994  Mark Eichin  <eichin@cygnus.com>
 
        * configure.in: use new macros KRB5_UTPID, KRB5_UTTYPE, and
index f74c432d330119b9263aca305aa4c22eab368dd8..050cc620569337f41d9ae9ab6d32fcec5ef772c8 100644 (file)
@@ -6,9 +6,7 @@ AC_PROG_INSTALL
 AC_CHECK_LIB(socket,main)
 AC_CHECK_LIB(nsl,main)
 AC_HAVE_HEADERS(unistd.h)
-KRB5_UTPID
-KRB5_UTTYPE
-KRB5_UTHOST
+CHECK_UTMP
 AC_FUNC_CHECK(getutent,AC_DEFINE(HAVE_GETUTENT))
 ET_RULES
 KRB_INCLUDE