summaryrefslogtreecommitdiff
path: root/source4/build/m4/public.m4
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2009-02-21 18:59:12 +0100
committerJelmer Vernooij <jelmer@samba.org>2009-02-21 18:59:12 +0100
commit80e9e63cf611ed45cb2bfb4896f962270e92ee8e (patch)
tree843716fd941bc73f0175d90354caf48443430da2 /source4/build/m4/public.m4
parentfb1c564b78032b61bba182e748cdbadf94d26e15 (diff)
downloadsamba-80e9e63cf611ed45cb2bfb4896f962270e92ee8e.tar.gz
samba-80e9e63cf611ed45cb2bfb4896f962270e92ee8e.tar.bz2
samba-80e9e63cf611ed45cb2bfb4896f962270e92ee8e.zip
Let --enable-external-libldb default to no (since linking against
external LDB doesn't work yet). Fix flags when using internal libs.
Diffstat (limited to 'source4/build/m4/public.m4')
-rw-r--r--source4/build/m4/public.m46
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/build/m4/public.m4 b/source4/build/m4/public.m4
index a707a113cd..1927e9977f 100644
--- a/source4/build/m4/public.m4
+++ b/source4/build/m4/public.m4
@@ -131,15 +131,17 @@ dnl SMB_INCLUDED_LIB_PKGCONFIG(name,pkg-config name,[ACTION-IF-FOUND],[ACTION-IF
AC_DEFUN([SMB_INCLUDED_LIB_PKGCONFIG],
[
AC_ARG_ENABLE([external-]translit($1,`A-Z',`a-z'),
- AS_HELP_STRING([--enable-external-]translit($1,`A-Z',`a-z'), [Use external $1 instead of built-in (default=auto)]), [], [enableval=auto])
+ AS_HELP_STRING([--enable-external-]translit($1,`A-Z',`a-z'), [Use external $1 instead of built-in (default=ifelse([$5],[],auto,$5))]), [], [enableval=ifelse([$5],[],auto,$5)])
if test $enableval = yes -o $enableval = auto; then
SMB_EXT_LIB_FROM_PKGCONFIG([$1], [$2], [$3], [
if test $enableval = yes; then
AC_MSG_ERROR([Unable to find external $1])
fi
+ enableval=no
])
- else
+ fi
+ if test $enableval = no; then
ifelse([$4], [], [
SMB_EXT_LIB($1)
SMB_ENABLE($1, NO)