Re: config.h (was Re: Misc. consequences of backend memory management changes) - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: config.h (was Re: Misc. consequences of backend memory management changes)
Date
Msg-id Pine.LNX.4.21.0006301847110.347-100000@localhost.localdomain
Whole thread Raw
In response to config.h (was Re: Misc. consequences of backend memory management changes)  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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@gmx.net                   75262 Uppsala
http://yi.org/peter-e/            Sweden



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Changes to handling version numbers internally
Next
From: Peter Eisentraut
Date:
Subject: Re: Big 7.1 open items