+Tue Aug 16 22:36:29 1994 Mark Eichin (eichin@cygnus.com)
+
+ * configure.in: set LOGINLIBS to -lodm -ls -lcfg if the system has
+ all three (and is probably an AIX system.)
+ * Makefile.in: use LOGINLIBS for login.krb5.
+ * krshd.c: use HAVE_SYS_SELECT_H.
+
Tue Aug 16 17:58:09 1994 Mark Eichin (eichin@cygnus.com)
* krcp.c: check HAVE_VFORK_H
- configure.in: use AC_VFORK (runtime test -- consider just using
+ * configure.in: use AC_VFORK (runtime test -- consider just using
fork instead.)
Sat Aug 13 02:04:37 1994 Mark Eichin (eichin@perdiem)
K4LIB = $(KRB4)/lib/libkrb.a
KLIB = $(TOPLIBD)/libkrb5.a $(TOPLIBD)/libcrypto.a $(ISODELIB) $(COMERRLIB)
+LOGINLIBS = @LOGINLIBS@
LIBOBJS=@LIBOBJS@
SRCS= krcp.c krlogin.c krsh.c kcmd.c forward.c logutil.c $(SETENVSRC) \
$(INSTALL_PROGRAM) krlogind $(DESTDIR)$(SERVER_BINDIR)/krlogind
login.krb5: login.o logutil.o $(SETENVOBJ) $(LIBOBJS)
- $(CC) $(CFLAGS) -o login.krb5 login.o logutil.o $(SETENVOBJ) $(LIBOBJS) $(KLIB) $(LIBS)
+ $(CC) $(CFLAGS) -o login.krb5 login.o logutil.o $(SETENVOBJ) $(LIBOBJS) $(KLIB) $(LIBS) $(LOGINLIBS)
install::
$(INSTALL_PROGRAM) login.krb5 $(DESTDIR)$(SERVER_BINDIR)/login.krb5
dnl dbm libs for use of an_to_ln
AC_HAVE_LIBRARY(-lndbm)
AC_HAVE_LIBRARY(-ldbm)
+dnl
+dnl AIX has them all; SCO might too
+AC_HAVE_LIBRARY(-lodm,
+ AC_HAVE_LIBRARY(-ls,
+ AC_HAVE_LIBRARY(-lcfg,
+ LOGINLIBS="-lodm -ls -lcfg"
+ AC_SUBST(LOGINLIBS))))
+dnl
AC_VFORK
AC_FUNC_CHECK(strsave,AC_DEFINE(HAS_STRSAVE))
AC_FUNC_CHECK(utimes,AC_DEFINE(HAS_UTIMES))
[#include <signal.h>],
[sigset_t x],
AC_DEFINE(POSIX_SIGNALS)))
-AC_HAVE_HEADERS(sys/filio.h sys/sockio.h unistd.h sys/label.h ttyent.h sys/ptyvar.h lastlog.h)
+AC_HAVE_HEADERS(sys/filio.h sys/sockio.h unistd.h sys/label.h ttyent.h sys/ptyvar.h lastlog.h sys/select.h)
AC_REPLACE_FUNCS(getdtablesize)
CHECK_DIRENT
CHECK_FCNTL
#include <sys/socket.h>
#include <sys/file.h>
#include <sys/time.h>
+
+#ifdef HAVE_SYS_SELECT_H
+#include <sys/select.h>
+#endif
#ifdef NEED_SYS_FCNTL_H
#include <sys/fcntl.h>