automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: preventing autoheader from overwriting my files...


From: Stephen Torri
Subject: Re: preventing autoheader from overwriting my files...
Date: Wed, 14 Jul 2004 16:52:56 -0400

On Wed, 2004-07-14 at 15:23, Dale E Martin wrote:
> Hello.  I've got a header file I want autotools to handle for me,
> WarpedConfig.h.  My WarpedConfig.h.in has header guards in it and has
> "#undef"s for all of the things I want defined.  I have this in my
> configure.ac:
> AC_CONFIG_HEADERS([src/warped/WarpedConfig.h:src/warped/WarpedConfig.h.in])
> 
> Normally this works fine.  But I have noticed that if I manually run
> "autoheader" the file WarpedConfig.h.in gets overwritten.  And occasionally
> it happens with "autoreconf -i" as well.
> 
> Am I do something wrong, missing something, or is this a feature I don't
> understand?

Do not include WarpedConfig.h.in in the AC_CONFIG_HEADERS. Autoheader
only needs the end result WarpedConfig.h in the AC_CONFIG_HEADERS. It
will scan the autoconfigure.ac file and create WarpedConfig.h.in.
Autoconfigure script will take that file and the user configurations
chosen and generate the end result file WarpedConfig.h in src/warped
directory.

I hope this helps.

Stephen
-- 
Stephen Torri <address@hidden>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]