summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-09-09 23:35:17 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-09-09 23:35:17 +0200
commit1d8973a82eda362d19dbfe79529d10baf6f97d9d (patch)
treea165469890ce6dccbbabb2d03c10800d9d6cb020
parentd7dbb530b57e4bce56a02df93474a3b893190b2d (diff)
downloadsamba-1d8973a82eda362d19dbfe79529d10baf6f97d9d.tar.gz
samba-1d8973a82eda362d19dbfe79529d10baf6f97d9d.tar.bz2
samba-1d8973a82eda362d19dbfe79529d10baf6f97d9d.zip
Attempt to correctly find python on host sunx
(This used to be commit 59b62280d27a9e0a72241e4b60022be07e4cbce2)
-rw-r--r--source4/scripting/python/config.m45
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/scripting/python/config.m4 b/source4/scripting/python/config.m4
index b599aaefb0..5607accb7c 100644
--- a/source4/scripting/python/config.m4
+++ b/source4/scripting/python/config.m4
@@ -48,8 +48,9 @@ fi
if test -z "$PYTHON_CONFIG"; then
AC_MSG_WARN([No python-config found])
else
- TRY_LINK_PYTHON([`$PYTHON_CONFIG --ldflags`], [`$PYTHON_CONFIG --includes`])
- TRY_LINK_PYTHON([`$PYTHON_CONFIG --ldflags`], [`$PYTHON_CONFIG --cflags`])
+ base=`$PYTHON_CONFIG --prefix`
+ TRY_LINK_PYTHON([`echo -n -L${base}/lib " "; $PYTHON_CONFIG --ldflags`], [`$PYTHON_CONFIG --includes`])
+ TRY_LINK_PYTHON([`echo -n -L${base}/lib " "; $PYTHON_CONFIG --ldflags`], [`$PYTHON_CONFIG --cflags`])
fi
if test x$PYTHON != x