Eric Blake wrote:
> According to Jim Meyering on 1/22/2010 6:17 AM:
>> However, it'd sure be nice to use something more generic than
>> lib/config.h.  IMHO, autoconf should make configure AC_SUBST its
>> currently-internal-only CONFIG_HEADERS variable.  While we wait,
>> I suppose we can kludge it by extracting the first file name
>> from the use of AC_CONFIG_HEADER(S)? in configure.ac.
>
> And what's wrong with AH_HEADER?  It should be possible to do something
> like (untested):
>
> AC_CONFIG_COMMANDS_PRE([m4_ifdef([AH_HEADER],
>  [AC_SUBST([CONFIG_HEADER], m4_defn([AH_HEADER]))])])

I didn't know we could do that ;-)
And it's even documented.
Thanks!

Then, to enable maint.mk to rely on a definition of $(CONFIG_HEADER)
we could add something like the above to modules/maintainer-makefile:

    configure.ac:
    AC_CONFIG_COMMANDS_PRE([m4_ifdef([AH_HEADER],
      [AC_SUBST([CONFIG_HEADER], m4_defn([AH_HEADER]))])])


_______________________________________________
Autoconf mailing list
Autoconf@gnu.org
http://lists.gnu.org/mailman/listinfo/autoconf

Reply via email to