version 1.1, 2001/04/18 13:54:25 |
version 1.4, 2001/08/07 12:41:46 |
| |
AC_PROG_INSTALL | AC_PROG_INSTALL |
| |
| |
dnl ========== | |
dnl Python | |
dnl ========== | |
| |
AC_ARG_WITH( python, | |
[ --with-python=<path> path to the Python prefix installation directory. | |
e.g. /usr/local], | |
[PYTHON_PREFIX=$withval | |
AC_MSG_RESULT(using Python located in $withval.)] | |
) | |
| |
if test ! "$PYTHON_PREFIX" = "" | |
then | |
PATH="$PYTHON_PREFIX/bin:$PATH" | |
fi | |
| |
AC_ARG_WITH( python-version, | |
[ --with-python-version=<version> | |
Python version to use, e.g. 1.5], | |
[PYTHON_VERSION=$withval | |
AC_MSG_RESULT(using Python $withval.)] | |
) | |
| |
if test ! "$PYTHON_VERSION" = "" | |
then | |
PYTHON_EXEC="python$PYTHON_VERSION" | |
else | |
PYTHON_EXEC="python python2.0 python1.5" | |
fi | |
| |
AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) | |
if test "$PYTHON" = "no"; | |
then | |
AC_MSG_ERROR([Python is needed to compile NeL (www.python.org)]) | |
fi | |
| |
| |
dnl ==================================================================== | dnl ==================================================================== |
dnl Configure Settings | dnl Configure Settings |
| |
| |
| |
| |
dnl ========== | dnl ========== |
dnl Python | |
dnl ========== | |
| |
PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` | |
PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` | |
| |
PYTHON_CFLAGS="-I$PYTHON_PREFIX/include/python$PYTHON_VERSION" | |
PYTHON_LIBS="-L$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config -lpython$PYTHON_VERSION" | |
| |
_CPPFLAGS="$CPPFLAGS" | |
CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" | |
| |
AC_SUBST(PYTHON_CFLAGS) | |
| |
AC_MSG_CHECKING(for Python header files) | |
AC_EGREP_CPP( yo_python, | |
[#include <Python.h> | |
yo_python | |
], | |
[AC_MSG_RESULT(ok)], | |
AC_MSG_ERROR([Python is needed to compile NeL (www.python.org).]) | |
) | |
| |
CPPFLAGS="$_CPPFLAGS" | |
| |
AC_SUBST(PYTHON_CFLAGS) | |
AC_SUBST(PYTHON_LIBS) | |
| |
| |
dnl ========== | |
dnl Debug/optimized compilation mode | dnl Debug/optimized compilation mode |
dnl ========== | dnl ========== |
| |
| |
log_service/Makefile \ | log_service/Makefile \ |
naming_service/Makefile \ | naming_service/Makefile \ |
time_service/Makefile \ | time_service/Makefile \ |
agent_service/Makefile \ | |
agent_service/creature/Makefile \ | |
agent_service/plugin/Makefile \ | |
admin_executor_service/Makefile \ | admin_executor_service/Makefile \ |
| admin_service/Makefile \ |
| welcome_service/Makefile \ |
) | ) |
| |
| |