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

Re: [HACKERS] Re: pgsql/src (Makefile.global.in)

From: Ian Lance Taylor <ian(at)airs(dot)com>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, <pgsql-committers(at)postgresql(dot)org>, PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [HACKERS] Re: pgsql/src (Makefile.global.in)
Date: 2001-01-02 20:53:32
Message-ID: sin1d9ekvn.fsf@daffy.airs.com (view raw or flat)
Thread:
Lists: pgsql-committerspgsql-hackers
Peter Eisentraut <peter_e(at)gmx(dot)net> writes:

> 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.

That's the usual approach.  For example, when automake is used with a
single configuration header in the same directory, it puts this in
configure:

test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h

automake handles these sorts of details automatically.

Ian

In response to

pgsql-hackers by date

Next:From: jmoschetDate: 2001-01-02 22:55:30
Subject: problem with mkMakefile.tcldefs.sh if USE_TCL=false
Previous:From: Tom LaneDate: 2001-01-02 20:25:50
Subject: Re: pgsql/src (Makefile.global.in)

pgsql-committers by date

Next:From: momjianDate: 2001-01-02 22:03:02
Subject: pgsql/src/interfaces/ecpg/lib (execute.c)
Previous:From: Tom LaneDate: 2001-01-02 20:25:50
Subject: Re: pgsql/src (Makefile.global.in)

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