From 692da0b555f68e295bb588ab3a02c2354c2daba0 Mon Sep 17 00:00:00 2001 From: David Dykstra Date: Thu, 29 Oct 1998 22:28:56 +0000 Subject: [PATCH] Fix for systems such as Unixware that have a cc that does not support -o with -c. --- Makefile.in | 4 +++- configure.in | 25 +++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index d9cabcbb..078f6db6 100644 --- a/Makefile.in +++ b/Makefile.in @@ -31,7 +31,9 @@ OBJS=$(OBJS1) $(OBJS2) $(DAEMON_OBJ) $(LIBOBJ) $(ZLIBOBJ) # note that the -I. is needed to handle config.h when using VPATH .c.o: - $(CC) -I. -I$(srcdir) $(CFLAGS) -c $< -o $@ +@OBJ_SAVE@ + $(CC) -I. -I$(srcdir) $(CFLAGS) -c $< @CC_SHOBJ_FLAG@ +@OBJ_RESTORE@ all: rsync diff --git a/configure.in b/configure.in index adc04ab6..bb28f5da 100644 --- a/configure.in +++ b/configure.in @@ -127,5 +127,30 @@ if test "$ac_cv_lib_socket_connect" = "yes" || AC_DEFINE(HAVE_CONNECT) fi]) +# +# The following test was mostly taken from the tcl/tk plus patches +# +echo $ac_n "checking whether -c -o works ... $ac_c" +rm -rf conftest* +cat > conftest.$ac_ext <