This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: preventing autoheader from overwriting my files...


>>> "Dale" == Dale E Martin <dmartin@cliftonlabs.com> writes:

 Dale> Hello.  I've got a header file I want autotools to handle for me,
 Dale> WarpedConfig.h.  My WarpedConfig.h.in has header guards in it and has
 Dale> "#undef"s for all of the things I want defined.  I have this in my
 Dale> configure.ac:

 Dale> AC_CONFIG_HEADERS([src/warped/WarpedConfig.h:src/warped/WarpedConfig.h.in])

 Dale> Normally this works fine.  But I have noticed that if I
 Dale> manually run "autoheader" the file WarpedConfig.h.in gets
 Dale> overwritten. 

autoheader creates the .in only for the first AC_CONFIG_HEADERS argument.

If you don't want your handcrafted template to be overwritten by
autoheader, register a dummy header first using

  AC_CONFIG_HEADERS([config.h src/warped/WarpedConfig.h])

or

  AC_CONFIG_HEADERS([config.h])
  AC_CONFIG_HEADERS([src/warped/WarpedConfig.h])

-- 
Alexandre Duret-Lutz




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]