Fix out of tree build. Remove the embedded srcdir path from talloc and tdb.
authorStefan Metzmacher <metze@samba.org>
Sun, 14 Sep 2008 16:46:34 +0000 (18:46 +0200)
committerStefan Metzmacher <metze@samba.org>
Sun, 14 Sep 2008 16:46:34 +0000 (18:46 +0200)
(partialy cherry picked from commit 359921acd436684a0b4cf76ba15f82a224d2c337)
metze

source/lib/talloc/libtalloc.m4

index d2e8eba81a4ce33a05b10689300c55d0c83435d7..fd2b4b22cdbb21777d5ea90a7e303d4a9f12a7b5 100644 (file)
@@ -1,10 +1,10 @@
 dnl find the talloc sources. This is meant to work both for 
 dnl talloc standalone builds, and builds of packages using talloc
 tallocdir=""
-tallocpaths="$srcdir $srcdir/lib/talloc $srcdir/talloc $srcdir/../talloc"
+tallocpaths=". lib/talloc talloc ../talloc"
 for d in $tallocpaths; do
-       if test -f "$d/talloc.c"; then
-               tallocdir="$d"          
+       if test -f "$srcdir/$d/talloc.c"; then
+               tallocdir="$d"
                AC_SUBST(tallocdir)
                break;
        fi
@@ -15,7 +15,7 @@ fi
 TALLOC_OBJ="talloc.o"
 AC_SUBST(TALLOC_OBJ)
 
-TALLOC_CFLAGS="-I$tallocdir"
+TALLOC_CFLAGS="-I$srcdir/$tallocdir"
 AC_SUBST(TALLOC_CFLAGS)
 
 TALLOC_LIBS=""