summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/appl/gssftp/ftpd/ChangeLog4
-rw-r--r--src/appl/gssftp/ftpd/Makefile.in4
-rw-r--r--src/appl/gssftp/ftpd/configure.in5
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 <tlyu@mit.edu>
+
+ * configure.in, Makefile.in: only link getdtablesize.o if needed
+
Thu Mar 28 21:07:20 1996 Ken Raeburn <raeburn@cygnus.com>
* 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