Disable compiling mon-collector if monitoring is disabled
authorMichele Tartara <mtartara@google.com>
Tue, 30 Apr 2013 14:15:44 +0000 (14:15 +0000)
committerMichele Tartara <mtartara@google.com>
Tue, 30 Apr 2013 15:52:04 +0000 (15:52 +0000)
Mon-collector kept being compiled even if monitoring was disabled during
configure.

Fixes Issue 441.

Signed-off-by: Michele Tartara <mtartara@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>

Makefile.am

index 3d90220..7c43ad5 100644 (file)
@@ -426,7 +426,11 @@ mandocrst = $(addprefix doc/man-,$(notdir $(manrst)))
 HS_BIN_PROGS=src/htools
 
 # Haskell programs to be installed in the MYEXECLIB dir
+if ENABLE_MONITORING
 HS_MYEXECLIB_PROGS=src/mon-collector
+else
+HS_MYEXECLIB_PROGS=
+endif
 
 # Haskell programs to compiled but not installed automatically
 # Usually they have their own specific installation rules