diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-12-22 16:30:53 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-12-22 16:30:53 +0100 |
commit | a071290606a99f9975800ae97e60361c07a741c6 (patch) | |
tree | 9b61a4f52ca1b0b6008eec4b48129ceeeacbca29 /source3 | |
parent | 1807b0870bd1b50229f29b9f78f660a454682006 (diff) | |
download | samba-a071290606a99f9975800ae97e60361c07a741c6.tar.gz samba-a071290606a99f9975800ae97e60361c07a741c6.tar.bz2 samba-a071290606a99f9975800ae97e60361c07a741c6.zip |
merged build: Remove SWIG checks, set flags for shared Samba 4 build.
Diffstat (limited to 'source3')
-rw-r--r-- | source3/samba4.m4 | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/source3/samba4.m4 b/source3/samba4.m4 index 5b35d541f2..36ca9a518f 100644 --- a/source3/samba4.m4 +++ b/source3/samba4.m4 @@ -5,10 +5,6 @@ m4_include(build/m4/public.m4) m4_include(build/m4/check_python.m4) -m4_include(build/m4/ac_pkg_swig.m4) - -AC_PROG_SWIG(1.3.36) - AC_SAMBA_PYTHON_DEVEL([ SMB_EXT_LIB(EXT_LIB_PYTHON, [$PYTHON_LDFLAGS], [$PYTHON_CFLAGS]) SMB_ENABLE(EXT_LIB_PYTHON,YES) @@ -70,7 +66,7 @@ SMB_EXT_LIB_FROM_PKGCONFIG(LIBTDB, tdb >= 1.1.3, SMB_INCLUDE_MK(../lib/tdb/python.mk) -SMB_EXT_LIB_FROM_PKGCONFIG(LIBLDB, ldb >= 0.9.1, +SMB_EXT_LIB_FROM_PKGCONFIG(LIBLDB, ldb = 0.9.1, [ SMB_INCLUDE_MK(lib/ldb/ldb_ildap/config.mk) SMB_INCLUDE_MK(lib/ldb/tools/config.mk) @@ -121,6 +117,18 @@ m4_include(kdc/config.m4) m4_include(ntvfs/sysdep/config.m4) m4_include(../nsswitch/config.m4) +USESHARED=false + +AC_SUBST(INTERN_LDFLAGS) +AC_SUBST(INSTALL_LINK_FLAGS) +if test $USESHARED = "true"; +then + INTERN_LDFLAGS="-L\${builddir}/bin/shared -L\${builddir}/bin/static" + INSTALL_LINK_FLAGS="-Wl,-rpath-link,\${builddir}/bin/shared"; +else + INTERN_LDFLAGS="-L\${builddir}/bin/static -L\${builddir}/bin/shared" +fi + dnl Samba 4 files AC_SUBST(LD) AC_LIBREPLACE_SHLD_FLAGS @@ -146,7 +154,7 @@ CEOF AC_OUTPUT_COMMANDS([ cd ${srcdir}/../source4 -USESHARED=false $PERL -I${builddir} -I${builddir}/build \ +$PERL -I${builddir} -I${builddir}/build \ -I. -Ibuild \ build/smb_build/main.pl --output=../source3/samba4-data.mk main.mk || exit $? cd ../source3 |