+Sat Jul 23 08:25:48 1994 Tom Yu (tlyu@dragons-lair)
+
+ * configure.in: autoconf'ing telnet
+
Wed Jul 20 00:10:30 1994 Tom Yu (tlyu at dragons-lair)
* configure.in: autoconf'ing gss-sample
AC_INIT(configure.in)
WITH_CCOPTS
AC_SET_BUILDTOP
-CONFIG_DIRS(sample simple user_user bsd gss-sample)
+CONFIG_DIRS(sample simple user_user bsd gss-sample telnet)
MAKE_SUBDIRS("making",all)
MAKE_SUBDIRS("cleaning",clean)
MAKE_SUBDIRS("installing",install)
--- /dev/null
+Sat Jul 23 08:18:18 1994 Tom Yu (tlyu@dragons-lair)
+
+ * Makefile.in:
+ * configure.in: first cut at making telnet completely autoconf
+
-TELNET_OPSYS= @TELNET@
-
-all::
- cd libtelnet; make CC="${CC}" TELNET_OPSYS=$(TELNET_OPSYS)
- cd telnet; make CC="${CC}" TELNET_OPSYS=$(TELNET_OPSYS)
- cd telnetd; make CC="${CC}" TELNET_OPSYS=$(TELNET_OPSYS)
-
-clean::
- cd libtelnet; make CC="${CC}" TELNET_OPSYS=$(TELNET_OPSYS) clean
- cd telnet; make CC="${CC}" TELNET_OPSYS=$(TELNET_OPSYS) clean
- cd telnetd; make CC="${CC}" TELNET_OPSYS=$(TELNET_OPSYS) clean
-
-install::
- cd libtelnet; make CC="${CC}" DESTDIR=$(DESTDIR) \
- TELNET_OPSYS=$(TELNET_OPSYS) install
- cd telnet; make CC="${CC}" DESTDIR=$(DESTDIR) \
- TELNET_OPSYS=$(TELNET_OPSYS) install
- cd telnetd; make CC="${CC}" DESTDIR=$(DESTDIR) \
- TELNET_OPSYS=$(TELNET_OPSYS) install
-
-
+CFLAGS=@CCOPTS@
AC_INIT(configure.in)
AC_SET_BUILDTOP
CONFIG_DIRS(libtelnet telnet telnetd)
+MAKE_SUBDIRS("making",all)
+MAKE_SUBDIRS("cleaning",clean)
+MAKE_SUBDIRS("installing",install)
CONFIG_RULES
AC_OUTPUT(Makefile,[EXTRA_RULES])
-CFLAGS = $(CCOPTS) $(DEFS) $(LOCALINCLUDE)
-LDFLAGS = -g
-
-ISODELIB=@ISODELIB@
-COMERRLIB=$(BUILDTOP)/util/et/libcom_err.a
-DBMLIB=
-
-all::
+# derived from the original Makefile.generic
+#
+# Copyright (c) 1991 The Regents of the University of California.
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms are permitted provided
+# that: (1) source distributions retain this entire copyright notice and
+# comment, and (2) distributions including binaries display the following
+# acknowledgement: ``This product includes software developed by the
+# University of California, Berkeley and its contributors'' in the
+# documentation or other materials provided with the distribution and in
+# all advertising materials mentioning features or use of this software.
+# Neither the name of the University nor the names of its contributors may
+# be used to endorse or promote products derived from this software without
+# specific prior written permission.
+# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+#
+# @(#)Makefile.generic 5.5 (Berkeley) 3/1/91
+#
+AUTH_DEF=-DAUTHENTICATION -DKRB5 -DFORWARD -UNO_LOGIN_F -DLOGIN_CAP_F -DLOGIN_PROGRAM=KRB5_PATH_LOGIN
+LOCALINCLUDES=-I..
+CFLAGS = $(CCOPTS) $(AUTH_DEF) $(DEFS) $(LOCALINCLUDES)
+LIBOBJS=@LIBOBJS@
-KLIB = $(TOPLIBD)/libkrb5.a $(TOPLIBD)/libcrypto.a $(ISODELIB) $(COMERRLIB) $(DBMLIB)
+LIB= libtelnet.a
+SRCS= $(srcdir)/auth.c \
+ $(srcdir)/encrypt.c \
+ $(srcdir)/genget.c \
+ $(srcdir)/misc.c \
+ $(srcdir)/kerberos.c \
+ $(srcdir)/kerberos5.c \
+ $(srcdir)/forward.c \
+ $(srcdir)/spx.c \
+ $(srcdir)/enc_des.c \
+ $(srcdir)/rsaencpwd.c \
+ $(srcdir)/krb4encpwd.c \
+ $(srcdir)/read_password.c \
+ $(srcdir)/setenv.c \
+ $(srcdir)/getent.c \
+ $(srcdir)/strdup.c \
+ $(srcdir)/strcasecmp.c \
+ $(srcdir)/strchr.c \
+ $(srcdir)/strrchr.c \
+ $(srcdir)/strftime.c \
+ $(srcdir)/strerror.c
+OBJS= auth.o encrypt.o genget.o \
+ misc.o kerberos.o kerberos5.o forward.o spx.o enc_des.o \
+ rsaencpwd.o krb4encpwd.o read_password.o \
+ $(LIBOBJS)
-#
-# Everything happens in ../Makefile.config and Makefile.generic
-#
+TELNET_H= ../arpa/telnet.h
-all:
- @-if [ -f ../Config.local ]; \
- then \
- echo make -f ../Config.local WHAT="" CC="${CC}" \
- KLIB="$(KLIB)" DEPKLIB="$(DEPKLIB)"; \
- make -f ../Config.local WHAT="" CC="${CC}" \
- KLIB="$(KLIB)" DEPKLIB="$(DEPKLIB)"; \
- else \
- echo make -f ../Config.generic WHAT="" CC="${CC}" \
- KLIB="$(KLIB)" DEPKLIB="$(DEPKLIB)" $(TELNET_OPSYS); \
- make -f ../Config.generic WHAT="" CC="${CC}" \
- KLIB="$(KLIB)" DEPKLIB="$(DEPKLIB)" $(TELNET_OPSYS); \
- fi
+all:: $(LIB)
+$(LIB): $(OBJS)
+ $(RM) $(LIB)
+ $(ARADD) $@ `lorder ${OBJS} | tsort`
+ $(RANLIB) $@
-.DEFAULT:
- @-if [ -f ../Config.local ]; \
- then \
- echo make -f ../Config.local WHAT=$@ CC="${CC}" \
- DESTDIR=$(DESTDIR) DEST=$(DEST) $(TELNET_OPSYS); \
- make -f ../Config.local WHAT=$@ CC="${CC}" \
- DESTDIR=$(DESTDIR) DEST=$(DEST) $(TELNET_OPSYS); \
- else \
- echo make -f ../Config.generic WHAT=$@ CC="${CC}" \
- DESTDIR=$(DESTDIR) DEST=$(DEST) $(TELNET_OPSYS); \
- make -f ../Config.generic WHAT=$@ CC="${CC}" \
- DESTDIR=$(DESTDIR) DEST=$(DEST) $(TELNET_OPSYS); \
- fi
+clean::
+ $(RM) $(LIB)
+auth.o: $(TELNET_H)
+auth.o: encrypt.h
+auth.o: auth.h
+auth.o: misc-proto.h
+encrypt.o: $(TELNET_H)
+encrypt.o: encrypt.h
+encrypt.o: misc.h
+kerberos.o: $(TELNET_H)
+kerberos.o: encrypt.h
+kerberos.o: auth.h
+kerberos.o: misc.h
+kerberos5.o: $(TELNET_H)
+kerberos5.o: encrypt.h
+kerberos5.o: auth.h
+kerberos5.o: misc.h
+misc.o: misc.h
+enc_des.o: $(TELNET_H)
+enc_des.o: encrypt.h
+enc_des.o: key-proto.h
+enc_des.o: misc-proto.h
AC_INIT(auth.c)
WITH_CCOPTS
-AC_SET_BUILDTOP
+ISODE_DEFS
+ISODE_INCLUDE
CONFIG_RULES
+AC_SET_BUILDTOP
+AC_PROG_ARCHIVE
+AC_PROG_ARCHIVE_ADD
+AC_PROG_RANLIB
+AC_REPLACE_FUNCS([strcasecmp strdup setenv setsid strerror strftime getopt herror])
+AC_FUNC_CHECK(cgetent,AC_DEFINE(HAS_CGETENT))
+LIBOBJS="$LIBOBJS getent.o"
KRB_INCLUDE
ISODE_INCLUDE
AC_OUTPUT(Makefile,[EXTRA_RULES])
--- /dev/null
+# derived from the original Makefile.generic
+#
+# Copyright (c) 1991 The Regents of the University of California.
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms are permitted provided
+# that: (1) source distributions retain this entire copyright notice and
+# comment, and (2) distributions including binaries display the following
+# acknowledgement: ``This product includes software developed by the
+# University of California, Berkeley and its contributors'' in the
+# documentation or other materials provided with the distribution and in
+# all advertising materials mentioning features or use of this software.
+# Neither the name of the University nor the names of its contributors may
+# be used to endorse or promote products derived from this software without
+# specific prior written permission.
+# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+#
+# @(#)Makefile.generic 5.5 (Berkeley) 3/1/91
+#
+
+AUTH_DEF=-DAUTHENTICATION -DKRB5 -DFORWARD -UNO_LOGIN_F -DLOGIN_CAP_F -DLOGIN_PROGRAM=KRB5_PATH_LOGIN
+OTHERDEFS=-DLINEMODE -DKLUDGELINEMODE -DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON
+LOCALINCLUDES=-I..
+CFLAGS = $(CCOPTS) $(AUTH_DEF) $(OTHERDEFS) $(DEFS) $(LOCALINCLUDES)
+ARPA_TELNET= ../arpa/telnet.h
+COMERRLIB=$(BUILDTOP)/util/et/libcom_err.a
+K4LIB = $(KRB4)/lib/libkrb.a
+KLIB = $(TOPLIBD)/libkrb5.a $(TOPLIBD)/libcrypto.a $(ISODELIB) $(COMERRLIB)
+
+SRCS= commands.c main.c network.c ring.c \
+ sys_bsd.c telnet.c terminal.c \
+ utilities.c $(GETOPT_SRC)
+ALLHC= $(SRCS) \
+ defines.h externs.h fdset.h general.h \
+ ring.h types.h
+
+OBJS= authenc.o commands.o main.o network.o ring.o sys_bsd.o \
+ telnet.o terminal.o utilities.o $(GETOPT_OBJ)
+
+all:: telnet
+
+telnet: $(OBJS)
+ $(CC) -o $@ $(CFLAGS) $(OBJS) ../libtelnet/libtelnet.a $(KLIB) $(LIBS)
+
+clean::
+ $(RM) telnet
+
+install: $(MAN) FRC
+ install -s -o bin -g bin -m 755 telnet $(DEST)
+ install -c -o bin -g bin -m 444 telnet.0 $(DESTDIR)/usr/man/cat1
+
+authenc.o: defines.h externs.h general.h ring.h types.h $(ARPA_TELNET)
+commands.o: defines.h externs.h general.h ring.h types.h $(ARPA_TELNET)
+main.o: defines.h externs.h ring.h
+network.o: defines.h externs.h fdset.h ring.h $(ARPA_TELNET)
+ring.o: general.h ring.h
+sys_bsd.o: defines.h externs.h fdset.h ring.h types.h $(ARPA_TELNET)
+telnet.o: defines.h externs.h general.h ring.h types.h $(ARPA_TELNET)
+terminal.o: externs.h ring.h types.h $(ARPA_TELNET)
+tn3270.o: defines.h externs.h fdset.h general.h ring.h $(ARPA_TELNET)
+utilities.o: defines.h externs.h fdset.h general.h ring.h $(ARPA_TELNET)
--- /dev/null
+AC_INIT(telnet.c)
+WITH_CCOPTS
+ISODE_DEFS
+ISODE_INCLUDE
+CONFIG_RULES
+AC_SET_BUILDTOP
+AC_PROG_INSTALL
+KRB_INCLUDE
+ISODE_INCLUDE
+AC_HAVE_LIBRARY(termcap,AC_DEFINE(TERMCAP)
+LIBS="$LIBS -ltermcap")
+AC_HEADER_CHECK(termios.h,AC_DEFINE(USE_TERMIO) ac_termio=1)
+if test -z "$ac_termio"; then
+AC_HEADER_CHECK(termio.h,AC_DEFINE(SYSV_TERMIO),ac_sysv_termio=1)
+if test -z "$ac_sysv_termio"; then
+AC_COMPILE_CHECK([cc_t],[#include <termio.h>],
+[cc_t foo;],,AC_DEFINE(NO_CC_T))
+fi
+fi
+AC_FUNC_CHECK(gettosbyname,AC_DEFINE(HAS_GETTOS))
+AC_HEADER_CHECK(sys/filio.h,AC_DEFINE(FILIO_H))
+AC_HEADER_CHECK(sys/stream.h,AC_DEFINE(STREAMS))
+AC_FUNC_CHECK(cgetent,AC_DEFINE(HAS_CGETENT))
+AC_OUTPUT(Makefile,[EXTRA_RULES])
--- /dev/null
+# derived from the original Makefile.generic
+#
+# Copyright (c) 1991 The Regents of the University of California.
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms are permitted provided
+# that: (1) source distributions retain this entire copyright notice and
+# comment, and (2) distributions including binaries display the following
+# acknowledgement: ``This product includes software developed by the
+# University of California, Berkeley and its contributors'' in the
+# documentation or other materials provided with the distribution and in
+# all advertising materials mentioning features or use of this software.
+# Neither the name of the University nor the names of its contributors may
+# be used to endorse or promote products derived from this software without
+# specific prior written permission.
+# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+#
+# @(#)Makefile.generic 5.5 (Berkeley) 3/1/91
+#
+
+AUTH_DEF=-DAUTHENTICATION -DKRB5 -DFORWARD -UNO_LOGIN_F -DLOGIN_CAP_F -DLOGIN_PROGRAM=KRB5_PATH_LOGIN
+OTHERDEFS=-DKLUDGELINEMODE -DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON
+LOCALINCLUDES=-I..
+CFLAGS = $(CCOPTS) $(AUTH_DEF) $(OTHERDEFS) $(DEFS) $(LOCALINCLUDES)
+ARPA_TELNET= ../arpa/telnet.h
+COMERRLIB=$(BUILDTOP)/util/et/libcom_err.a
+K4LIB = $(KRB4)/lib/libkrb.a
+KLIB = $(TOPLIBD)/libkrb5.a $(TOPLIBD)/libcrypto.a $(ISODELIB) $(COMERRLIB)
+
+SRCS= $(srcdir)/telnetd.c \
+ $(srcdir)/state.c \
+ $(srcdir)/termstat.c \
+ $(srcdir)/slc.c \
+ $(srcdir)/sys_term.c \
+ $(srcdir)/utility.c \
+ $(srcdir)/global.c \
+ $(srcdir)/authenc.c \
+ $(GETTYSRC)
+OBJS= telnetd.o \
+ state.o \
+ termstat.o \
+ slc.o \
+ sys_term.o \
+ utility.o \
+ global.o \
+ authenc.o \
+ $(GETTYOBJ)
+
+all:: telnetd
+
+telnetd: $(OBJS)
+ $(CC) -o $@ $(CFLAGS) $(OBJS) ../libtelnet/libtelnet.a $(KLIB) $(LIBS)
+
+clean::
+ $(RM) telnetd
+
+authenc.o: telnetd.h
+global.o: defs.h ext.h $(ARPA_TELNET)
+slc.o: telnetd.h defs.h ext.h $(ARPA_TELNET)
+state.o: telnetd.h defs.h ext.h $(ARPA_TELNET)
+sys_term.o: telnetd.h pathnames.h defs.h ext.h $(ARPA_TELNET)
+telnetd.o: telnetd.h defs.h ext.h $(ARPA_TELNET)
+termstat.o: telnetd.h defs.h ext.h $(ARPA_TELNET)
+utility.o: telnetd.h defs.h ext.h $(ARPA_TELNET)
--- /dev/null
+AC_INIT(telnetd.c)
+WITH_CCOPTS
+ISODE_DEFS
+ISODE_INCLUDE
+CONFIG_RULES
+AC_SET_BUILDTOP
+AC_PROG_INSTALL
+KRB_INCLUDE
+ISODE_INCLUDE
+AC_HAVE_LIBRARY(termcap,AC_DEFINE(TERMCAP)
+LIBS="$LIBS -ltermcap")
+AC_HEADER_CHECK(termios.h,AC_DEFINE(USE_TERMIO) ac_termio=1)
+if test -z "$ac_termio"; then
+AC_HEADER_CHECK(termio.h,AC_DEFINE(SYSV_TERMIO),ac_sysv_termio=1)
+if test -z "$ac_sysv_termio"; then
+AC_COMPILE_CHECK([cc_t],[#include <termio.h>],
+[cc_t foo;],,AC_DEFINE(NO_CC_T))
+fi
+fi
+AC_FUNC_CHECK(gettosbyname,AC_DEFINE(HAS_GETTOS))
+AC_HEADER_CHECK(sys/filio.h,AC_DEFINE(FILIO_H))
+AC_HEADER_CHECK(sys/stream.h,AC_DEFINE(STREAMS))
+AC_FUNC_CHECK(cgetent,AC_DEFINE(HAS_CGETENT))
+AC_OUTPUT(Makefile,[EXTRA_RULES])