Removed configure from subdirectories.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@607 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1,5 +1,3 @@
|
|||||||
#
|
|
||||||
|
|
||||||
srcdir = @srcdir@
|
srcdir = @srcdir@
|
||||||
top_srcdir = @top_srcdir@
|
top_srcdir = @top_srcdir@
|
||||||
VPATH = @srcdir@
|
VPATH = @srcdir@
|
||||||
|
@@ -1,15 +0,0 @@
|
|||||||
/*
|
|
||||||
* $Id$
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "../../config.h"
|
|
||||||
|
|
||||||
@TOP@
|
|
||||||
|
|
||||||
@BOTTOM@
|
|
||||||
|
|
||||||
#ifndef WTMP_PATH
|
|
||||||
#define WTMP_PATH "/var/adm/wtmp"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define KERBEROS
|
|
3
appl/ftp/aclocal.m4
vendored
3
appl/ftp/aclocal.m4
vendored
@@ -1,3 +0,0 @@
|
|||||||
dnl use the aclocal.m4 from the top directory
|
|
||||||
|
|
||||||
builtin(include,../../aclocal.m4)
|
|
@@ -22,7 +22,7 @@ libcommon_OBJS = base64.o glob.o
|
|||||||
all: libcommon.a
|
all: libcommon.a
|
||||||
|
|
||||||
.c.o:
|
.c.o:
|
||||||
$(CC) -c $(CFLAGS) -I$(srcdir) -I../../../include -I.. $(DEFS) $<
|
$(CC) -c $(CFLAGS) -I$(srcdir) -I../../../include -I../../.. $(DEFS) $<
|
||||||
|
|
||||||
libcommon.a: $(libcommon_OBJS)
|
libcommon.a: $(libcommon_OBJS)
|
||||||
ar cr libcommon.a $(libcommon_OBJS)
|
ar cr libcommon.a $(libcommon_OBJS)
|
||||||
|
@@ -1,49 +0,0 @@
|
|||||||
/* config.h.in. Generated automatically from configure.in by autoheader. */
|
|
||||||
/*
|
|
||||||
* $Id$
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "../../config.h"
|
|
||||||
|
|
||||||
|
|
||||||
/* Define if you have a working `mmap' system call. */
|
|
||||||
#undef HAVE_MMAP
|
|
||||||
|
|
||||||
/* Define if you have the gethostbyname function. */
|
|
||||||
#undef HAVE_GETHOSTBYNAME
|
|
||||||
|
|
||||||
/* Define if you have the getpagesize function. */
|
|
||||||
#undef HAVE_GETPAGESIZE
|
|
||||||
|
|
||||||
/* Define if you have the setproctitle function. */
|
|
||||||
#undef HAVE_SETPROCTITLE
|
|
||||||
|
|
||||||
/* Define if you have the socket function. */
|
|
||||||
#undef HAVE_SOCKET
|
|
||||||
|
|
||||||
/* Define if you have the valloc function. */
|
|
||||||
#undef HAVE_VALLOC
|
|
||||||
|
|
||||||
/* Define if you have the <bsd/bsd.h> header file. */
|
|
||||||
#undef HAVE_BSD_BSD_H
|
|
||||||
|
|
||||||
/* Define if you have the <paths.h> header file. */
|
|
||||||
#undef HAVE_PATHS_H
|
|
||||||
|
|
||||||
/* Define if you have the <sys/mman.h> header file. */
|
|
||||||
#undef HAVE_SYS_MMAN_H
|
|
||||||
|
|
||||||
/* Define if you have the <sys/select.h> header file. */
|
|
||||||
#undef HAVE_SYS_SELECT_H
|
|
||||||
|
|
||||||
/* Define if you have the nsl library (-lnsl). */
|
|
||||||
#undef HAVE_LIBNSL
|
|
||||||
|
|
||||||
/* Define if you have the socket library (-lsocket). */
|
|
||||||
#undef HAVE_LIBSOCKET
|
|
||||||
|
|
||||||
#ifndef WTMP_PATH
|
|
||||||
#define WTMP_PATH "/var/adm/wtmp"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define KERBEROS
|
|
1579
appl/ftp/configure
vendored
1579
appl/ftp/configure
vendored
File diff suppressed because it is too large
Load Diff
@@ -1,41 +0,0 @@
|
|||||||
#
|
|
||||||
# configure script for kftp
|
|
||||||
#
|
|
||||||
# $Id$
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
AC_INIT(ftp/main.c)
|
|
||||||
AC_CONFIG_HEADER(config.h)
|
|
||||||
|
|
||||||
# This may be overridden using --prefix=/usr to configure
|
|
||||||
AC_PREFIX_DEFAULT(/usr/athena)
|
|
||||||
|
|
||||||
AC_PROG_CC
|
|
||||||
AC_PROG_RANLIB
|
|
||||||
AC_PROG_CPP
|
|
||||||
AC_PROG_YACC
|
|
||||||
|
|
||||||
AC_PROG_INSTALL
|
|
||||||
|
|
||||||
AC_C_CROSS
|
|
||||||
|
|
||||||
AC_CACHE_VAL(krb_cv_ld_flags,
|
|
||||||
krb_cv_ld_flags="") dnl
|
|
||||||
LD_FLAGS="$krb_cv_ld_flags"
|
|
||||||
AC_SUBST(CFLAGS) dnl
|
|
||||||
AC_SUBST(LDFLAGS) dnl
|
|
||||||
AC_SUBST(LD_FLAGS) dnl
|
|
||||||
|
|
||||||
AC_TEST_SKEY
|
|
||||||
|
|
||||||
AC_CHECK_HEADERS(sys/select.h paths.h bsd/bsd.h sys/mman.h)
|
|
||||||
|
|
||||||
AC_FIND_FUNC(socket, socket)
|
|
||||||
AC_FIND_FUNC(gethostbyname, nsl)
|
|
||||||
|
|
||||||
AC_FUNC_MMAP
|
|
||||||
|
|
||||||
AC_CHECK_FUNCS(setproctitle)
|
|
||||||
|
|
||||||
AC_OUTPUT(Makefile common/Makefile ftp/Makefile ftpd/Makefile)
|
|
@@ -14,7 +14,7 @@ DEFS = @DEFS@
|
|||||||
CFLAGS = @CFLAGS@
|
CFLAGS = @CFLAGS@
|
||||||
LD_FLAGS = @LD_FLAGS@
|
LD_FLAGS = @LD_FLAGS@
|
||||||
LIBS = @LIBS@
|
LIBS = @LIBS@
|
||||||
MKDIRHIER = @top_srcdir@/../../mkdirhier-sh
|
MKDIRHIER = $(top_srcdir)/mkdirhier-sh
|
||||||
|
|
||||||
INSTALL = @INSTALL@
|
INSTALL = @INSTALL@
|
||||||
|
|
||||||
@@ -35,7 +35,7 @@ ftp_OBJS = cmds.o cmdtab.o ftp.o krb4.o main.o ruserpass.o domacro.o globals.o k
|
|||||||
all: ftp
|
all: ftp
|
||||||
|
|
||||||
.c.o:
|
.c.o:
|
||||||
$(CC) -c $(CFLAGS) -I$(srcdir) -I.. -I$(srcdir)/../common -I$(INCTOP) $(DEFS) $<
|
$(CC) -c $(CFLAGS) -I$(srcdir) -I../../.. -I$(srcdir)/../common -I$(INCTOP) $(DEFS) $<
|
||||||
|
|
||||||
install: all
|
install: all
|
||||||
$(MKDIRHIER) $(prefix)/bin
|
$(MKDIRHIER) $(prefix)/bin
|
||||||
|
@@ -16,7 +16,7 @@ CFLAGS = @CFLAGS@ @SKEYINCLUDE@
|
|||||||
LD_FLAGS = @LD_FLAGS@
|
LD_FLAGS = @LD_FLAGS@
|
||||||
LIBS = @LIBS@
|
LIBS = @LIBS@
|
||||||
SKEYLIB = @SKEYLIB@
|
SKEYLIB = @SKEYLIB@
|
||||||
MKDIRHIER = @top_srcdir@/../../mkdirhier-sh
|
MKDIRHIER = $(top_srcdir)/mkdirhier-sh
|
||||||
|
|
||||||
INSTALL = @INSTALL@
|
INSTALL = @INSTALL@
|
||||||
|
|
||||||
@@ -42,7 +42,7 @@ ftpd_OBJS = ftpd.o ftpcmd.o logwtmp.o popen.o auth.o krb4.o kauth.o klogin.o
|
|||||||
all: ftpd
|
all: ftpd
|
||||||
|
|
||||||
.c.o:
|
.c.o:
|
||||||
$(CC) -c $(CFLAGS) -I$(srcdir) -I.. -I$(srcdir)/../common -I$(INCTOP) $(DEFS) $<
|
$(CC) -c $(CFLAGS) -I$(srcdir) -I../../.. -I$(srcdir)/../common -I$(INCTOP) $(DEFS) $<
|
||||||
|
|
||||||
install: all
|
install: all
|
||||||
$(MKDIRHIER) $(prefix)/libexec
|
$(MKDIRHIER) $(prefix)/libexec
|
||||||
|
@@ -1,81 +0,0 @@
|
|||||||
|
|
||||||
/*
|
|
||||||
* configuration file for telnet
|
|
||||||
*
|
|
||||||
* $Id$
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef T_CONFIG_H
|
|
||||||
#define T_CONFIG_H
|
|
||||||
|
|
||||||
#include "../../config.h"
|
|
||||||
|
|
||||||
@TOP@
|
|
||||||
|
|
||||||
/* define this if you want authentication */
|
|
||||||
#undef AUTHENTICATION
|
|
||||||
|
|
||||||
/* define this if you have kerberos 4 */
|
|
||||||
#undef KRB4
|
|
||||||
|
|
||||||
/* define this if you want encryption */
|
|
||||||
#undef ENCRYPTION
|
|
||||||
|
|
||||||
/* Set this if you want des encryption */
|
|
||||||
#undef DES_ENCRYPTION
|
|
||||||
|
|
||||||
/* Set this to the default system lead string for telnetd
|
|
||||||
* can contain %-escapes: %s=sysname, %m=machine, %r=os-release
|
|
||||||
* %v=os-version, %t=tty, %h=hostname, %d=date and time
|
|
||||||
*/
|
|
||||||
#undef USE_IM
|
|
||||||
|
|
||||||
/* define this if you want diagnostics in telnetd */
|
|
||||||
#undef DIAGNOSTICS
|
|
||||||
|
|
||||||
/* define this if you want support for broken ENV_{VALUE,VAR} systems */
|
|
||||||
#undef ENV_HACK
|
|
||||||
|
|
||||||
/* define this if you want support for line mode in telnetd */
|
|
||||||
#undef LINEMODE
|
|
||||||
|
|
||||||
/* define this if you want support for 4.3BSD kludged line mode */
|
|
||||||
#undef KLUDGELINEMODE
|
|
||||||
|
|
||||||
/* */
|
|
||||||
#undef OLD_ENVIRON
|
|
||||||
|
|
||||||
/* Define if login doesn't understand -f */
|
|
||||||
#undef NO_LOGIN_F
|
|
||||||
|
|
||||||
/* Define if login does understand -r */
|
|
||||||
#undef LOGIN_R
|
|
||||||
|
|
||||||
/* Define if login doesn't understand -h */
|
|
||||||
/* */
|
|
||||||
#undef NO_LOGIN_H
|
|
||||||
|
|
||||||
/* Define if login doesn't understand -p */
|
|
||||||
#undef NO_LOGIN_P
|
|
||||||
|
|
||||||
/* Used with login -p */
|
|
||||||
#undef LOGIN_ARGS
|
|
||||||
|
|
||||||
/* Define if you have setupterm() */
|
|
||||||
#undef HAVE_SETUPTERM
|
|
||||||
|
|
||||||
/* Define if you have tgetent() */
|
|
||||||
#undef HAVE_TGETENT
|
|
||||||
|
|
||||||
/* Define if there are working stream ptys */
|
|
||||||
#undef STREAMSPTY
|
|
||||||
|
|
||||||
@BOTTOM@
|
|
||||||
|
|
||||||
/* set this to a sensible login */
|
|
||||||
#ifndef LOGIN_PATH
|
|
||||||
#define LOGIN_PATH BINDIR "/login"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* T_CONFIG_H */
|
|
3
appl/telnet/aclocal.m4
vendored
3
appl/telnet/aclocal.m4
vendored
@@ -1,3 +0,0 @@
|
|||||||
dnl use the aclocal.m4 from the top directory
|
|
||||||
|
|
||||||
builtin(include,../../aclocal.m4)
|
|
@@ -1,168 +0,0 @@
|
|||||||
/* config.h.in. Generated automatically from configure.in by autoheader. */
|
|
||||||
|
|
||||||
/*
|
|
||||||
* configuration file for telnet
|
|
||||||
*
|
|
||||||
* $Id$
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef T_CONFIG_H
|
|
||||||
#define T_CONFIG_H
|
|
||||||
|
|
||||||
#include "../../config.h"
|
|
||||||
|
|
||||||
|
|
||||||
/* Define as the return type of signal handlers (int or void). */
|
|
||||||
#undef RETSIGTYPE
|
|
||||||
|
|
||||||
/* define this if you want authentication */
|
|
||||||
#undef AUTHENTICATION
|
|
||||||
|
|
||||||
/* define this if you have kerberos 4 */
|
|
||||||
#undef KRB4
|
|
||||||
|
|
||||||
/* define this if you want encryption */
|
|
||||||
#undef ENCRYPTION
|
|
||||||
|
|
||||||
/* Set this if you want des encryption */
|
|
||||||
#undef DES_ENCRYPTION
|
|
||||||
|
|
||||||
/* Set this to the default system lead string for telnetd
|
|
||||||
* can contain %-escapes: %s=sysname, %m=machine, %r=os-release
|
|
||||||
* %v=os-version, %t=tty, %h=hostname, %d=date and time
|
|
||||||
*/
|
|
||||||
#undef USE_IM
|
|
||||||
|
|
||||||
/* define this if you want diagnostics in telnetd */
|
|
||||||
#undef DIAGNOSTICS
|
|
||||||
|
|
||||||
/* define this if you want support for 4.3BSD kludged line mode */
|
|
||||||
#undef KLUDGELINEMODE
|
|
||||||
|
|
||||||
/* */
|
|
||||||
#undef OLD_ENVIRON
|
|
||||||
|
|
||||||
/* Define if there are working stream ptys */
|
|
||||||
#undef STREAMSPTY
|
|
||||||
|
|
||||||
/* Define if you have the cgetent function. */
|
|
||||||
#undef HAVE_CGETENT
|
|
||||||
|
|
||||||
/* Define if you have the cgetstr function. */
|
|
||||||
#undef HAVE_CGETSTR
|
|
||||||
|
|
||||||
/* Define if you have the frevoke function. */
|
|
||||||
#undef HAVE_FREVOKE
|
|
||||||
|
|
||||||
/* Define if you have the gethostbyname function. */
|
|
||||||
#undef HAVE_GETHOSTBYNAME
|
|
||||||
|
|
||||||
/* Define if you have the getmsg function. */
|
|
||||||
#undef HAVE_GETMSG
|
|
||||||
|
|
||||||
/* Define if you have the getstr function. */
|
|
||||||
#undef HAVE_GETSTR
|
|
||||||
|
|
||||||
/* Define if you have the grantpt function. */
|
|
||||||
#undef HAVE_GRANTPT
|
|
||||||
|
|
||||||
/* Define if you have the logout function. */
|
|
||||||
#undef HAVE_LOGOUT
|
|
||||||
|
|
||||||
/* Define if you have the logwtmp function. */
|
|
||||||
#undef HAVE_LOGWTMP
|
|
||||||
|
|
||||||
/* Define if you have the ptsname function. */
|
|
||||||
#undef HAVE_PTSNAME
|
|
||||||
|
|
||||||
/* Define if you have the revoke function. */
|
|
||||||
#undef HAVE_REVOKE
|
|
||||||
|
|
||||||
/* Define if you have the setpgid function. */
|
|
||||||
#undef HAVE_SETPGID
|
|
||||||
|
|
||||||
/* Define if you have the setsid function. */
|
|
||||||
#undef HAVE_SETSID
|
|
||||||
|
|
||||||
/* Define if you have the setupterm function. */
|
|
||||||
#undef HAVE_SETUPTERM
|
|
||||||
|
|
||||||
/* Define if you have the socket function. */
|
|
||||||
#undef HAVE_SOCKET
|
|
||||||
|
|
||||||
/* Define if you have the tgetent function. */
|
|
||||||
#undef HAVE_TGETENT
|
|
||||||
|
|
||||||
/* Define if you have the ttyname function. */
|
|
||||||
#undef HAVE_TTYNAME
|
|
||||||
|
|
||||||
/* Define if you have the uname function. */
|
|
||||||
#undef HAVE_UNAME
|
|
||||||
|
|
||||||
/* Define if you have the unlockpt function. */
|
|
||||||
#undef HAVE_UNLOCKPT
|
|
||||||
|
|
||||||
/* Define if you have the vhangup function. */
|
|
||||||
#undef HAVE_VHANGUP
|
|
||||||
|
|
||||||
/* Define if you have the <sys/filio.h> header file. */
|
|
||||||
#undef HAVE_SYS_FILIO_H
|
|
||||||
|
|
||||||
/* Define if you have the <sys/ioctl.h> header file. */
|
|
||||||
#undef HAVE_SYS_IOCTL_H
|
|
||||||
|
|
||||||
/* Define if you have the <sys/ptyvar.h> header file. */
|
|
||||||
#undef HAVE_SYS_PTYVAR_H
|
|
||||||
|
|
||||||
/* Define if you have the <sys/resource.h> header file. */
|
|
||||||
#undef HAVE_SYS_RESOURCE_H
|
|
||||||
|
|
||||||
/* Define if you have the <sys/select.h> header file. */
|
|
||||||
#undef HAVE_SYS_SELECT_H
|
|
||||||
|
|
||||||
/* Define if you have the <sys/str_tty.h> header file. */
|
|
||||||
#undef HAVE_SYS_STR_TTY_H
|
|
||||||
|
|
||||||
/* Define if you have the <sys/stream.h> header file. */
|
|
||||||
#undef HAVE_SYS_STREAM_H
|
|
||||||
|
|
||||||
/* Define if you have the <sys/strtty.h> header file. */
|
|
||||||
#undef HAVE_SYS_STRTTY_H
|
|
||||||
|
|
||||||
/* Define if you have the <sys/tty.h> header file. */
|
|
||||||
#undef HAVE_SYS_TTY_H
|
|
||||||
|
|
||||||
/* Define if you have the <sys/uio.h> header file. */
|
|
||||||
#undef HAVE_SYS_UIO_H
|
|
||||||
|
|
||||||
/* Define if you have the <termio.h> header file. */
|
|
||||||
#undef HAVE_TERMIO_H
|
|
||||||
|
|
||||||
/* Define if you have the <termios.h> header file. */
|
|
||||||
#undef HAVE_TERMIOS_H
|
|
||||||
|
|
||||||
/* Define if you have the <utmpx.h> header file. */
|
|
||||||
#undef HAVE_UTMPX_H
|
|
||||||
|
|
||||||
/* Define if you have the curses library (-lcurses). */
|
|
||||||
#undef HAVE_LIBCURSES
|
|
||||||
|
|
||||||
/* Define if you have the nsl library (-lnsl). */
|
|
||||||
#undef HAVE_LIBNSL
|
|
||||||
|
|
||||||
/* Define if you have the socket library (-lsocket). */
|
|
||||||
#undef HAVE_LIBSOCKET
|
|
||||||
|
|
||||||
/* Define if you have the termcap library (-ltermcap). */
|
|
||||||
#undef HAVE_LIBTERMCAP
|
|
||||||
|
|
||||||
/* Define if you have the util library (-lutil). */
|
|
||||||
#undef HAVE_LIBUTIL
|
|
||||||
|
|
||||||
/* set this to a sensible login */
|
|
||||||
#ifndef LOGIN_PATH
|
|
||||||
#define LOGIN_PATH BINDIR "/login"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* T_CONFIG_H */
|
|
2224
appl/telnet/configure
vendored
2224
appl/telnet/configure
vendored
File diff suppressed because it is too large
Load Diff
@@ -1,291 +0,0 @@
|
|||||||
#
|
|
||||||
# configure script for telnet
|
|
||||||
#
|
|
||||||
# $Id$
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
AC_INIT(telnet/telnet.c)
|
|
||||||
AC_CONFIG_HEADER(config.h)
|
|
||||||
|
|
||||||
# This may be overridden using --prefix=/usr to configure
|
|
||||||
AC_PREFIX_DEFAULT(/usr/athena)
|
|
||||||
|
|
||||||
# We want these before the checks, so the checks can modify their values.
|
|
||||||
test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
|
|
||||||
test -z "$LDFLAGS" && LDFLAGS=-g
|
|
||||||
|
|
||||||
AC_PROG_CC
|
|
||||||
AC_PROG_RANLIB
|
|
||||||
AC_PROG_CPP
|
|
||||||
|
|
||||||
# If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS.
|
|
||||||
test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O"
|
|
||||||
|
|
||||||
AC_CACHE_VAL(krb_cv_ld_flags,
|
|
||||||
krb_cv_ld_flags="") dnl
|
|
||||||
LD_FLAGS=${krb_cv_ld_flags}
|
|
||||||
AC_SUBST(CFLAGS) dnl
|
|
||||||
AC_SUBST(LDFLAGS) dnl
|
|
||||||
AC_SUBST(LD_FLAGS) dnl
|
|
||||||
|
|
||||||
AC_PROG_INSTALL
|
|
||||||
|
|
||||||
AC_TYPE_SIGNAL
|
|
||||||
|
|
||||||
dnl
|
|
||||||
dnl NEXTSTEP is not posix compliant by default,
|
|
||||||
dnl you need a switch -posix to the compiler
|
|
||||||
dnl
|
|
||||||
AC_MSG_CHECKING(for NEXTSTEP)
|
|
||||||
AC_CACHE_VAL(krb_cv_sys_nextstep,
|
|
||||||
AC_EGREP_CPP(yes,
|
|
||||||
[#ifdef NeXT
|
|
||||||
yes
|
|
||||||
#endif
|
|
||||||
], krb_cv_sys_nextstep=yes, krb_cv_sys_nextstep=no) )
|
|
||||||
test $krb_cv_sys_nextstep = "yes" && CFLAGS="$CFLAGS -posix"
|
|
||||||
test $krb_cv_sys_nextstep = "yes" && LIBS="$LIBS -posix"
|
|
||||||
AC_MSG_RESULT($krb_cv_sys_nextstep)
|
|
||||||
|
|
||||||
#
|
|
||||||
# authentication
|
|
||||||
#
|
|
||||||
|
|
||||||
AC_MSG_CHECKING(for authentication)
|
|
||||||
|
|
||||||
AC_ARG_ENABLE(authentication, [ --enable-authentication configure with authentication],
|
|
||||||
[
|
|
||||||
if test "$enableval" = no; then
|
|
||||||
do_authentication=no
|
|
||||||
else
|
|
||||||
do_authentication=yes
|
|
||||||
fi
|
|
||||||
unset telnet_cv_opt_authentication
|
|
||||||
],[
|
|
||||||
do_authentication=yes
|
|
||||||
])
|
|
||||||
|
|
||||||
AC_CACHE_VAL(telnet_cv_opt_authentication,
|
|
||||||
telnet_cv_opt_authentication=$do_authentication)
|
|
||||||
|
|
||||||
if test "$telnet_cv_opt_authentication" != no; then
|
|
||||||
AC_DEFINE(AUTHENTICATION)
|
|
||||||
AC_DEFINE(KRB4)
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_MSG_RESULT($telnet_cv_opt_authentication)
|
|
||||||
|
|
||||||
AC_SUBST(AUTHENTICATION)
|
|
||||||
AC_SUBST(KRB4)
|
|
||||||
|
|
||||||
#
|
|
||||||
# encryption
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
AC_MSG_CHECKING(for encryption)
|
|
||||||
|
|
||||||
AC_ARG_ENABLE(encryption, [ --enable-encryption configure with encryption],
|
|
||||||
[
|
|
||||||
if test "$enableval" = no; then
|
|
||||||
do_encryption=no
|
|
||||||
else
|
|
||||||
do_encryption=yes
|
|
||||||
fi
|
|
||||||
unset telnet_cv_opt_encryption
|
|
||||||
],[
|
|
||||||
do_encryption=$telnet_cv_opt_authentication
|
|
||||||
])
|
|
||||||
|
|
||||||
AC_CACHE_VAL(telnet_cv_opt_encryption,
|
|
||||||
telnet_cv_opt_encryption=$do_encryption)
|
|
||||||
|
|
||||||
if test "$telnet_cv_opt_encryption" != no; then
|
|
||||||
AC_DEFINE(ENCRYPTION)
|
|
||||||
AC_DEFINE(DES_ENCRYPTION)
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_MSG_RESULT($telnet_cv_opt_encryption)
|
|
||||||
|
|
||||||
AC_SUBST(ENCRYPTION)
|
|
||||||
AC_SUBST(DES_ENCRYPTION)
|
|
||||||
|
|
||||||
|
|
||||||
#
|
|
||||||
# locate kerberos libraries
|
|
||||||
#
|
|
||||||
|
|
||||||
AC_MSG_CHECKING([for kerberos tree])
|
|
||||||
telnet_athena_default=yes
|
|
||||||
AC_ARG_WITH(athena,
|
|
||||||
[ --with-athena=path location of athena tree],
|
|
||||||
[
|
|
||||||
case "$withval" in
|
|
||||||
yes)
|
|
||||||
telnet_athena_default="/usr/athena"
|
|
||||||
;;
|
|
||||||
no)
|
|
||||||
telnet_athena_default="no"
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
telnet_athena_default="$withval"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
])
|
|
||||||
|
|
||||||
if test "$telnet_athena_default" = yes; then
|
|
||||||
|
|
||||||
libtop='../../..'
|
|
||||||
KRBLIBPATH=""
|
|
||||||
LIBKRB='-L$(libtop)/lib/krb -lkrb'
|
|
||||||
LIBDES='-L$(libtop)/lib/des -ldes'
|
|
||||||
LIBKAFS='-L$(libtop)/lib/kafs -lkafs'
|
|
||||||
LIBROKEN='-L$(libtop)/lib/roken -lroken'
|
|
||||||
KRBINCPATH='-I$(libtop)/include -I$(srcdir)/$(libtop)/include'
|
|
||||||
telnet_msg="default"
|
|
||||||
|
|
||||||
elif test "$telnet_athena_default" = no; then
|
|
||||||
|
|
||||||
if test "$telnet_cv_opt_encryption" = yes -o "$telnet_cv_opt_authentication" = yes; then
|
|
||||||
|
|
||||||
AC_MSG_ERROR([Kerberos libraries are needed for authentication and encryption])
|
|
||||||
|
|
||||||
fi
|
|
||||||
|
|
||||||
else
|
|
||||||
|
|
||||||
libtop="$telnet_athena_default"
|
|
||||||
KRBLIBPATH='-L$(libtop)/lib'
|
|
||||||
LIBKRB="-lkrb"
|
|
||||||
LIBDES="-ldes"
|
|
||||||
LIBKAFS="-lkafs"
|
|
||||||
LIBROKEN="-lroken"
|
|
||||||
KRBINCPATH='-I$(libtop)/include'
|
|
||||||
telnet_msg="$telnet_athena_default"
|
|
||||||
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_SUBST(libtop)
|
|
||||||
AC_SUBST(KRBINCPATH)
|
|
||||||
AC_SUBST(KRBLIBPATH)
|
|
||||||
AC_SUBST(LIBKRB)
|
|
||||||
AC_SUBST(LIBDES)
|
|
||||||
AC_SUBST(LIBKAFS)
|
|
||||||
AC_SUBST(LIBROKEN)
|
|
||||||
|
|
||||||
AC_MSG_RESULT($telnet_msg)
|
|
||||||
|
|
||||||
#
|
|
||||||
# default im
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
AC_MSG_CHECKING(for default im)
|
|
||||||
|
|
||||||
AC_ARG_ENABLE(default-im, [ --enable-default-im[=ARG] default initial banner], [
|
|
||||||
|
|
||||||
if test "$enableval" != yes; then
|
|
||||||
default_im=$enableval
|
|
||||||
else
|
|
||||||
os_ver=`uname -s`
|
|
||||||
case $os_ver in
|
|
||||||
AIX)
|
|
||||||
os_rel=`uname -v`.`uname -r`
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
os_rel=`uname -r`
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
default_im="$os_ver $os_rel (%h) (%t)"
|
|
||||||
fi
|
|
||||||
unset telnet_cv_opt_default_im
|
|
||||||
], [
|
|
||||||
default_im=no
|
|
||||||
])
|
|
||||||
AC_CACHE_VAL(telnet_cv_opt_default_im, telnet_cv_opt_default_im="$default_im")
|
|
||||||
|
|
||||||
if test "$telnet_cv_opt_default_im" != no; then
|
|
||||||
AC_DEFINE_UNQUOTED(USE_IM, "$telnet_cv_opt_default_im")
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_MSG_RESULT($telnet_cv_opt_default_im)
|
|
||||||
|
|
||||||
AC_SUBST(USE_IM)
|
|
||||||
|
|
||||||
#
|
|
||||||
# misc options
|
|
||||||
#
|
|
||||||
|
|
||||||
AC_DEFINE(DIAGNOSTICS)
|
|
||||||
AC_SUBST(DIAGNOSTICS)
|
|
||||||
|
|
||||||
AC_DEFINE(KLUDGELINEMODE)
|
|
||||||
AC_SUBST(KLUDGELINEMODE)
|
|
||||||
|
|
||||||
AC_DEFINE(OLD_ENVIRON)
|
|
||||||
AC_SUBST(OLD_ENVIRON)
|
|
||||||
|
|
||||||
#
|
|
||||||
# AIX needs /lib/pse.exp for getmsg, but alas that file is broken in
|
|
||||||
# AIX414
|
|
||||||
#
|
|
||||||
|
|
||||||
if test -f /lib/pse.exp ;then
|
|
||||||
LIBS="$LIBS -Wl,-bI:/lib/pse.exp"
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_FIND_FUNC(tgetent, termcap)
|
|
||||||
AC_FIND_FUNC(setupterm, curses)
|
|
||||||
AC_FIND_FUNC(socket, socket)
|
|
||||||
AC_FIND_FUNC(gethostbyname, nsl)
|
|
||||||
|
|
||||||
|
|
||||||
AC_CHECK_FUNCS(cgetent getstr cgetstr uname vhangup)
|
|
||||||
AC_CHECK_FUNCS(frevoke revoke setsid setpgid getmsg)
|
|
||||||
AC_CHECK_FUNCS(tgetent setupterm ptsname ttyname unlockpt grantpt)
|
|
||||||
|
|
||||||
AC_FIND_FUNC(logout, util)
|
|
||||||
AC_FIND_FUNC(logwtmp, util)
|
|
||||||
|
|
||||||
AC_SUBST(HAVE_LIBTERMCAP)
|
|
||||||
|
|
||||||
AC_CHECK_HEADERS(sys/filio.h sys/ioctl.h sys/ptyvar.h sys/resource.h)
|
|
||||||
AC_CHECK_HEADERS(sys/select.h sys/stream.h sys/strtty.h sys/str_tty.h)
|
|
||||||
AC_CHECK_HEADERS(sys/tty.h termio.h termios.h utmpx.h sys/uio.h)
|
|
||||||
|
|
||||||
|
|
||||||
# Simple test for streamspty, based on the existance of getmsg(), alas
|
|
||||||
# this breaks on SunOS4 which have streams but BSD-like ptys
|
|
||||||
#
|
|
||||||
# And also something wierd has happend with dec-osf1, fallback to bsd-ptys
|
|
||||||
|
|
||||||
AC_MSG_CHECKING(for streamspty)
|
|
||||||
case "`uname -sr`" in
|
|
||||||
SunOS\ 4*|OSF1*)
|
|
||||||
krb_cv_sys_streamspty=no
|
|
||||||
;;
|
|
||||||
AIX*)
|
|
||||||
os_rel=`uname -v`.`uname -r`
|
|
||||||
if expr "$os_rel" : "3*" >/dev/null 2>&1; then
|
|
||||||
krb_cv_sys_streamspty=no
|
|
||||||
else
|
|
||||||
krb_cv_sys_streamspty="$ac_cv_func_getmsg"
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
krb_cv_sys_streamspty="$ac_cv_func_getmsg"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
if test "$krb_cv_sys_streamspty" = yes; then
|
|
||||||
AC_DEFINE(STREAMSPTY)
|
|
||||||
fi
|
|
||||||
AC_SUBST(STREAMSPTY)
|
|
||||||
AC_MSG_RESULT($krb_cv_sys_streamspty)
|
|
||||||
|
|
||||||
|
|
||||||
###
|
|
||||||
|
|
||||||
AC_OUTPUT(Makefile libtelnet/Makefile telnet/Makefile telnetd/Makefile)
|
|
@@ -26,7 +26,7 @@ libtop = @libtop@
|
|||||||
|
|
||||||
.c.o:
|
.c.o:
|
||||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) \
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) \
|
||||||
@KRBINCPATH@ -I.. -I$(srcdir)/.. $<
|
-I../../../include -I../../.. -I$(srcdir)/.. $<
|
||||||
|
|
||||||
libtelnet.a: $(OBJECTS)
|
libtelnet.a: $(OBJECTS)
|
||||||
$(AR) cr libtelnet.a $(OBJECTS)
|
$(AR) cr libtelnet.a $(OBJECTS)
|
||||||
|
@@ -14,7 +14,7 @@ CFLAGS = @CFLAGS@
|
|||||||
LD_FLAGS = @LD_FLAGS@
|
LD_FLAGS = @LD_FLAGS@
|
||||||
LIBS = @LIBS@
|
LIBS = @LIBS@
|
||||||
INSTALL = @INSTALL@
|
INSTALL = @INSTALL@
|
||||||
MKDIRHIER = @top_srcdir@/../../mkdirhier-sh
|
MKDIRHIER = @top_srcdir@/mkdirhier-sh
|
||||||
|
|
||||||
PROGS = telnet
|
PROGS = telnet
|
||||||
|
|
||||||
@@ -31,19 +31,18 @@ OBJECTS=authenc.o commands.o main.o network.o ring.o sys_bsd.o \
|
|||||||
|
|
||||||
libtop=@libtop@
|
libtop=@libtop@
|
||||||
|
|
||||||
KRBLIBPATH = @KRBLIBPATH@
|
LIBKRB = -L../../../lib/krb -lkrb
|
||||||
LIBKRB = @LIBKRB@
|
LIBDES = -L../../../lib/des -ldes
|
||||||
LIBDES = @LIBDES@
|
LIBROKEN = -L../../../lib/roken -lroken
|
||||||
LIBROKEN = @LIBROKEN@
|
|
||||||
|
|
||||||
KLIB=$(KRBLIBPATH) $(LIBKRB) $(LIBDES) $(LIBROKEN)
|
KLIB=$(LIBKRB) $(LIBDES) $(LIBROKEN)
|
||||||
|
|
||||||
|
|
||||||
all: telnet
|
all: telnet
|
||||||
|
|
||||||
.c.o:
|
.c.o:
|
||||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) \
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) \
|
||||||
@KRBINCPATH@ -I.. -I$(srcdir)/.. $<
|
-I../../../include -I.. -I../../.. -I$(srcdir)/.. $<
|
||||||
|
|
||||||
telnet: $(OBJECTS)
|
telnet: $(OBJECTS)
|
||||||
$(CC) $(LD_FLAGS) $(LDFLAGS) -o telnet $(OBJECTS) ../libtelnet/libtelnet.a $(KLIB) $(LIBS)
|
$(CC) $(LD_FLAGS) $(LDFLAGS) -o telnet $(OBJECTS) ../libtelnet/libtelnet.a $(KLIB) $(LIBS)
|
||||||
|
@@ -14,7 +14,7 @@ CFLAGS = @CFLAGS@
|
|||||||
LD_FLAGS = @LD_FLAGS@
|
LD_FLAGS = @LD_FLAGS@
|
||||||
LIBS = @LIBS@
|
LIBS = @LIBS@
|
||||||
INSTALL = @INSTALL@
|
INSTALL = @INSTALL@
|
||||||
MKDIRHIER = @top_srcdir@/../../mkdirhier-sh
|
MKDIRHIER = @top_srcdir@/mkdirhier-sh
|
||||||
|
|
||||||
prefix = @prefix@
|
prefix = @prefix@
|
||||||
exec_prefix = $(prefix)
|
exec_prefix = $(prefix)
|
||||||
@@ -33,23 +33,19 @@ OBJECTS=telnetd.o state.o termstat.o slc.o sys_term.o \
|
|||||||
|
|
||||||
libtop = @libtop@
|
libtop = @libtop@
|
||||||
|
|
||||||
KRBLIBPATH = @KRBLIBPATH@
|
LIBKRB = -L../../../lib/krb -lkrb
|
||||||
KRBINCPATH = @KRBINCPATH@
|
LIBDES = -L../../../lib/des -ldes
|
||||||
LIBKRB = @LIBKRB@
|
LIBKAFS = -L../../../lib/kafs -lkafs
|
||||||
LIBDES = @LIBDES@
|
LIBROKEN = -L../../../lib/roken -lroken
|
||||||
LIBKAFS = @LIBKAFS@
|
|
||||||
LIBROKEN = @LIBROKEN@
|
|
||||||
|
|
||||||
KLIB=$(KRBLIBPATH) $(LIBKAFS) $(LIBKRB) $(LIBDES) $(LIBROKEN)
|
KLIB=$(LIBKAFS) $(LIBKRB) $(LIBDES) $(LIBROKEN)
|
||||||
|
|
||||||
|
|
||||||
all: telnetd
|
all: telnetd
|
||||||
|
|
||||||
$(OBJECTS): ../config.h
|
|
||||||
|
|
||||||
.c.o:
|
.c.o:
|
||||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) \
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) \
|
||||||
@KRBINCPATH@ -I.. -I$(srcdir)/.. -I. -I$(srcdir) $<
|
-I../../../include -I.. -I../../.. -I$(srcdir)/.. -I. -I$(srcdir) $<
|
||||||
|
|
||||||
telnetd: $(OBJECTS)
|
telnetd: $(OBJECTS)
|
||||||
$(CC) $(LD_FLAGS) $(LDFLAGS) -o telnetd $(OBJECTS) ../libtelnet/libtelnet.a $(KLIB) $(LIBS)
|
$(CC) $(LD_FLAGS) $(LDFLAGS) -o telnetd $(OBJECTS) ../libtelnet/libtelnet.a $(KLIB) $(LIBS)
|
||||||
|
Reference in New Issue
Block a user