[svn] commit: r1715 - in /experiments/python-binding: configure.ac src/lib/dns/python/Makefile src/lib/dns/python/Makefile.in
BIND 10 source code commits
bind10-changes at lists.isc.org
Thu Apr 15 10:43:48 UTC 2010
Author: jelte
Date: Thu Apr 15 10:43:48 2010
New Revision: 1715
Log:
removed accidentally added generated makefiles
updated configure.ac to check for existence of python-config and Python.h
Removed:
experiments/python-binding/src/lib/dns/python/Makefile
experiments/python-binding/src/lib/dns/python/Makefile.in
Modified:
experiments/python-binding/configure.ac
Modified: experiments/python-binding/configure.ac
==============================================================================
--- experiments/python-binding/configure.ac (original)
+++ experiments/python-binding/configure.ac Thu Apr 15 10:43:48 2010
@@ -48,12 +48,22 @@
AC_SUBST(pkgpyexecdir)
fi
+if test ! -x ${PYTHON}-config; then
+ AC_MSG_ERROR([${PYTHON}-config not found])
+fi
+
PYTHON_INCLUDES=`${PYTHON}-config --includes`
AC_SUBST(PYTHON_INCLUDES)
for flag in `${PYTHON}-config --ldflags`; do
PYTHON_LDFLAGS="$PYTHON_LDFLAGS `echo $flag | sed -ne 's/^\(\-L.*\)$/\1/p'`"
done
AC_SUBST(PYTHON_LDFLAGS)
+
+CPPFLAGS_SAVED="$CPPFLAGS"
+CPPFLAGS="$CPPFLAGS ${PYTHON_INCLUDES}"
+AC_CHECK_HEADERS([Python.h],, AC_MSG_ERROR([Missing Python.h]))
+CPPFLAGS="$CPPFLAGS_SAVED"
+
# Check for python library (not absolutely mandatory, but needed for
# Boost.Python when we use it. See below.)
More information about the bind10-changes
mailing list