Skip to content

Commit 0f4ceaa

Browse files
committed
Adding missing changes to configure.ac
1 parent 35b5623 commit 0f4ceaa

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

‎configure.ac

+6-4
Original file line numberDiff line numberDiff line change
@@ -94,17 +94,19 @@ AC_ARG_ENABLE(liblua,[--enable-liblua/--disable-liblua],
9494
AC_MSG_ERROR([No lua found. Try --disable-liblua])
9595
])
9696
])
97-
9897
AC_ARG_ENABLE(python,[--enable-python/--disable-python],
9998
[
99+
AX_PYTHON()
100100
dnl python checks (you can change the required python version bellow)
101101
AM_PATH_PYTHON(2.7.0)
102102
PY_PREFIX=`$PYTHON -c 'import sys ; print sys.prefix'`
103-
PYTHON_LIBS="-lpython$PYTHON_VERSION"
104-
PYTHON_CFLAGS="-I$PY_PREFIX/include/python$PYTHON_VERSION"
105103
AC_SUBST([PYTHON_LIBS])
106104
AC_SUBST([PYTHON_CFLAGS])
107-
])
105+
EXTRA_LIBS="${EXTRA_LIBS} -l${PYTHON_LIB}"
106+
CPPFLAGS="${CPPFLAGS} -I${PYTHON_INCLUDE_DIR}"
107+
108+
AC_DEFINE(USE_PYTHON,1,[use python])
109+
])
108110

109111
#check for custom prog name
110112
AC_ARG_WITH(progname,[--with-progname=<name>],

0 commit comments

Comments
 (0)