Improve Haskell configure options and detection
authorIustin Pop <iustin@google.com>
Wed, 10 Oct 2012 05:12:43 +0000 (07:12 +0200)
committerIustin Pop <iustin@google.com>
Wed, 10 Oct 2012 11:43:04 +0000 (13:43 +0200)
commit21a5e56cb99eb7bf14ae2c3e557b629d33289312
tree92d5d11232a877eab3ea491f7aa92be1de557e95
parent7ae97c335042b78ecf05fe9db30825c1aeb71c39
Improve Haskell configure options and detection

This patch cleans up  the Haskell library detection and defaults.

First, it makes the base compiler/libraries required, per the email discussion.

It then adds two new small autoconf macros, on to check for a required
Haskell library and one to do custom action based on test results. We
use these macros to cleanup and simplify a bit the module detection:

- rapi, confd, and split query are auto detected and enabled if _all_
  required libraries are present
- unittests are enabled if _all_ required libraries are present

The patch also updates the documentation regarding required libraries.

After this patch, base Ganeti fully buildable on Debian Squeeze/Ubuntu
Lucid.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
INSTALL
Makefile.am
autotools/ac_ghc_pkg.m4 [new file with mode: 0644]
configure.ac
doc/devnotes.rst