r26100: Also check for SWIG.
authorJelmer Vernooij <jelmer@samba.org>
Wed, 21 Nov 2007 15:04:13 +0000 (16:04 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 21 Dec 2007 04:46:03 +0000 (05:46 +0100)
.bzrignore
source/build/smb_build/makefile.pm
source/configure.ac
source/libcli/config.m4 [deleted file]
source/scripting/python/config.m4
source/scripting/python/config.mk

index 1dca07b6c7713c7c5a9377c8cf42dd3e1e99af7f..71fff6bb38b86afb29268a4600dcec5318281f3e 100644 (file)
@@ -217,3 +217,4 @@ source/librpc/rpc/dcerpc.py
 source/scripting/python/misc.py
 source/scripting/python/misc_wrap.c
 source/auth/auth.py
 source/scripting/python/misc.py
 source/scripting/python/misc_wrap.c
 source/auth/auth.py
+source/lib/registry/tests/proto.h
index cd73aeb8a7b814811d45a75b7ce94ea24dcf0ccf..954c476f33801481be0608180a1a6bd95a213bcb 100644 (file)
@@ -183,6 +183,7 @@ SHELL=$self->{config}->{SHELL}
 
 PERL=$self->{config}->{PERL}
 PYTHON=$self->{config}->{PYTHON}
 
 PERL=$self->{config}->{PERL}
 PYTHON=$self->{config}->{PYTHON}
+SWIG=$self->{config}->{SWIG}
 
 CPP=$self->{config}->{CPP}
 CPPFLAGS=$builddir_headers-I\$(srcdir)/include -I\$(srcdir) -I\$(srcdir)/lib -I\$(srcdir)/lib/replace -I\$(srcdir)/lib/talloc -D_SAMBA_BUILD_=4 -DHAVE_CONFIG_H $self->{config}->{CPPFLAGS}
 
 CPP=$self->{config}->{CPP}
 CPPFLAGS=$builddir_headers-I\$(srcdir)/include -I\$(srcdir) -I\$(srcdir)/lib -I\$(srcdir)/lib/replace -I\$(srcdir)/lib/talloc -D_SAMBA_BUILD_=4 -DHAVE_CONFIG_H $self->{config}->{CPPFLAGS}
index f4fb671aed7bca0ecd9656de8832c897b6dd26fa..0163940bc0df7de25a95961e23f1e61b7360fe2d 100644 (file)
@@ -92,7 +92,6 @@ m4_include(kdc/config.m4)
 m4_include(ntvfs/sysdep/config.m4)
 m4_include(lib/appweb/config.m4)
 m4_include(nsswitch/config.m4)
 m4_include(ntvfs/sysdep/config.m4)
 m4_include(lib/appweb/config.m4)
 m4_include(nsswitch/config.m4)
-m4_include(libcli/config.m4)
 
 #################################################
 # add *_CFLAGS only for the real build
 
 #################################################
 # add *_CFLAGS only for the real build
diff --git a/source/libcli/config.m4 b/source/libcli/config.m4
deleted file mode 100644 (file)
index e31359f..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-AC_MSG_CHECKING([for Python (libcli_nbt)])
-
-PYTHON=
-AC_ARG_WITH(python,
-[  --with-python=PYTHONNAME  build Python libraries],
-[ case "${withval-python}" in
-  yes)
-        PYTHON=python
-        ;;
-  no)
-        PYTHON=
-        ;;
-  *)
-        PYTHON=${withval-python}
-        ;;
-  esac ])
-
-if test x"$PYTHON" != "x"; then
-       incdir=`python -c 'import sys; print "%s/include/python%d.%d" % (sys.prefix, sys.version_info[[0]], sys.version_info[[1]])'`
-       CPPFLAGS="$CPPFLAGS -I $incdir"
-fi
-
-if test x"$PYTHON" != "x"; then
-       AC_MSG_RESULT([${withval-python}])
-else
-       AC_MSG_RESULT(no)
-       SMB_ENABLE(swig_libcli_nbt, NO)
-fi
-
-AC_SUBST(PYTHON)
index 0b5e174590b7734b5f487e695c3e12b669008677..48103a07826a1ae4915a2117af660e0b74961c88 100644 (file)
@@ -3,6 +3,7 @@ AC_ARG_VAR([PYTHON_VERSION],[The installed Python
        will be appended to the Python interpreter
        canonical name.])
 
        will be appended to the Python interpreter
        canonical name.])
 
+AC_PATH_PROG(SWIG,swig,no)
 AC_PATH_PROG([PYTHON],[python[$PYTHON_VERSION]])
 if test -z "$PYTHON"; then
        working_python=no
 AC_PATH_PROG([PYTHON],[python[$PYTHON_VERSION]])
 if test -z "$PYTHON"; then
        working_python=no
@@ -115,10 +116,9 @@ AC_SUBST(PYTHON_EXTRA_LDFLAGS)
 
 SMB_EXT_LIB(LIBPYTHON, [$PYTHON_LDFLAGS], [$PYTHON_CPPFLAGS])
 
 
 SMB_EXT_LIB(LIBPYTHON, [$PYTHON_LDFLAGS], [$PYTHON_CPPFLAGS])
 
-if test x$working_python = xyes
+if test x$working_python = xyes && test x$SWIG != xno
 then
        SMB_ENABLE(LIBPYTHON,YES)
 else
        SMB_ENABLE(LIBPYTHON,NO)
 fi
 then
        SMB_ENABLE(LIBPYTHON,YES)
 else
        SMB_ENABLE(LIBPYTHON,NO)
 fi
-
index b70d98d908ccb88f7f3516051929ef18f2296c56..c1760772672efca0e2b1d0243364849494f5a073 100644 (file)
@@ -20,7 +20,7 @@ swig: pythonmods
 .SUFFIXES: _wrap.c .i
 
 .i_wrap.c:
 .SUFFIXES: _wrap.c .i
 
 .i_wrap.c:
-       swig -Wall -I$(srcdir)/scripting/swig -python $<
+       $(SWIG) -Wall -I$(srcdir)/scripting/swig -python $<
 
 clean::
        @echo "Removing SWIG output files"
 
 clean::
        @echo "Removing SWIG output files"