Adding missing changes to configure.ac
This commit is contained in:
parent
db463be5f6
commit
5fcb8254dc
@ -113,14 +113,17 @@ AC_ARG_ENABLE(json,[--enable-json/--disable-json],
|
|||||||
|
|
||||||
AC_ARG_ENABLE(python,[--enable-python/--disable-python],
|
AC_ARG_ENABLE(python,[--enable-python/--disable-python],
|
||||||
[
|
[
|
||||||
|
AX_PYTHON()
|
||||||
dnl python checks (you can change the required python version bellow)
|
dnl python checks (you can change the required python version bellow)
|
||||||
AM_PATH_PYTHON(2.7.0)
|
AM_PATH_PYTHON(2.7.0)
|
||||||
PY_PREFIX=`$PYTHON -c 'import sys ; print sys.prefix'`
|
PY_PREFIX=`$PYTHON -c 'import sys ; print sys.prefix'`
|
||||||
PYTHON_LIBS="-lpython$PYTHON_VERSION"
|
|
||||||
PYTHON_CFLAGS="-I$PY_PREFIX/include/python$PYTHON_VERSION"
|
|
||||||
AC_SUBST([PYTHON_LIBS])
|
AC_SUBST([PYTHON_LIBS])
|
||||||
AC_SUBST([PYTHON_CFLAGS])
|
AC_SUBST([PYTHON_CFLAGS])
|
||||||
])
|
EXTRA_LIBS="${EXTRA_LIBS} -l${PYTHON_LIB}"
|
||||||
|
CPPFLAGS="${CPPFLAGS} -I${PYTHON_INCLUDE_DIR}"
|
||||||
|
|
||||||
|
AC_DEFINE(USE_PYTHON,1,[use python])
|
||||||
|
])
|
||||||
|
|
||||||
#check for custom prog name
|
#check for custom prog name
|
||||||
AC_MSG_CHECKING([progname])
|
AC_MSG_CHECKING([progname])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user