Print an error if trying a merged build without a system kerberos lib
authorVolker Lendecke <vl@samba.org>
Wed, 1 Apr 2009 13:29:25 +0000 (15:29 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 1 Apr 2009 14:31:10 +0000 (16:31 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/configure.in

index c8aabc5afe70042af9fcf41c68e431315677d460..d0ff14fa2fe785c84f1c07bedfeaa717b8578cd1 100644 (file)
@@ -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