summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/samba4.m44
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/samba4.m4 b/source3/samba4.m4
index 05d655217f..ed49347cb6 100644
--- a/source3/samba4.m4
+++ b/source3/samba4.m4
@@ -129,8 +129,12 @@ SMB_WRITE_MAKEVARS(samba4-config.mk, [prefix exec_prefix CPPFLAGS LDSHFLAGS POPT
oldbuilddir="$builddir"
builddir="$builddir/../source4"
+oldsrcdir="$srcdir"
+srcdir="$srcdir/../source4"
+AC_SUBST(srcdir)
SMB_WRITE_PERLVARS(../source4/build/smb_build/config.pm)
builddir="$oldbuilddir"
+srcdir="$oldsrcdir"
echo "configure: creating ../source4/config.mk"
cat >../source4/config.mk<<CEOF