Search code examples
includeautotoolsautoconfm4

autoconf, how to include file from AC_CONFIG_SRCDIR file


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

  • Found answer myself. file insertion can be done using ac_subst_file.