From f74ea959fe88e752b876791d2a3b998a88bd9800 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 2 Nov 2004 11:31:58 +0000 Subject: r3477: add '--with-disable-ext-lib=LIB' option to be able to disable the usage of external libraries. (works currently only with the pkg-config detected libs) metze (This used to be commit 2640f2f57a4d56e07d946d7bb48d2a0ea110d06e) --- source4/build/smb_build/check_path.m4 | 9 +++++++++ source4/build/smb_build/public.m4 | 5 ++++- 2 files changed, 13 insertions(+), 1 deletion(-) (limited to 'source4/build/smb_build') diff --git a/source4/build/smb_build/check_path.m4 b/source4/build/smb_build/check_path.m4 index 37c30f6f32..ca9670f0e0 100644 --- a/source4/build/smb_build/check_path.m4 +++ b/source4/build/smb_build/check_path.m4 @@ -155,6 +155,15 @@ AC_ARG_ENABLE(experimental, [ --enable-experimental Turn on experimental featur fi]) +dnl disable these external libs +AC_ARG_WITH(disable-ext-lib, +[ --with-disable-ext-lib=LIB Comma-seperated list of external libraries], +[ if test $withval; then + for i in `echo $withval | sed -e's/,/ /g'` + do + eval SMB_EXT_LIB_$i=NO + done +fi ]) dnl exclude these modules AC_ARG_WITH(exclude-modules, diff --git a/source4/build/smb_build/public.m4 b/source4/build/smb_build/public.m4 index f45cf87cbb..479ca9685d 100644 --- a/source4/build/smb_build/public.m4 +++ b/source4/build/smb_build/public.m4 @@ -374,7 +374,10 @@ AC_DEFUN([SMB_EXT_LIB_FROM_PKGCONFIG], if $PKG_CONFIG --atleast-pkgconfig-version 0.9.0; then AC_MSG_CHECKING(for $2) - if $PKG_CONFIG --exists '$2' ; then + if test "$SMB_EXT_LIB_$1"x = "NO"x ; then + SMB_EXT_LIB_ENABLE($1, NO) + AC_MSG_RESULT(disabled) + elif $PKG_CONFIG --exists '$2' ; then AC_MSG_RESULT(yes) SMB_EXT_LIB_ENABLE($1, YES) -- cgit