From: Tom Yu Date: Mon, 3 Jun 1996 02:10:00 +0000 (+0000) Subject: * configure.in, Makefile.in: only link getdtablesize.o if needed X-Git-Tag: krb5-1.0-beta6~28 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=23608a038158b81c8a68068eb38fa19acdc285ef;p=krb5.git * 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 --- 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