summaryrefslogtreecommitdiff
path: root/lib/tdb/libtdb.m4
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2009-06-15 16:19:19 -0400
committerSimo Sorce <idra@samba.org>2009-06-15 16:31:12 -0400
commit7aee9f92e7c3e3eb48c0456d821125b60f8d8259 (patch)
treefa8be2b7149db8d8806d7f54d818b98ea5d34af7 /lib/tdb/libtdb.m4
parentf518e37c0912a54d5434f7639ba44f53d3455582 (diff)
downloadsamba-7aee9f92e7c3e3eb48c0456d821125b60f8d8259.tar.gz
samba-7aee9f92e7c3e3eb48c0456d821125b60f8d8259.tar.bz2
samba-7aee9f92e7c3e3eb48c0456d821125b60f8d8259.zip
Add exports file and abi checker for tdb
This is a first attempt at exporting symbols only for public functions We also provide a rudimentary ABI checker that tries to check that function signatures are not changed by mistake. Given our use of macros this is not an API checker. It's all based on tdb.h contents and the gcc -aux-info option
Diffstat (limited to 'lib/tdb/libtdb.m4')
-rw-r--r--lib/tdb/libtdb.m45
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/tdb/libtdb.m4 b/lib/tdb/libtdb.m4
index 252e0b0be3..f5ed012a80 100644
--- a/lib/tdb/libtdb.m4
+++ b/lib/tdb/libtdb.m4
@@ -28,3 +28,8 @@ AC_CHECK_HEADERS(getopt.h sys/select.h sys/time.h)
AC_HAVE_DECL(pread, [#include <unistd.h>])
AC_HAVE_DECL(pwrite, [#include <unistd.h>])
+
+if test x"$VERSIONSCRIPT" != "x"; then
+ EXPORTSFILE=tdb.exports
+ AC_SUBST(EXPORTSFILE)
+fi