This is the mail archive of the
mailing list for the GCC project.
Re: f2c configure fix
- To: law at cygnus dot com
- Subject: Re: f2c configure fix
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Tue, 30 Mar 1999 17:46:02 -0500 (EST)
- Cc: craig at jcb-sc dot com, d dot love at dl dot ac dot uk, egcs-patches at egcs dot cygnus dot com, rth at cygnus dot com, rth at twiddle dot net
> From: Jeffrey A Law <email@example.com>
> In message <199903281753.MAA16808@caip.rutgers.edu>you write:
> > Based on some initial investigation, I would hazard a guess that
> > the -I flags configure.in uses to compile this test should be using
> > $topsrcdir, instead of using $srcdir or hardcoding "../..". (In my case
> > builddir == srcdir.) I based this conclusion on my examiniation of the
> > definition of $extra_includes in libf2c/configure.in.
> Weird. The failure I saw was rather different -- the inability to
> find stuff from the gcc object directory.
> Are you building in the source tree? That might explain the difference
> and would indicate that we actually have two (closely related) problems
> to resolve.
Yes I'm building in the source tree. That's what I meant when
I said "builddir == srcdir". :-) What exactly wasn't found during
your build? Were you using a relative or hard path to your srcdir?
> I'm drop-dead tired, so I won't be able to look at this anymore until
> tomorrow night.
The following solves the problem I saw. Since your build
didn't find something it was looking for in the object directory, this
might not solve your issue. But let me know either way.
diff -rup orig/egcs-CVS19990329/libf2c/configure.in egcs-CVS19990329/libf2c/configure.in
--- orig/egcs-CVS19990329/libf2c/configure.in Sun Mar 28 07:18:22 1999
+++ egcs-CVS19990329/libf2c/configure.in Tue Mar 30 12:11:20 1999
@@ -101,12 +101,7 @@ AC_MSG_CHECKING(f2c integer type)
# Set this back later below!
-##gcc -c -DIN_GCC -DHAVE_CONFIG_H -I. -I/home/fx/c-e/egcs/gcc -I/home/fx/c-e/egcs/gcc/config -I/home/fx/c-e/egcs/gcc/../include /home/fx/c-e/egcs/gcc/f/proj.c
-if test "$srcdir" != . ; then
- extra_includes="-I$srcdir/../gcc/f -I../../gcc -I$srcdir/../gcc -I$srcdir/../include -I$srcdir/../gcc/config"
- extra_includes="-I../../gcc/f -I../../gcc -I../../include -I../../gcc/config"
+extra_includes="-I$topsrcdir/gcc/f -I$topsrcdir/gcc -I$topsrcdir/include -I$topsrcdir/gcc/config"
ac_cpp="$late_ac_cpp -DIN_GCC -DHAVE_CONFIG_H $extra_includes"
# The AC_EGREP_CPPs below have been known to fail when the header