This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

libf2c spurious rebuilding with multilibs


This seems the obvious way for the moment to fix the problem with the
reported spurious rebuilds in libf2c due to g2c.h getting outdated WRT
a multilibbed Makefile.  Can I commit it?

1998-10-23  Dave Love  <fx@gnu.org>

	* configure.in: Touch g2c.h in AC_OUTPUT for multilib disturbance.

Index: configure.in
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/libf2c/configure.in,v
retrieving revision 1.18
diff -p -c -r1.18 configure.in
*** configure.in	1998/10/19 10:14:17	1.18
--- configure.in	1998/10/23 18:57:51
*************** AC_CANONICAL_SYSTEM
*** 178,184 ****
  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
--- 178,185 ----
  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.  Of course, it does when the multilib gunk below
! # edits Makefile, sigh; see additional touch below.
  AC_OUTPUT(Makefile g2c.h:g2c.hin,
   [test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
  if test -n "$CONFIG_FILES"; then
*************** if test -n "$CONFIG_FILES"; then
*** 186,191 ****
--- 187,193 ----
      # FIXME: We shouldn't need to set ac_file
      ac_file=Makefile
      . ${topsrcdir}/config-ml.in
+     touch g2c.h   # to keep it more recent than Makefile
    fi
  fi],
  srcdir=${srcdir}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]