Re: config headers and #undefs

2001-03-14 Thread Akim Demaille
> "Kevin" == Kevin Ryde <[EMAIL PROTECTED]> writes: Kevin> I thought of using AC_CONFIG_FILES, but that put settings Kevin> through into the makefiles, which is harmless but Kevin> AC_CONFIG_HEADERS seemed better suited to #defines. I guess Kevin> also there's no reason not to use a separate

Re: config headers and #undefs

2001-03-09 Thread Kevin Ryde
Akim Demaille <[EMAIL PROTECTED]> writes: > > This is typically what should happen in config.h. config.h is > strictly equivalent to a series of -D flags passed to the compiler. > Anything else, such as including a header, belongs to system.h. > > Really, unless I misunderstood something, you a

Re: config headers and #undefs

2001-03-08 Thread Akim Demaille
Akim Demaille <[EMAIL PROTECTED]> writes: > This is typically what should happen in config.h. config.h is s/should/should not/ > strictly equivalent to a series of -D flags passed to the compiler. > Anything else, such as including a header, belongs to system.h. > > Really, unless I misunders

Re: config headers and #undefs

2001-03-08 Thread Akim Demaille
Kevin Ryde <[EMAIL PROTECTED]> writes: > I'm using AM_CONFIG_HEADER to insert a couple of configure-time > defines into headers which will be installed. This works well, except > that I want to have one literal #undef pass through, rather than be > commented out like normally happens. > > Perha

Re: config headers and #undefs

2001-03-07 Thread Kevin Ryde
Guido Draheim <[EMAIL PROTECTED]> writes: > > #ifdef __undef_need_size_t > #undef __need_size_t > #endif No, that still gets transformed to #ifdef __undef_need_size_t /* #undef __need_size_t */ #endif > BTW, if you want to install a config.h file, you may want to use th

Re: config headers and #undefs

2001-03-07 Thread Guido Draheim
Kevin Ryde wrote: > > #define __need_size_t > #include > #undef __need_size_t /*NOTATEMPLATE*/ #ifdef __undef_need_size_t #undef __need_size_t #endif BTW, if you want to install a config.h file, you may want to use this: http://pfe.sourceforge.net/autoconf/ac_prefix_