summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-04-01 15:29:25 +0200
committerStefan Metzmacher <metze@samba.org>2009-04-01 16:31:10 +0200
commitffdc2a3fe8437582ded1c4a3b09a54201519889b (patch)
treedbfa6e7bc0cd8a2b4002a566158ce55dffcdae55
parent6edaf6188c8c27e319357aba920725c5c0af815e (diff)
downloadsamba-ffdc2a3fe8437582ded1c4a3b09a54201519889b.tar.gz
samba-ffdc2a3fe8437582ded1c4a3b09a54201519889b.tar.bz2
samba-ffdc2a3fe8437582ded1c4a3b09a54201519889b.zip
Print an error if trying a merged build without a system kerberos lib
Signed-off-by: Stefan Metzmacher <metze@samba.org>
-rw-r--r--source3/configure.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/configure.in b/source3/configure.in
index c8aabc5afe..d0ff14fa2f 100644
--- a/source3/configure.in
+++ b/source3/configure.in
@@ -3921,6 +3921,10 @@ if test x"$with_ads_support" != x"no"; then
LIBS="$ac_save_LIBS"
fi
+if test x"$use_ads" != xyes; then
+ merged_build_possible=no
+fi
+
AC_CHECK_LIB_EXT(nscd, NSCD_LIBS, nscd_flush_cache)
PASSDB_LIBS="$PASSDB_LIBS $NSCD_LIBS"
@@ -6361,6 +6365,11 @@ AC_ARG_ENABLE(merged-build,
[AS_HELP_STRING([--enable-merged-build], [Build Samba 4 as well])],
[ enable_merged_build=$enableval ], [ enable_merged_build=auto ])
+if test x"$enable_merged_build" = x"yes" -a \
+ x"$merged_build_possible" = x"no" ; then
+ AC_MSG_ERROR(Merged build required but not possible)
+fi
+
m4_include(../lib/zlib/zlib.m4)
if test x$enable_merged_build = xauto; then