version 1.61, 2002/03/21 10:54:37 |
version 1.70, 2002/04/25 17:53:36 |
| |
| |
AM_CONFIG_HEADER(include/nelconfig.h) | AM_CONFIG_HEADER(include/nelconfig.h) |
| |
| dnl Get host type info |
| AC_CANONICAL_HOST |
| if test "$host_cpu" = "i386" -o "$host_cpu" = "i486" \ |
| -o "$host_cpu" = "i586" -o "$host_cpu" = "i686" \ |
| -o "$host_cpu" = "i786" |
| then |
| AC_DEFINE(HAVE_X86) |
| fi |
| |
dnl The following hack should ensure that configure doesnt add optimizing | dnl The following hack should ensure that configure doesnt add optimizing |
dnl or debugging flags to CFLAGS or CXXFLAGS | dnl or debugging flags to CFLAGS or CXXFLAGS |
| |
| |
AC_PROG_INSTALL | AC_PROG_INSTALL |
| |
| AM_PATH_CCACHE |
| |
| |
dnl ==================================================================== | dnl ==================================================================== |
dnl Configure Settings | dnl Configure Settings |
| |
dnl Checks for typedefs, structures, and compiler characteristics. | dnl Checks for typedefs, structures, and compiler characteristics. |
dnl ==================================================================== | dnl ==================================================================== |
| |
| dnl Test endianness |
| AC_C_BIGENDIAN |
| |
dnl Supress GCC "multi-character character constant" warnings. | dnl Supress GCC "multi-character character constant" warnings. |
if test "X$CC" = "Xgcc"; | if test "X$CC" = "Xgcc"; |
then | then |
| |
| |
| |
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) |
| |
dnl ==================================================================== | dnl ==================================================================== |
dnl LibXML | dnl LibXML |
| |
dnl Use C++ compiler as a default for the compilation tests. | dnl Use C compiler as a default for the libxml tests. |
AC_LANG_C | AC_LANG_C |
| |
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" | dnl Put the nelconfig.h define |
CXXFLAGS="$CXXFLAGS -I\${top_srcdir}/include" | CFLAGS="$CFLAGS -I\${top_srcdir}/include -DHAVE_NELCONFIG_H" |
| CXXFLAGS="$CXXFLAGS -I\${top_srcdir}/include -DHAVE_NELCONFIG_H" |
| |
| |
dnl ==================================================================== | dnl ==================================================================== |
dnl Checks for library functions. | dnl Checks for library functions. |