From 94731fa458a7602d492fcd4cae97d9cfbef84a03 Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Wed, 30 Mar 2011 04:45:09 +0000 Subject: Add support for --enable-foo and --disable-foo flags to configure, that Makefile.in respects. --- Makefile.in | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'Makefile.in') diff --git a/Makefile.in b/Makefile.in index 6b5d44b4..e08138ba 100644 --- a/Makefile.in +++ b/Makefile.in @@ -162,14 +162,14 @@ else $(info cfg: have only ocaml bytecode compiler) endif -ifdef BOOT_PROFILE - $(info cfg: forcing native bootstrap compiler (BOOT_PROFILE)) +ifdef CFG_BOOT_PROFILE + $(info cfg: forcing native bootstrap compiler (CFG_BOOT_PROFILE)) CFG_BOOT_NATIVE := 1 CFG_OCAMLOPT_PROFILE_FLAGS := -p endif -ifdef BOOT_DEBUG - $(info cfg: forcing bytecode bootstrap compiler (DEBUG)) +ifdef CFG_BOOT_DEBUG + $(info cfg: forcing bytecode bootstrap compiler (CFG_BOOT_DEBUG)) CFG_BOOT_NATIVE := endif @@ -179,8 +179,8 @@ else $(info cfg: building bytecode bootstrap compiler) endif -ifdef NO_VALGRIND - $(info cfg: disabling valgrind (NO_VALGRIND)) +ifdef CFG_DISABLE_VALGRIND + $(info cfg: disabling valgrind (CFG_DISABLE_VALGRIND)) CFG_VALGRIND := endif @@ -201,6 +201,10 @@ else endif endif +ifdef CFG_DISABLE_DOCS + $(info cfg: disabling doc build (CFG_DISABLE_DOCS)) + DOCS := +endif ###################################################################### # Target-and-rule "utility variables" -- cgit v1.2.3