summaryrefslogtreecommitdiff
path: root/source3/m4
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-02-25 17:42:12 +0100
committerMichael Adam <obnox@samba.org>2008-02-26 13:56:12 +0100
commitdf3939da940c5f5cca9d0b782c84a0427c5b6b3a (patch)
tree9676b82c7c2bc1c8ff33b3b8cb026624aa001cc6 /source3/m4
parent9f5c463415b8b7ea495589ce3fa9deb7c01efb2e (diff)
downloadsamba-df3939da940c5f5cca9d0b782c84a0427c5b6b3a.tar.gz
samba-df3939da940c5f5cca9d0b782c84a0427c5b6b3a.tar.bz2
samba-df3939da940c5f5cca9d0b782c84a0427c5b6b3a.zip
configure: put swat-part of config into m4-include file of its own.
Michael (This used to be commit 622667c0790c0092bfceced8dc6fb05e781ac5e7)
Diffstat (limited to 'source3/m4')
-rw-r--r--source3/m4/swat.m427
1 files changed, 27 insertions, 0 deletions
diff --git a/source3/m4/swat.m4 b/source3/m4/swat.m4
new file mode 100644
index 0000000000..2fdd82eda2
--- /dev/null
+++ b/source3/m4/swat.m4
@@ -0,0 +1,27 @@
+dnl
+dnl Samba3 build environment SWAT configuration
+dnl
+dnl Copyright (C) Michael Adam 2008
+dnl
+dnl Released under the GNU General Public License
+dnl http://www.gnu.org/licenses/
+dnl
+
+
+SWAT_SBIN_TARGETS='bin/swat$(EXEEXT)'
+SWAT_INSTALL_TARGETS=installswat
+
+AC_ARG_ENABLE(swat,
+[AS_HELP_STRING([--enable-swat], [Build the SWAT tool (default=yes)])],
+[
+ case "$enable_swat" in
+ no)
+ SWAT_SBIN_TARGETS=''
+ SWAT_INSTALL_TARGETS=''
+ ;;
+ esac
+])
+
+AC_SUBST(SWAT_SBIN_TARGETS)
+AC_SUBST(SWAT_INSTALL_TARGETS)
+