summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-06-27 20:32:35 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:53:30 -0500
commit00389db3846be4a589b84eadf61ddb0403a39043 (patch)
tree8bf6a70b86288c7de5debb4b355be3cbfe7113c6
parent13ecb01de8a6ace6840823dad93179a3ee1f3049 (diff)
downloadsamba-00389db3846be4a589b84eadf61ddb0403a39043.tar.gz
samba-00389db3846be4a589b84eadf61ddb0403a39043.tar.bz2
samba-00389db3846be4a589b84eadf61ddb0403a39043.zip
r23638: add SMB_LIBRARY() macro to create a LIBRARY::foo section in
source/config.mk from within *.m4 files metze (This used to be commit d5fa1476875f862e56e640c0777b95f69886e2fd)
-rw-r--r--source4/build/m4/public.m420
1 files changed, 20 insertions, 0 deletions
diff --git a/source4/build/m4/public.m4 b/source4/build/m4/public.m4
index 003605c401..41600986c8 100644
--- a/source4/build/m4/public.m4
+++ b/source4/build/m4/public.m4
@@ -34,6 +34,26 @@ ENABLE = YES
"
])
+dnl SMB_LIBRARY(name,description,obj_files,required_subsystems,version,so_version,cflags,ldflags)
+AC_DEFUN([SMB_LIBRARY],
+[
+SMB_INFO_LIBRARIES="$SMB_INFO_LIBRARIES
+###################################
+# Start Library $1
+@<:@LIBRARY::$1@:>@
+DESCRIPTION = $2
+OBJ_FILES = $3
+PRIVATE_DEPENDENCIES = $4
+VERSION = $5
+SO_VERSION = $6
+CFLAGS = $7
+LDFLAGS = $8
+ENABLE = YES
+# End Library $1
+###################################
+"
+])
+
dnl SMB_EXT_LIB_FROM_PKGCONFIG(name,pkg-config name,[ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND])
AC_DEFUN([SMB_EXT_LIB_FROM_PKGCONFIG],
[