mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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:
1 parent
92c84d8429
commit
3378685f25
5 files changed
+625
-5
No files matched your search
@@ -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)
|
||||
])
|
||||