diff options
author | Tim Potter <tpot@samba.org> | 2002-03-26 06:23:28 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2002-03-26 06:23:28 +0000 |
commit | b39e0d6b436fb7ea2395587e55ba91f8cb11da75 (patch) | |
tree | 69a3b49595db31483b4cca158c4b2f5cc4dac3e1 | |
parent | 258b72c96d2b8f057179f6f5d512913c12b17bc1 (diff) | |
download | samba-b39e0d6b436fb7ea2395587e55ba91f8cb11da75.tar.gz samba-b39e0d6b436fb7ea2395587e55ba91f8cb11da75.tar.bz2 samba-b39e0d6b436fb7ea2395587e55ba91f8cb11da75.zip |
Append $(srcdir) to include directories.
(This used to be commit ff526275669a4464ad274fac1b381945adb21719)
-rwxr-xr-x | source3/python/setup.py.in | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/source3/python/setup.py.in b/source3/python/setup.py.in index 23a7cba57d..639a32e329 100755 --- a/source3/python/setup.py.in +++ b/source3/python/setup.py.in @@ -38,6 +38,10 @@ samba_cflags = "" if os.environ.has_key("PYTHON_CFLAGS"): samba_cflags = os.environ.get("PYTHON_CFLAGS") +samba_srcdir = "" +if os.environ.has_key("SRCDIR"): + samba_srcdir = os.environ.get("SRCDIR") + # These variables are filled in by configure samba_libs = "@LIBS@" @@ -68,8 +72,10 @@ setup( # Build info - include_dirs = [".", "include", "ubiqx", "smbwrapper", - "popt", "/usr/kerberos/include", "/usr/local/include"], + include_dirs = [samba_srcdir, samba_srcdir + "include", + samba_srcdir + "ubiqx", samba_srcdir + "smbwrapper", + samba_srcdir + "popt", "/usr/kerberos/include", + "/usr/local/include"], # Module list @@ -78,9 +84,9 @@ setup( # SPOOLSS pipe module Extension(name = "spoolss", - sources = ["python/py_spoolss.c", - "python/py_spoolss_forms.c", - "python/py_common.c"], + sources = [samba_srcdir + "python/py_spoolss.c", + samba_srcdir + "python/py_spoolss_forms.c", + samba_srcdir + "python/py_common.c"], libraries = lib_list, library_dirs = ["/usr/kerberos/lib"], extra_objects = obj_list), @@ -88,8 +94,8 @@ setup( # LSA pipe module Extension(name = "lsa", - sources = ["python/py_lsa.c", - "python/py_common.c"], + sources = [samba_srcdir + "python/py_lsa.c", + samba_srcdir + "python/py_common.c"], libraries = lib_list, library_dirs = ["/usr/kerberos/lib"], extra_objects = obj_list), @@ -97,8 +103,8 @@ setup( # winbind client module Extension(name = "winbind", - sources = ["python/py_winbind.c", - "python/py_common.c"], + sources = [samba_srcdir + "python/py_winbind.c", + samba_srcdir + "python/py_common.c"], libraries = lib_list, library_dirs = ["/usr/kerberos/lib"], extra_objects = obj_list, |