Commit 73891c28 authored by Olivier Crête's avatar Olivier Crête 👻

Remove Python dependency

Farstream 0.2 never depended on Python directly
parent 5bcf5578
......@@ -10,7 +10,6 @@ SUBDIRS = \
docs \
common \
common-modified \
m4 \
examples
# pkgconfig
......@@ -22,7 +21,6 @@ DIST_SUBDIRS = \
docs \
common \
common-modified \
m4 \
examples
# pkgconfig
......@@ -30,7 +28,7 @@ EXTRA_DIST = \
AUTHORS COPYING NEWS README ChangeLog autogen.sh \
$(pcinfiles)
ACLOCAL_AMFLAGS = -I m4 -I common/m4
ACLOCAL_AMFLAGS = -I common/m4
check-valgrind:
cd tests/check && make check-valgrind
......
......@@ -200,7 +200,6 @@ GOBJECT_INTROSPECTION_CHECK([0.10.1])
dnl check for documentation tools
GTK_DOC_CHECK([1.18])
AS_PATH_PYTHON([2.1])
AG_GST_PLUGIN_DOCS([1.8],[2.1])
dnl Make automake happy with per-target flags
......
EXTRA_DIST = \
as-check-python-headers.m4
dnl Copy pasted from gst-python's acinclude.m4 file
dnl a macro to check for ability to create python extensions
dnl AM_CHECK_PYTHON_HEADERS([ACTION-IF-POSSIBLE], [ACTION-IF-NOT-POSSIBLE])
dnl function also defines PYTHON_INCLUDES
AC_DEFUN([AM_CHECK_PYTHON_HEADERS],
[AC_REQUIRE([AM_PATH_PYTHON])
AC_MSG_CHECKING(for headers required to compile python extensions)
dnl deduce PYTHON_INCLUDES
py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
if $PYTHON-config --help 2>/dev/null; then
PYTHON_INCLUDES=`$PYTHON-config --includes 2>/dev/null`
else
PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
if test "$py_prefix" != "$py_exec_prefix"; then
PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
fi
fi
AC_SUBST(PYTHON_INCLUDES)
dnl check if the headers exist:
save_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
AC_TRY_CPP([#include <Python.h>],dnl
[AC_MSG_RESULT(found)
$1],dnl
[AC_MSG_RESULT(not found)
$2])
CPPFLAGS="$save_CPPFLAGS"
])
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment