Patch to configure.in and Makefile.in for Python extensions.
[jra/samba/.git] / source3 / python / samba-head.patch
1 Index: configure.in
2 ===================================================================
3 RCS file: /data/cvs/samba/source/configure.in,v
4 retrieving revision 1.292
5 diff -u -r1.292 configure.in
6 --- configure.in        2002/03/19 02:32:31     1.292
7 +++ configure.in        2002/03/19 23:32:36
8 @@ -2690,7 +2690,7 @@
9  builddir=`pwd`
10  AC_SUBST(builddir)
11  
12 -AC_OUTPUT(include/stamp-h Makefile)
13 +AC_OUTPUT(include/stamp-h Makefile python/setup.py)
14  
15  #################################################
16  # Print very concise instructions on building/use
17 Index: Makefile.in
18 ===================================================================
19 RCS file: /data/cvs/samba/source/Makefile.in,v
20 retrieving revision 1.458
21 diff -u -r1.458 Makefile.in
22 --- Makefile.in 2002/03/19 12:13:02     1.458
23 +++ Makefile.in 2002/03/19 23:32:08
24 @@ -778,6 +778,17 @@
25         -$(INSTALLCMD) -d ${prefix}/include
26         -$(INSTALLCMD) include/libsmbclient.h ${prefix}/include
27  
28 +# Python extensions
29 +
30 +PYTHON_OBJS = $(LIB_OBJ) $(LIBSMB_OBJ) $(RPC_PARSE_OBJ) $(UBIQX_OBJ) \
31 +       $(PARAM_OBJ) $(LIBMSRPC_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ)
32 +
33 +python_ext: $(PYTHON_OBJS)
34 +       @echo python python/setup.py build
35 +       @PYTHON_OBJS="$(PYTHON_OBJS)" PYTHON_CFLAGS="$(FLAGS)" \
36 +               python python/setup.py build
37 +
38 +
39  # revert to the previously installed version
40  revert:
41         @$(SHELL) $(srcdir)/script/revert.sh $(SBINDIR) $(SPROGS)