Enable selection between Python and Haskell confd
authorIustin Pop <iustin@google.com>
Thu, 22 Mar 2012 23:30:28 +0000 (23:30 +0000)
committerIustin Pop <iustin@google.com>
Fri, 23 Mar 2012 13:56:43 +0000 (13:56 +0000)
commit73b0fa69961c5008fea58fcf5c99329cbdf5da76
tree8412e990d7f0101586f2387dae97cbe4a6776a6d
parentacf70442cae760d562414782cb6a29a25fdabcba
Enable selection between Python and Haskell confd

This patch changes configure.ac Makefile.am so that the user can pass:

- --disable-confd (or --enable-confd=no) to disable it completely
- --enable-confd=yes or --enable-confd=python to select the
  traditional implementation (this is the default setting)
- --enable-confd=haskell to select hconfd

The only "not nice" thing is that I've chosen to keep the
hconfd.hs/hconfd name, and we rename it after install via an
install-exec-hook. The other choice is possible too (to rename the
source file/binary).

One additional note is that if we select haskell, the _rule_ for
creating daemons/ganeti-confd dissapears; whereas if we select python,
the rule for htools/hconfd still exists (one can build it explicitly),
it just is not installed. This is due to the different way in which
the rules are declared.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: RenĂ© Nussbaumer <rn@google.com>
Makefile.am
configure.ac