[Python-Dev] Naming of config.h

Greg Stein gstein@lyra.org
Thu, 7 Sep 2000 13:41:12 -0700


On Thu, Sep 07, 2000 at 10:26:28PM +0200, Martin v. Loewis wrote:
>...
> This issue can be relaxed by renaming the "config.h" to
> "pyconfig.h". That still might result in duplicate defines, but likely
> SIZE_FLOAT (for example) has the same value in all definitions.

This is not a simple problem. APR (a subcomponent of Apache) is set up to
build as an independent library. It is also autoconf'd, but it goes through
a *TON* of work to avoid passing any autoconf symbols into the public space.

Renaming the config.h file would be an interesting start, but it won't solve
the conflicting symbols (or typedefs!) problem. And from a portability
standpoint, that is important: some compilers don't like redefinitions, even
if they are the same.

IOW, if you want to make this "correct", then plan on setting aside a good
chunk of time.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/