I have a subpackage setup in my autotools repository in which several related projects are glued together using master configure.ac and Makefile.am.
In addition to streamlining compilation that is easy to do with the AC_CONFIG_SUBDIRS () macro, you must export the library headers and locations needed between these overly related subprojects.
--- configure.ac
|- Makefile.am
|- subproj1 --- configure.ac
| |- Makefile.am
| |- src
| \- include
[...]
|
\- subprojN --- configure.ac // requires -I${top_srcdir}/subprojX/include and
|- Makefile.am // -L${top_srcdir}/subprojX/src
|- src
\- include
Rearrangement of these packages, unfortunately, is not an option. I tried to export the variables using the AC_SUBST () command and / or to do the export command, but to no avail.
, Makefile, CPPFLAGS LDFLAGS root configure ( ). , , autotools, , script.
PS: automake