Use gtk_paned_new() instead gtk_[h|v]paned_new()
[vte.git] / acinclude.m4
1 dnl From msw.
2 dnl
3 dnl a macro to check for ability to create python extensions
4 dnl  AM_CHECK_PYTHON_HEADERS([ACTION-IF-POSSIBLE], [ACTION-IF-NOT-POSSIBLE])
5 dnl function also defines PYTHON_INCLUDES
6 AC_DEFUN([AM_CHECK_PYTHON_HEADERS],
7 [AC_REQUIRE([AM_PATH_PYTHON])
8 AC_MSG_CHECKING(for headers required to compile python extensions)
9 dnl deduce PYTHON_INCLUDES
10 py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
11 py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
12 if test -x "$PYTHON-config"; then
13     PYTHON_INCLUDES=`$PYTHON-config --includes 2>/dev/null`
14 else
15     PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
16     if test "$py_prefix" != "$py_exec_prefix"; then
17       PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
18     fi
19 fi
20 PYTHON_LIBS="-L${py_prefix}/libs -lpython${PYTHON_VERSION}"
21 AC_SUBST(PYTHON_INCLUDES)
22 AC_SUBST(PYTHON_LIBS)
23 dnl check if the headers exist:
24 save_CPPFLAGS="$CPPFLAGS"
25 CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
26 AC_TRY_CPP([#include <Python.h>],dnl
27 [AC_MSG_RESULT(found)
28 $1],dnl
29 [AC_MSG_RESULT(not found)
30 $2])
31 CPPFLAGS="$save_CPPFLAGS"
32 ])