autoconf, how to include file from AC_CONFIG_SRCDIR file
Question
I would like to be able to merge two files into one during configure run. I already do textural replacement using AC_CONFIG_SRCDIR[file.hpp]
macro on some files. is there some directive to include files from file.hpp.in
, some sort of @include (another.hpp) @
or something like that?
Thanks
Solution 2
Found answer myself. file insertion can be done using ac_subst_file.
OTHER TIPS
AC_CONFIG_FILES([file.hpp:file.hpp.in:another.hpp.in])
will perform text substitution on both file.hpp.in
and another.hpp.in
and then concatenate both results into file.hpp
.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow