On Fri, May 05, 2000 at 02:34:03PM -0700, Mo DeJong wrote:
> I think you have run into a bug in autoheader. The problem seemes
> to be that a call to:
> 
> AC_DEFINE(UNIX_FILE_SYSTEM)
> 
> will not actually add the #define to config.h.in.
> 
> I worked around this issue by always using 3 arguments to AC_DEFINE.
> 
> AC_DEFINE(UNIX_FILE_SYSTEM,,[quick hack to use UNIX file system, fixme])
> 
> That worked, but I never got around to patching autoheader to fix
> the real problem.

In my case, I have got the following in configure.in (edited):
AC_CONFIG_HEADER(config.h src/defs.h)
LP="/dev/lp0"
AC_DEFINE_UNQUOTED(LPDEVICE, "$LP")

and in src/defs.h.in:
#undef LPDEVICE

This successfully replaces the #undef with
#define LPDEVICE "/dev/lp0"

but autoheader insists I add `#undef LPDEVICE' to acconfig.h, thereby
adding a `#undef LPDEVICE' to config.h.in which I do not want. It totally
ignores the fact that I have put this in src/defs.h.in. (Does autoheader
not check the other headers you specify with AC_CONFIG_HEADER? I have not
seen any mention of this in the documentation.)

Are we both talking about the same bug, as I am not sure that the problem
you describe is related?

I would have a look at the autoheader source, but I am still in the
process of learning C and could not be sure of the quality of any patches
that I would submit.

Best Regards,
Roger Leigh

-- 
Roger Leigh
** Registration Number: 151826, http://counter.li.org **

Reply via email to