From 23608a038158b81c8a68068eb38fa19acdc285ef Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Mon, 3 Jun 1996 02:10:00 +0000 Subject: [PATCH] * configure.in, Makefile.in: only link getdtablesize.o if needed git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8205 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/gssftp/ftpd/ChangeLog | 4 ++++ src/appl/gssftp/ftpd/Makefile.in | 4 ++-- src/appl/gssftp/ftpd/configure.in | 5 +++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/appl/gssftp/ftpd/ChangeLog b/src/appl/gssftp/ftpd/ChangeLog index 63ec4a4db..bea3f2a3f 100644 --- a/src/appl/gssftp/ftpd/ChangeLog +++ b/src/appl/gssftp/ftpd/ChangeLog @@ -1,3 +1,7 @@ +Sun Jun 2 22:08:17 1996 Tom Yu + + * configure.in, Makefile.in: only link getdtablesize.o if needed + Thu Mar 28 21:07:20 1996 Ken Raeburn * ftpcmd.y: Define unix for HP-UX. diff --git a/src/appl/gssftp/ftpd/Makefile.in b/src/appl/gssftp/ftpd/Makefile.in index 16dfeb157..68ceb468a 100644 --- a/src/appl/gssftp/ftpd/Makefile.in +++ b/src/appl/gssftp/ftpd/Makefile.in @@ -11,10 +11,10 @@ SRCS = ftpd.c ftpcmd.y logwtmp.c popen.c vers.c \ $(srcdir)../ftp/glob.c \ $(srcdir)../ftp/radix.c \ $(srcdir)../ftp/secure.c \ - $(srcdir)../../bsd/getdtablesize.c $(SETENVSRC) + $(GETDTABLESIZESRC) $(SETENVSRC) OBJS = ftpd.o ftpcmd.o glob.o popen.o logwtmp.o vers.o radix.o \ - secure.o getdtablesize.o $(SETENVOBJ) + secure.o $(GETDTABLESIZEOBJ) $(SETENVOBJ) KLIB = -lgssapi_krb5 -lkrb5 -lcrypto $(COMERRLIB) DEPKLIB = $(TOPLIBD)/gssapi/libgssapi_krb5.a $(TOPLIBD)/libkrb5.a \ diff --git a/src/appl/gssftp/ftpd/configure.in b/src/appl/gssftp/ftpd/configure.in index a91cce0c3..0bb213de8 100644 --- a/src/appl/gssftp/ftpd/configure.in +++ b/src/appl/gssftp/ftpd/configure.in @@ -11,6 +11,11 @@ DECLARE_SYS_ERRLIST AC_FUNC_VFORK AC_HEADER_STDARG AC_CHECK_HEADERS(unistd.h stdlib.h string.h) +AC_CHECK_FUNC(getdtablesize,, +[GETDTABLESIZESRC='$(srcdir)/../bsd/getdtablesize.c' +GETDTABLESIZEOBJ=getdtablesize.o +AC_SUBST([GETDTABLESIZESRC]) +AC_SUBST([GETDTABLESIZEOBJ])]) AC_REPLACE_FUNCS(getdtablesize) AC_HAVE_FUNCS(getcwd getusershell seteuid setreuid setresuid) AC_CHECK_LIB(crypt,crypt) dnl -- 2.26.2