Node:Subdirectories, Next:Default Prefix, Previous:Configuration Links, Up:Setup
In most situations, calling AC_OUTPUT
is sufficient to produce
Makefile
s in subdirectories. However, configure
scripts
that control more than one independent package can use
AC_CONFIG_SUBDIRS
to run configure
scripts for other
packages in subdirectories.
AC_CONFIG_SUBDIRS (dir ...) | Macro |
Make AC_OUTPUT run configure in each subdirectory
dir in the given whitespace-separated list. Each dir should
be a literal, i.e., please do not use:
if test "$package_foo_enabled" = yes; then $my_subdirs="$my_subdirs foo" fi AC_CONFIG_SUBDIRS($my_subdirs) because this prevents if test "$package_foo_enabled" = yes; then AC_CONFIG_SUBDIRS(foo) fi If a given dir is not found, an error is reported: if the
subdirectory is optional, write:
if test -d $srcdir/foo; then AC_CONFIG_SUBDIRS(foo) fi If a given dir contains The subdirectory
This macro also sets the output variable |