Added support for autoconf

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@57 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Unknown User d91-jda
1995-07-19 23:47:00 +00:00
parent ce14b0db07
commit 518172f226
28 changed files with 111 additions and 35 deletions

View File

@@ -9,22 +9,32 @@ CC = @CC@
AR = ar
RANLIB = @RANLIB@
DEFS = @DEFS@
CFLAGS = @CFLAGS@
CFLAGS = @CFLAGS@ -I/usr/athena/include -I.. -I$(VPATH)/..
prefix = /usr/local
prefix = @prefix@
exec_prefix = $(prefix)
libdir = $(exec_prefix)/lib
#
# Everything happens in ../Makefile.config and Makefile.generic
#
SHELL=/bin/sh
LIBOBJS=@LIBOBJS@
all:
$(MAKE) -f $(VPATH)/../Config.local WHAT=${WHAT} CC="${CC}" VPATH=${VPATH} MAKE="${MAKE}"; \
SOURCES=auth.c encrypt.c genget.c \
misc.c kerberos.c kerberos5.c forward.c spx.c enc_des.c \
rsaencpwd.c krb4encpwd.c read_password.c \
setenv.c getent.c strdup.c strcasecmp.c \
strchr.c strrchr.c strftime.c strerror.c
.DEFAULT:
$(MAKE) -f $(VPATH)/../Config.local WHAT=${WHAT} CC="${CC}" VPATH=${VPATH} $@ MAKE="${MAKE}"; \
OBJECTS=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)
all: libtelnet.a
libtelnet.a: $(OBJECTS)
$(AR) cr libtelnet.a $(OBJECTS)
$(RANLIB) libtelnet.a
clean cleandir:
rm -f *.o *.a telnet telnetd core
rm -f *.o *.a \#* *~ core

View File

@@ -55,6 +55,7 @@ static char sccsid[] = "@(#)auth.c 8.3 (Berkeley) 5/30/95";
* or implied warranty.
*/
#include <config.h>
#if defined(AUTHENTICATION)
#include <stdio.h>

View File

@@ -39,6 +39,8 @@ static char sccsid[] = "@(#)enc_des.c 8.3 (Berkeley) 5/30/95";
static char orig_sccsid[] = "@(#)enc_des.c 5.1 (Berkeley) 3/22/91";
#endif /* not lint */
#include <config.h>
#if defined(AUTHENTICATION) && defined(ENCRYPTION) && defined(DES_ENCRYPTION)
#include <arpa/telnet.h>
#include <stdio.h>
@@ -114,10 +116,10 @@ struct keyidlist {
void fb64_stream_iv P((Block, struct stinfo *));
void fb64_init P((struct fb *));
int fb64_start P((struct fb *, int, int));
static int fb64_start P((struct fb *, int, int));
int fb64_is P((unsigned char *, int, struct fb *));
int fb64_reply P((unsigned char *, int, struct fb *));
void fb64_session P((Session_Key *, int, struct fb *));
static void fb64_session P((Session_Key *, int, struct fb *));
void fb64_stream_key P((Block, struct stinfo *));
int fb64_keyid P((int, unsigned char *, int *, struct fb *));

View File

@@ -60,6 +60,8 @@ static char orig_sccsid[] = "@(#)encrypt.c 5.2 (Berkeley) 3/22/91";
*/
#include <config.h>
#if defined(ENCRYPTION)
#define ENCRYPT_NAMES

View File

@@ -55,6 +55,8 @@ static char sccsid[] = "@(#)kerberos.c 8.3 (Berkeley) 5/30/95";
* or implied warranty.
*/
#include <config.h>
#ifdef KRB4
#include <sys/types.h>
#include <arpa/telnet.h>

View File

@@ -69,6 +69,7 @@ static char sccsid[] = "@(#)kerberos5.c 8.3 (Berkeley) 5/30/95";
* or implied warranty.
*/
#include <config.h>
#ifdef KRB5
#include <arpa/telnet.h>

View File

@@ -35,6 +35,7 @@
static char sccsid[] = "@(#)krb4encpwd.c 8.3 (Berkeley) 5/30/95";
#endif /* not lint */
#include <config.h>
#ifdef KRB4_ENCPWD
/*

View File

@@ -35,6 +35,8 @@
static char sccsid[] = "@(#)misc.c 8.1 (Berkeley) 6/4/93";
#endif /* not lint */
#include <config.h>
#include "misc.h"
char *RemoteHostName;

View File

@@ -50,6 +50,8 @@ static char sccsid[] = "@(#)read_password.c 8.3 (Berkeley) 5/30/95";
* echoing.
*/
#include <config.h>
#if defined(RSA_ENCPWD) || defined(KRB4_ENCPWD)
#include <stdio.h>

View File

@@ -35,6 +35,7 @@
static char sccsid[] = "@(#)rsaencpwd.c 8.3 (Berkeley) 5/30/95";
#endif /* not lint */
#include <config.h>
#ifdef RSA_ENCPWD
/*

View File

@@ -35,6 +35,8 @@
static char sccsid[] = "@(#)spx.c 8.2 (Berkeley) 5/30/95";
#endif /* not lint */
#include <config.h>
#ifdef SPX
/*
* COPYRIGHT (C) 1990 DIGITAL EQUIPMENT CORPORATION