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

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: config.h (was Re: Misc. consequences of backend memory management changes)
Дата
Msg-id Pine.LNX.4.21.0006301847110.347-100000@localhost.localdomain
обсуждение исходный текст
Ответ на config.h (was Re: Misc. consequences of backend memory management changes)  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Changes to handling version numbers internally
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Big 7.1 open items