Skip to content

Commit 5fcb825

Browse files
committed
Adding missing changes to configure.ac
1 parent db463be commit 5fcb825

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

‎configure.ac

+6-3
Original file line numberDiff line numberDiff line change
@@ -113,14 +113,17 @@ AC_ARG_ENABLE(json,[--enable-json/--disable-json],
113113

114114
AC_ARG_ENABLE(python,[--enable-python/--disable-python],
115115
[
116+
AX_PYTHON()
116117
dnl python checks (you can change the required python version bellow)
117118
AM_PATH_PYTHON(2.7.0)
118119
PY_PREFIX=`$PYTHON -c 'import sys ; print sys.prefix'`
119-
PYTHON_LIBS="-lpython$PYTHON_VERSION"
120-
PYTHON_CFLAGS="-I$PY_PREFIX/include/python$PYTHON_VERSION"
121120
AC_SUBST([PYTHON_LIBS])
122121
AC_SUBST([PYTHON_CFLAGS])
123-
])
122+
EXTRA_LIBS="${EXTRA_LIBS} -l${PYTHON_LIB}"
123+
CPPFLAGS="${CPPFLAGS} -I${PYTHON_INCLUDE_DIR}"
124+
125+
AC_DEFINE(USE_PYTHON,1,[use python])
126+
])
124127

125128
#check for custom prog name
126129
AC_MSG_CHECKING([progname])

0 commit comments

Comments
 (0)