summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2004-11-14 21:25:07 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:05:48 -0500
commite856a8d83c18820a270ef865d2d7869849ce4e20 (patch)
treeb9287368bc36f51ca7415cdaeeb8dd0da3c620c2
parent1817b3d4a533ca548141fec473843414c4a4196d (diff)
downloadsamba-e856a8d83c18820a270ef865d2d7869849ce4e20.tar.gz
samba-e856a8d83c18820a270ef865d2d7869849ce4e20.tar.bz2
samba-e856a8d83c18820a270ef865d2d7869849ce4e20.zip
r3736: Fix the build for builds that haven't got all libs samba
can use installed. (This used to be commit 359a3570f32902db0e9f59f168af464e8c652cea)
-rw-r--r--source4/build/smb_build/public.m423
1 files changed, 21 insertions, 2 deletions
diff --git a/source4/build/smb_build/public.m4 b/source4/build/smb_build/public.m4
index de805e6085..b271cd94fd 100644
--- a/source4/build/smb_build/public.m4
+++ b/source4/build/smb_build/public.m4
@@ -114,7 +114,9 @@ dnl 2:default_build
dnl )
AC_DEFUN([SMB_MODULE_DEFAULT],
[
- [SMB_MODULE_DEFAULT_][$1]="$2"
+ [SMB_MODULE_DEFAULT][$1]="$2"
+SMB_INFO_MODULES="$SMB_INFO_MODULES
+\$INPUT{$1}{DEFAULT_BUILD} = \"$2\";"
])
dnl SMB_MODULE (
@@ -170,6 +172,8 @@ dnl )
AC_DEFUN([SMB_SUBSYSTEM_ENABLE],
[
[SMB_SUBSYSTEM_ENABLE_][$1]="$2"
+SMB_INFO_SUBSYSTEMS="$SMB_INFO_SUBSYSTEMS
+\$INPUT{$1}{ENABLE} = \"$2\";"
])
dnl SMB_SUBSYSTEM_NOPROTO(
@@ -223,6 +227,9 @@ dnl )
AC_DEFUN([SMB_EXT_LIB_ENABLE],
[
[SMB_EXT_LIB_ENABLE_][$1]="$2"
+
+SMB_INFO_SUBSYSTEMS="$SMB_INFO_SUBSYSTEMS
+\$INPUT{EXT_LIB_$1}{ENABLE} = \"$2\";"
])
dnl SMB_EXT_LIB_FROM_PKGCONFIG(
@@ -242,6 +249,8 @@ AC_DEFUN([SMB_EXT_LIB_FROM_PKGCONFIG],
echo "*** in your path, or set the PKG_CONFIG environment variable"
echo "*** to the full path to pkg-config."
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
+ SMB_EXT_LIB($1)
+ SMB_EXT_LIB_ENABLE($1, NO)
else
if $PKG_CONFIG --atleast-pkgconfig-version 0.9.0; then
AC_MSG_CHECKING(for $2)
@@ -263,12 +272,16 @@ AC_DEFUN([SMB_EXT_LIB_FROM_PKGCONFIG],
$1_CFLAGS="`$PKG_CONFIG --cflags '$2'`"
CFLAGS="$CFLAGS $$1_CFLAGS"
else
+ SMB_EXT_LIB($1)
+ SMB_EXT_LIB_ENABLE($1, NO)
AC_MSG_RESULT(no)
$PKG_CONFIG --errors-to-stdout --print-errors '$2'
fi
else
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
- echo "*** See http://www.freedesktop.org/software/pkgconfig"
+ echo "*** See http://www.freedesktop.org/software/pkgconfig"
+ SMB_EXT_LIB($1)
+ SMB_EXT_LIB_ENABLE($1, NO)
fi
fi
])
@@ -312,6 +325,9 @@ dnl )
AC_DEFUN([SMB_LIBRARY_ENABLE],
[
[SMB_LIBRARY_ENABLE_][$1]="$2"
+
+SMB_INFO_SUBSYSTEMS="$SMB_INFO_SUBSYSTEMS
+\$INPUT{$1}{ENABLE} = \"$2\";"
])
dnl SMB_LIBRARY(
@@ -356,6 +372,9 @@ dnl )
AC_DEFUN([SMB_BINARY_ENABLE],
[
[SMB_BINARY_ENABLE_][$1]="$2";
+
+SMB_INFO_SUBSYSTEMS="$SMB_INFO_SUBSYSTEMS
+\$INPUT{$1}{ENABLE} = \"$2\";"
])
dnl SMB_BINARY(