Skip site navigation (1) Skip section navigation (2)

Re: pgsql/src (Makefile.global.in)

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-committers(at)postgresql(dot)org>, PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pgsql/src (Makefile.global.in)
Date: 2001-01-02 19:36:49
Message-ID: Pine.LNX.4.30.0101022028100.758-100000@peter.localdomain (view raw or flat)
Thread:
Lists: pgsql-committerspgsql-hackers
Tom Lane writes:

> Perhaps the answer is to treat stamp-h as a real output file (ie,
> generated from a stamp-h.in file) rather than hacking it into place
> as an AC_OUTPUT extra command.  It looks to me like config.status
> only does the keep-the-old-timestamp bit for CONFIG_HEADERS files,
> not CONFIG_FILES files, so classifying stamp-h as the latter kind
> would make things work.

That would probably work, but I'm kind of hesitant to create an empty
input file in cvs just to serve this marginal feature.  (It wouldn't take
/dev/null because it tries to use .//dev/null.)  Moreover, the likely
candidate name stamp-h.in is sort of reserved for doing the same trickery
on autoheader, in case we ever use that.

I came up with this:

diff -c -r1.86 configure.in
*** configure.in        2001/01/01 23:10:09     1.86
--- configure.in        2001/01/02 19:20:16
***************
*** 1140,1144 ****
  ],
  [
  # Update timestamp for config.h (see Makefile.global)
! echo >src/include/stamp-h
  ])
--- 1140,1144 ----
  ],
  [
  # Update timestamp for config.h (see Makefile.global)
! test x"$CONFIG_HEADERS" != x"" && echo >src/include/stamp-h
  ])

This only updates the stamp file if config.h is actually being considered
by config.status.

-- 
Peter Eisentraut      peter_e(at)gmx(dot)net       http://yi.org/peter-e/


In response to

Responses

pgsql-hackers by date

Next:From: Tom LaneDate: 2001-01-02 20:25:50
Subject: Re: pgsql/src (Makefile.global.in)
Previous:From: Tom LaneDate: 2001-01-02 17:48:56
Subject: Re: [HACKERS] Re: Inheritance docs error.

pgsql-committers by date

Next:From: Tom LaneDate: 2001-01-02 20:25:50
Subject: Re: pgsql/src (Makefile.global.in)
Previous:From: tglDate: 2001-01-02 05:56:02
Subject: pgsql/doc/src/sgml (regress.sgml)

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group