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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2000-07-01 17:37:21 Re: Big 7.1 open items
Previous Message Peter Eisentraut 2000-07-01 15:03:42 Re: Big 7.1 open items