views:

146

answers:

2

hello

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

+2  A: 

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.

ptomato
thanks, I did actually mean SRCDRI. I found out how to do it, going to post it now
aaa
A: 

hi

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

aaa