summaryrefslogtreecommitdiff
path: root/source4/build/smb_build/public.m4
diff options
context:
space:
mode:
Diffstat (limited to 'source4/build/smb_build/public.m4')
-rw-r--r--source4/build/smb_build/public.m45
1 files changed, 4 insertions, 1 deletions
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)