* Makefile.in (INCLUDES): Reference gcc via $MULTIBUILDTOP.
(FLAGS_TO_PASS): Added.
(runtime-info.h): Reference cc1ibj via $MULTIBUILDTOP.
* archive.c: Change config.h to tconfig.h.
* configure.in: Find gcc's object directory even for multilibs.
Co-Authored-By: Jeffrey A Law <law@cygnus.com>
From-SVN: r22725
-Wed Sep 30 18:17:17 1998 Robert Lipe <robertl@dgii.com
+Thu Oct 1 22:33:03 1998 Robert Lipe <robertl@dgii.com>
+ Jeffrey A Law (law@cygnus.com)
+
+ * Makefile.in (INCLUDES): Reference gcc via $MULTIBUILDTOP.
+ (FLAGS_TO_PASS): Added.
+ (runtime-info.h): Reference cc1ibj via $MULTIBUILDTOP.
+
+ * archive.c: Change config.h to tconfig.h.
+
+ * configure.in: Find gcc's object directory even for multilibs.
+
+Wed Sep 30 18:17:17 1998 Robert Lipe <robertl@dgii.com>
* configure.in: Escape ^ in grep string.
* configure: Rebuilt.
CFLAGS = @CFLAGS@
ALL_CFLAGS = -I. -I$(srcdir) $(CPPFLAGS) $(DEFS) $(CFLAGS)
-INCLUDES = -I$(srcdir)/objc -I$(srcdir)/../gcc/config -I../../gcc
+INCLUDES = -I$(srcdir)/objc -I$(srcdir)/../gcc/config -I$(MULTIBUILDTOP)../../gcc
OBJC_GCFLAGS=-DOBJC_WITH_GC=1
OBJC_THREAD_FILE=thr-@OBJC_THREAD_FILE@
.m.o:
$(CC) -c $(ALL_CFLAGS) $(INCLUDES) $<
+# Flags to pass to a recursive make.
+FLAGS_TO_PASS = \
+ "AR=$(AR)" \
+ "AR_FLAGS=$(AR_FLAGS)" \
+ "CC=$(CC)" \
+ "CFLAGS=$(CFLAGS)" \
+ "LIBCFLAGS=$(LIBCFLAGS)" \
+ "EXTRA_OFILES=$(EXTRA_OFILES)" \
+ "HDEFINES=$(HDEFINES)" \
+ "INSTALL=$(INSTALL)" \
+ "INSTALL_DATA=$(INSTALL_DATA)" \
+ "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
+ "LDFLAGS=$(LDFLAGS)" \
+ "LOADLIBES=$(LOADLIBES)" \
+ "PICFLAG=$(PICFLAG)" \
+ "RANLIB=$(RANLIB)" \
+ "SHELL=$(SHELL)"
+
all: libobjc.a @OBJC_BOEHM_GC@
$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=all
sarray_gc.o selector_gc.o sendmsg_gc.o thr_gc.o \
$(OBJC_THREAD_FILE)_gc.o
-runtime-info.h: ../../gcc/cc1obj
+runtime-info.h: $(MULTIBUILDTOP)../../gcc/cc1obj
echo "" > tmp-runtime
echo "/* This file is automatically generated */" > $@
$< -print-objc-runtime-info tmp-runtime >> $@
however invalidate any other reasons why the executable file might be
covered by the GNU General Public License. */
-#include "config.h"
+#include "tconfig.h"
#include "runtime.h"
#include "typedstream.h"
#include "encoding.h"
# Determine the name of the GCC thread file.
+dir=`pwd`
+if test x"${with_multisubdir}" = "x" ; then
+ gccobjdir=`echo $dir/../../gcc`
+else
+ gccobjdir=`echo $dir | sed -e s:${with_multisubdir}::`/../../gcc
+fi
+
echo $ac_n "checking for thread file""... $ac_c" 1>&6
-echo "configure:1038: checking for thread file" >&5
+echo "configure:1045: checking for thread file" >&5
if eval "test \"`echo '$''{'objc_cv_thread_file'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
- if test -f ../../gcc/Makefile
+ if test -f $gccobjdir/Makefile
then
- objc_cv_thread_file=`grep \^GCC_THREAD_FILE ../../gcc/Makefile | awk -F= '{ print $2 }'`
+ objc_cv_thread_file=`grep \^GCC_THREAD_FILE $gccobjdir/Makefile | awk -F= '{ print $2 }'`
else
{ echo "configure: error: not found" 1>&2; exit 1; }
fi
# Determine the name of the GCC thread file.
+dir=`pwd`
+if test x"${with_multisubdir}" = "x" ; then
+ gccobjdir=`echo $dir/../../gcc`
+else
+ gccobjdir=`echo $dir | sed -e s:${with_multisubdir}::`/../../gcc
+fi
+
AC_CACHE_CHECK([for thread file],objc_cv_thread_file,
-[if test -f ../../gcc/Makefile
+[if test -f $gccobjdir/Makefile
then
- objc_cv_thread_file=`grep \^GCC_THREAD_FILE ../../gcc/Makefile | awk -F= '{ print $2 }'`
+ objc_cv_thread_file=`grep \^GCC_THREAD_FILE $gccobjdir/Makefile | awk -F= '{ print $2 }'`
else
AC_MSG_ERROR([not found])
fi])