version 1.60, 2002/03/19 17:42:48 |
version 1.65, 2002/04/15 12:04:16 |
| |
| |
LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION | LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION |
| |
| AC_CANONICAL_HOST |
AC_SUBST(VERSION) | AC_SUBST(VERSION) |
AC_SUBST(LIBTOOL_VERSION) | AC_SUBST(LIBTOOL_VERSION) |
| |
| |
NEL_SUBDIRS="$NEL_SUBDIRS ai" | NEL_SUBDIRS="$NEL_SUBDIRS ai" |
fi | fi |
| |
| dnl Georges library |
| AC_ARG_ENABLE( georges, |
| [ --enable-georges enable compilation and install of NeL Georges.], |
| , enable_georges=no ) |
| |
| if test $enable_georges = "yes"; |
| then |
| AC_MSG_RESULT(enable NEL Georges.) |
| NEL_SUBDIRS="$NEL_SUBDIRS georges" |
| fi |
| |
AC_SUBST(enable_net) | AC_SUBST(enable_net) |
AC_SUBST(enable_3d) | AC_SUBST(enable_3d) |
AC_SUBST(enable_pacs) | AC_SUBST(enable_pacs) |
AC_SUBST(enable_sound) | AC_SUBST(enable_sound) |
AC_SUBST(enable_ai) | AC_SUBST(enable_ai) |
| AC_SUBST(enable_georges) |
| |
AC_SUBST(NEL_SUBDIRS) | AC_SUBST(NEL_SUBDIRS) |
| |
| |
| |
AC_PROG_INSTALL | AC_PROG_INSTALL |
| |
| AC_PATH_PROG(CCACHE, ccache) |
| if test "$CCACHE" |
| then |
| CXX="ccache $CXX" |
| fi |
| |
dnl ==================================================================== | dnl ==================================================================== |
dnl Configure Settings | dnl Configure Settings |
| |
| |
| |
dnl ==================================================================== | dnl ==================================================================== |
dnl OpenAL | |
| |
AM_PATH_OPENAL($enable_sound) | |
| |
| |
dnl ==================================================================== | |
dnl Python | dnl Python |
| |
AM_PATH_PYTHON(1.5,$enable_ai) | AM_PATH_PYTHON(1.5,$enable_ai) |
| |
| |
AM_PATH_XML2(2.0.0, , AC_MSG_ERROR(libxml2 must be installed.)) | AM_PATH_XML2(2.0.0, , AC_MSG_ERROR(libxml2 must be installed.)) |
| |
| CFLAGS="$CFLAGS $XML_CFLAGS" |
| CXXFLAGS="$CXXFLAGS $XML_CFLAGS" |
| |
| LIBS="$LIBS $XML_LIBS" |
| |
dnl Use C++ compiler as a default for the compilation tests. | dnl Use C++ compiler as a default for the compilation tests. |
AC_LANG_CPLUSPLUS | AC_LANG_CPLUSPLUS |
| |
| |
| |
AM_PATH_XF86VIDMODE | AM_PATH_XF86VIDMODE |
| |
| |
| dnl ==================================================================== |
| dnl OpenAL |
| |
| AM_PATH_OPENAL($enable_sound) |
| |
| |
| dnl ==================================================================== |
dnl Arrange for the include directory to be in the search path even when | dnl Arrange for the include directory to be in the search path even when |
dnl build is done outside the source tree | dnl build is done outside the source tree |
CFLAGS="$CFLAGS -I\${top_srcdir}/include" | CFLAGS="$CFLAGS -I\${top_srcdir}/include" |
CXXFLAGS="$CXXFLAGS -I\${top_srcdir}/include" | CXXFLAGS="$CXXFLAGS -I\${top_srcdir}/include" |
| |
| |
dnl ==================================================================== | dnl ==================================================================== |
dnl Checks for library functions. | dnl Checks for library functions. |
dnl ==================================================================== | dnl ==================================================================== |
| |
include/nel/ai/pyserver/Makefile \ | include/nel/ai/pyserver/Makefile \ |
include/nel/ai/script/Makefile \ | include/nel/ai/script/Makefile \ |
include/nel/ai/tools/Makefile \ | include/nel/ai/tools/Makefile \ |
| include/nel/georges/Makefile \ |
src/Makefile \ | src/Makefile \ |
src/misc/Makefile \ | src/misc/Makefile \ |
src/misc/config_file/Makefile \ | src/misc/config_file/Makefile \ |
| |
src/ai/pyserver/Makefile \ | src/ai/pyserver/Makefile \ |
src/ai/script/Makefile \ | src/ai/script/Makefile \ |
src/ai/tools/Makefile \ | src/ai/tools/Makefile \ |
| src/georges/Makefile \ |
nel-config \ | nel-config \ |
) | ) |
| |