public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* cluster: master - build: add --enable-bindings option
@ 2009-05-29  6:20 Fabio M. Di Nitto
  0 siblings, 0 replies; only message in thread
From: Fabio M. Di Nitto @ 2009-05-29  6:20 UTC (permalink / raw)
  To: cluster-cvs-relay

Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=bdc46fb8f59adcf9897ba9c1380a7ac2d593447e
Commit:        bdc46fb8f59adcf9897ba9c1380a7ac2d593447e
Parent:        f48b53aea96c82de7d2d2b2913ed7b47870a41fb
Author:        Fabio M. Di Nitto <fdinitto@redhat.com>
AuthorDate:    Fri May 29 08:19:20 2009 +0200
Committer:     Fabio M. Di Nitto <fdinitto@redhat.com>
CommitterDate: Fri May 29 08:19:20 2009 +0200

build: add --enable-bindings option

this allow users to decide if they want to build bindings
and default is to no.

Also do some whitespace cleanup

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
---
 Makefile.am  |    6 +++++-
 configure.ac |   18 ++++++++++++++----
 2 files changed, 19 insertions(+), 5 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index d8f8c73..aa33bca 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -11,7 +11,11 @@ noinst_HEADERS		= make/copyright.cf
 
 ACLOCAL_AMFLAGS		= -I m4
 
-SUBDIRS			= common config cman group doc bindings
+SUBDIRS			= common config cman group doc
+
+if BUILD_BINDINGS
+SUBDIRS			+= bindings
+endif
 
 install-exec-local:
 			$(INSTALL) -d $(DESTDIR)/$(LOGDIR)
diff --git a/configure.ac b/configure.ac
index 46b625c..8900b1a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -128,25 +128,33 @@ AC_ARG_WITH([lcrso-dir],
 	[ LCRSODIR="$libexecdir/lcrso" ])
 
 AC_ARG_WITH([default-config-dir],
-	[  --default-config-dir=DIR    cluster config directory. ],
+	[  --default-config-dir=DIR
+                          cluster config directory. ],
 	[ DEFAULT_CONFIG_DIR="$withval" ],
 	[ DEFAULT_CONFIG_DIR="$sysconfdir/cluster" ])
 
 AC_ARG_WITH([default-config-file],
-	[  --default-config-file=FILE    cluster config file. ],
+	[  --default-config-file=FILE
+                          cluster config file. ],
 	[ DEFAULT_CONFIG_FILE="$withval" ],
 	[ DEFAULT_CONFIG_FILE="cluster.conf" ])
 
 AC_ARG_WITH([syslogfacility],
-	[  --syslogfacility=FACILITY    cluster default syslog facility. ],
+	[  --syslogfacility=FACILITY
+                          cluster default syslog facility. ],
 	[ SYSLOGFACILITY="$withval" ],
 	[ SYSLOGFACILITY="LOG_LOCAL4" ])
 
 AC_ARG_WITH([sysloglevel],
-	[  --sysloglevel=LEVEL    cluster default syslog level. ],
+	[  --sysloglevel=LEVEL
+                          cluster default syslog level. ],
 	[ SYSLOGLEVEL="$withval" ],
 	[ SYSLOGLEVEL="LOG_INFO" ])
 
+AC_ARG_ENABLE([bindings],
+	[  --enable-bindings       enable bindings build. ],
+	[ default="no" ])
+
 ## random vars
 
 NOTIFYDDIR=${DEFAULT_CONFIG_DIR}/cman-notify.d
@@ -192,6 +200,8 @@ AC_DEFINE_UNQUOTED([SYSLOGFACILITY], $(eval echo ${SYSLOGFACILITY}),
 AC_DEFINE_UNQUOTED([SYSLOGLEVEL], $(eval echo ${SYSLOGLEVEL}),
 		   [Default syslog level])
 
+AM_CONDITIONAL(BUILD_BINDINGS, test "x${enable_bindings}" = xyes)
+
 ## *FLAGS handling
 
 ENV_CFLAGS="$CFLAGS"


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-05-29  6:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-29  6:20 cluster: master - build: add --enable-bindings option Fabio M. Di Nitto

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).