This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: egcs-19981012: libf2c installation problem
- To: Andreas Jaeger <aj at arthur dot rhein-neckar dot de>
- Subject: Re: egcs-19981012: libf2c installation problem
- From: Lee Iverson <leei at ai dot sri dot com>
- Date: Fri, 23 Oct 1998 16:44:57 -0700
- cc: Dave Love <d dot love at dl dot ac dot uk>, "Billinghurst, David (RTD)" <David dot Billinghurst at riotinto dot com dot au>, egcs <egcs at cygnus dot com>, egcs-patches at cygnus dot com
In message <u8yaq7vmpg.fsf@arthur.rhein-neckar.de> you write:
>
> Dave, I mailed to early :-(. As you might notice from my first email
> Makefile, gc2.h are generated but then multilib support is added.
>
> The real problem seem to be that AC_OUTPUT
> 1. creates Makefile
> 2. creates g2c.h
> 3. Adds multilib-support to Makefile thereby modifying Makefile
>
I had just figured this out and fixed it with the patch below.
-------------------------------------------------------------------------------
Lee Iverson SRI International
leei@ai.sri.com 333 Ravenswood Ave., Menlo Park CA 94025
http://www.ai.sri.com/~leei/ (650) 859-3307
1998-10-23 Lee Iverson <leei@Canada.AI.SRI.COM>
* (configure.in): Ensure that g2c.h remains newer than Makefile
after a successful configure.
Index: libf2c/configure.in
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/libf2c/configure.in,v
retrieving revision 1.18
diff -p -u -r1.18 configure.in
--- configure.in 1998/10/19 10:14:17 1.18
+++ configure.in 1998/10/23 23:41:38
@@ -177,8 +177,6 @@ AC_SUBST(gcc_version_trigger)
AC_CANONICAL_SYSTEM
AC_SUBST(target_alias)
AC_CONFIG_SUBDIRS(libU77 libI77 libF77)
-# Do Makefile first since g2c.h depends on it and shouldn't get an
-# earlier timestamp.
AC_OUTPUT(Makefile g2c.h:g2c.hin,
[test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
if test -n "$CONFIG_FILES"; then
@@ -186,6 +184,9 @@ if test -n "$CONFIG_FILES"; then
# FIXME: We shouldn't need to set ac_file
ac_file=Makefile
. ${topsrcdir}/config-ml.in
+ # g2c.h depend on Makefile, so touch here since the above line modifies
+ # Makefile
+ touch g2c.h
fi
fi],
srcdir=${srcdir}
@@ -197,7 +198,6 @@ ac_configure_args="--enable-multilib ${a
CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
topsrcdir=${topsrcdir}
)
-
dnl Local Variables:
dnl comment-start: "dnl "