summaryrefslogtreecommitdiff
path: root/source4/scripting/python
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-12-13 08:36:03 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:49:50 +0100
commit8530e8429ac7b12f4bde285af2b7933610461253 (patch)
tree92535c1d1371c043fed334cad5f7d8dcc7eea12d /source4/scripting/python
parent026d67675ca86e2e0c8ca412bb2f22698d26c158 (diff)
downloadsamba-8530e8429ac7b12f4bde285af2b7933610461253.tar.gz
samba-8530e8429ac7b12f4bde285af2b7933610461253.tar.bz2
samba-8530e8429ac7b12f4bde285af2b7933610461253.zip
r26422: build: let configure print out if we have working python module support
metze (This used to be commit dfb9d704d053455d636d4f9d9d49cbfb70ada53e)
Diffstat (limited to 'source4/scripting/python')
-rw-r--r--source4/scripting/python/config.m418
1 files changed, 13 insertions, 5 deletions
diff --git a/source4/scripting/python/config.m4 b/source4/scripting/python/config.m4
index 64a8c70b41..8c4225175e 100644
--- a/source4/scripting/python/config.m4
+++ b/source4/scripting/python/config.m4
@@ -120,6 +120,7 @@ AC_SUBST(PYTHON_EXTRA_LDFLAGS)
SMB_EXT_LIB(LIBPYTHON, [$PYTHON_LDFLAGS], [$PYTHON_CPPFLAGS])
+AC_MSG_CHECKING(working python module support)
if test x$working_python = xyes
then
ac_save_LIBS="$LIBS"
@@ -128,14 +129,21 @@ then
CFLAGS="$CFLAGS $PYTHON_CPPFLAGS"
AC_TRY_LINK([
-#include <Python.h>
-#include <stdlib.h>],
-[Py_InitModule(NULL, NULL);],
- [SMB_ENABLE(LIBPYTHON,YES)],
- [SMB_ENABLE(LIBPYTHON,NO)])
+ #include <Python.h>
+ #include <stdlib.h>
+ ],[
+ Py_InitModule(NULL, NULL);
+ ],[
+ SMB_ENABLE(LIBPYTHON,YES)
+ AC_MSG_RESULT([yes])
+ ],[
+ SMB_ENABLE(LIBPYTHON,NO)
+ AC_MSG_RESULT([no])
+ ])
LIBS="$ac_save_LIBS"
CFLAGS="$ac_save_CFLAGS"
else
SMB_ENABLE(LIBPYTHON,NO)
+ AC_MSG_RESULT([no])
fi