Hello, On Thu, May 12, 2005 at 10:44:57PM +0200, Lars J. Aas wrote: > I'd like to separate system-detection-defines and user-feature-toggle- > defines into two separate headers. I'd set up the user-feature-toggle- > defines header file manually, but config.status should know about the > whole set of defines and know how to "edit" it, and not keep duplicates > in the real config.h header if you know what I mean... I faced this problem in goffice project; see http://cvs.gnome.org/viewcvs/goffice/ But I decided to left the defines in the main config.h, too. The user one is created from template http://cvs.gnome.org/viewcvs/goffice/goffice/goffice-features.h.in Thusly goffice-features.h is a subset of the main config.h. I see no problem with the duplicated information; both instances are generated automatically, so there is no danger. But if you use a header both for compilation and then install it, you end up including both the main config.h and the features.h . Thus there are duplicated definitions, though they are identical. Can this duplication cause warnings? I don't know, and I'd be glad to hear from an expert here. The goffice project contains a hack which prevents including both headers together. But if I could rely that the preprocessor wouldn't complain if both definitions are exactly the same, it might be actually better to remove the hack, to have another check that the two headers really match. Answer #2: Yes, I think you can achieve what you want with this definition: m4_define([NON_AH_DEFINE], [cat >>confdefs.h <<\_ACEOF [@%:@define] $1 m4_if($#, 1, 1, [$2]) _ACEOF ]) it's the definition of AC_DEFINE, with the autoheader hook removed. Of course, the problem with this hack is that you can never bee sure that it'll work with future versions of autoconf. That's why I decided against it in goffice. Have a nice day, Stepan Kasal _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf