Add conditional build of subsystems to configure.ac

The toplevel Makefile still works without running configure
and will default build everything

Signed-off-by: Matthew Fioravante <matthew.fioravante@jhuapl.edu>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
This commit is contained in:
Matthew Fioravante committed 2013-01-18 10:55:48 +00:00
1 parent 92c84d8429
commit 3378685f25
5 files changed
+625 -5

No files matched your search

+32
View File
@@ -0,0 +1,32 @@
AC_DEFUN([AX_SUBSYSTEM_DEFAULT_ENABLE], [
AC_ARG_ENABLE([$1],
AS_HELP_STRING([--disable-$1], [Disable build and install of $1]),[
$1=n
],[
$1=y
SUBSYSTEMS="$SUBSYSTEMS $1"
AS_IF([test -e "$1/configure"], [
AC_CONFIG_SUBDIRS([$1])
])
])
AC_SUBST($1)
])
AC_DEFUN([AX_SUBSYSTEM_DEFAULT_DISABLE], [
AC_ARG_ENABLE([$1],
AS_HELP_STRING([--enable-$1], [Enable build and install of $1]),[
$1=y
SUBSYSTEMS="$SUBSYSTEMS $1"
AS_IF([test -e "$1/configure"], [
AC_CONFIG_SUBDIRS([$1])
])
],[
$1=n
])
AC_SUBST($1)
])
AC_DEFUN([AX_SUBSYSTEM_FINISH], [
AC_SUBST(SUBSYSTEMS)
])
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.