summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard Basch <probe@mit.edu>1994-12-27 11:15:03 +0000
committerRichard Basch <probe@mit.edu>1994-12-27 11:15:03 +0000
commitcf142c462b3b4960cd539fb362d69f8705e2fcd5 (patch)
tree1205d638ab5c1040be6988739217224443182aa6 /src
parent4f3c888053d6afff32a6f2e68978fa51e529955f (diff)
downloadkrb5-cf142c462b3b4960cd539fb362d69f8705e2fcd5.tar.gz
krb5-cf142c462b3b4960cd539fb362d69f8705e2fcd5.tar.xz
krb5-cf142c462b3b4960cd539fb362d69f8705e2fcd5.zip
Combined KRB5_UTPID, KRB5_UTTYPE, and KRB5_UTHOST into CHECK_UTMP macro.
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
Diffstat (limited to 'src')
-rw-r--r--src/aclocal.m429
-rw-r--r--src/kadmin/kpasswd/ChangeLog6
-rw-r--r--src/kadmin/kpasswd/configure.in4
3 files changed, 14 insertions, 25 deletions
diff --git a/src/aclocal.m4 b/src/aclocal.m4
index 902be17d7..9fc0b30d3 100644
--- a/src/aclocal.m4
+++ b/src/aclocal.m4
@@ -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
diff --git a/src/kadmin/kpasswd/ChangeLog b/src/kadmin/kpasswd/ChangeLog
index a648bb9b1..6379bb495 100644
--- a/src/kadmin/kpasswd/ChangeLog
+++ b/src/kadmin/kpasswd/ChangeLog
@@ -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
diff --git a/src/kadmin/kpasswd/configure.in b/src/kadmin/kpasswd/configure.in
index f74c432d3..050cc6205 100644
--- a/src/kadmin/kpasswd/configure.in
+++ b/src/kadmin/kpasswd/configure.in
@@ -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