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

Re: config.h (was Re: Misc. consequences of backend memory management changes)

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: config.h (was Re: Misc. consequences of backend memory management changes)
Date: 2000-07-01 15:04:04
Message-ID: Pine.LNX.4.21.0006301847110.347-100000@localhost.localdomain (view raw or flat)
Thread:
Lists: pgsql-hackers
Tom Lane writes:

> I looked at autoheader and it strikes me as yet another glorified
> 'cat'.  If we used it, we'd basically have an acconfig.h that contains
> exactly what's now in the handgenerated config.h.in, and autoheader
> would copy it all to config.h.in.

That mechanism is obsolete, autoheader is much smarter now (2.13). In
order to get the comments onto the symbols you write

AC_DEFINE(HAVE_FOO, [], [Define if you have foo])

I.e., you document the stuff where you define it.

> What do you think of pulling the remaining hand-settable symbols out
> into a separate file, maybe called something like "siteconfig.h"?  

That seems like a good idea.

-- 
Peter Eisentraut                  Sernanders väg 10:115
peter_e(at)gmx(dot)net                   75262 Uppsala
http://yi.org/peter-e/            Sweden


In response to

pgsql-hackers by date

Next:From: Tom LaneDate: 2000-07-01 17:37:21
Subject: Re: Big 7.1 open items
Previous:From: Peter EisentrautDate: 2000-07-01 15:03:42
Subject: Re: Big 7.1 open items

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