~ubuntu-branches/ubuntu/vivid/ctdb/vivid-proposed

« back to all changes in this revision

Viewing changes to lib/tdb/libtdb.m4

  • Committer: Bazaar Package Importer
  • Author(s): Mathieu Parent
  • Date: 2010-02-10 19:39:13 UTC
  • mfrom: (1.2.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20100210193913-c2kyhrx49cj64z72
Tags: 1.0.111.really.1.0.108-1
* Back to 1.0.108 which works better with samba 3.4.x and 3.5.0
  (See <http://lists.alioth.debian.org/pipermail/pkg-samba-maint/
  2010-February/009100.html>)
* Cheery pick some commits from 1.0.108-3 to 1.0.111-1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
dnl find the tdb sources. This is meant to work both for 
2
2
dnl tdb standalone builds, and builds of packages using tdb
3
3
tdbdir=""
4
 
tdbpaths=". lib/tdb tdb ../tdb ../lib/tdb"
 
4
tdbpaths="$srcdir $srcdir/lib/tdb $srcdir/tdb $srcdir/../tdb"
5
5
for d in $tdbpaths; do
6
 
        if test -f "$srcdir/$d/common/tdb.c"; then
 
6
        if test -f "$d/common/tdb.c"; then
7
7
                tdbdir="$d"             
8
8
                AC_SUBST(tdbdir)
9
9
                break;
13
13
   AC_MSG_ERROR([cannot find tdb source in $tdbpaths])
14
14
fi
15
15
TDB_OBJ="common/tdb.o common/dump.o common/transaction.o common/error.o common/traverse.o"
16
 
TDB_OBJ="$TDB_OBJ common/freelist.o common/freelistcheck.o common/io.o common/lock.o common/open.o common/check.o"
 
16
TDB_OBJ="$TDB_OBJ common/freelist.o common/freelistcheck.o common/io.o common/lock.o common/open.o"
17
17
AC_SUBST(TDB_OBJ)
18
18
AC_SUBST(LIBREPLACEOBJ)
19
19
 
28
28
 
29
29
AC_HAVE_DECL(pread, [#include <unistd.h>])
30
30
AC_HAVE_DECL(pwrite, [#include <unistd.h>])
31
 
 
32
 
if test x"$VERSIONSCRIPT" != "x"; then
33
 
    EXPORTSFILE=tdb.exports
34
 
    AC_SUBST(EXPORTSFILE)
35
 
fi