1998-05-06 Theodore Ts'o <tytso@rsts-11.mit.edu>
+ * configure.in: Add a check for the header file krb4-proto.h.
+ Replace file existence tests for /etc/environment and
+ /etc/TIMEZONE with K5_AC_CHECK_FILES.
+
* login.c (main):
* krshd.c (main):
* krlogind.c (main): POSIX states that getopt returns -1 when it
AC_VFORK
AC_TYPE_MODE_T
AC_CHECK_FUNCS(isatty inet_aton gettosbyname killpg initgroups setpriority setreuid setresuid waitpid setsid ptsname setlogin tcgetpgrp tcsetpgrp setpgid strsave utimes)
-AC_CHECK_HEADERS(unistd.h stdlib.h string.h sys/filio.h sys/sockio.h sys/label.h sys/tty.h ttyent.h lastlog.h sys/select.h sys/ptyvar.h utmp.h sys/time.h)
+AC_CHECK_HEADERS(unistd.h stdlib.h string.h sys/filio.h sys/sockio.h sys/label.h sys/tty.h ttyent.h lastlog.h sys/select.h sys/ptyvar.h utmp.h sys/time.h krb4-proto.h)
AC_HEADER_STDARG
AC_REPLACE_FUNCS(getdtablesize)
KRB5_SIGTYPE
fi
dnl
dnl
-AC_MSG_CHECKING([/etc/environment])
-AC_CACHE_VAL(krb5_cv_etc_environment,
-[if test "$cross_compiling" = yes; then
-errprint(__file__:__line__: warning: Cannot check for file existence when cross compiling
-)dnl
-AC_MSG_ERROR(Cannot check for file existence when cross compiling)
-else
-if test -r /etc/environment; then
-krb5_cv_etc_environment=yes
-else
-krb5_cv_etc_environment=no
-fi
-fi])
-AC_MSG_RESULT($krb5_cv_etc_environment)
-if test $krb5_cv_etc_environment = yes; then
-AC_DEFINE(HAVE_ETC_ENVIRONMENT)
-fi
-dnl
-dnl
-AC_MSG_CHECKING([/etc/TIMEZONE])
-AC_CACHE_VAL(krb5_cv_etc_timezone,
-[if test "$cross_compiling" = yes; then
-errprint(__file__:__line__: warning: Cannot check for file existence when cross compiling
-)dnl
-AC_MSG_ERROR(Cannot check for file existence when cross compiling)
-else
-if test -r /etc/TIMEZONE; then
-krb5_cv_etc_timezone=yes
-else
-krb5_cv_etc_timezone=no
-fi
-fi])
-AC_MSG_RESULT($krb5_cv_etc_timezone)
-if test $krb5_cv_etc_timezone = yes; then
-AC_DEFINE(HAVE_ETC_TIMEZONE)
-fi
+K5_AC_CHECK_FILES(/etc/environment /etc/TIMEZONE)
dnl
dnl
KRB5_CHECK_PROTOS