-AC_PROG_INSTALL
-
-ALL_LINGUAS=""
-AM_GNU_GETTEXT
-
-AC_LANG(C++)
-
-# Check what compiler we are using
-AC_MSG_CHECKING([for GCC])
-if test "$GCC" = "yes"; then
- AC_MSG_RESULT([yes])
- CXXFLAGS="$CXXFLAGS -Wall -W -pedantic"
-else
- AC_MSG_RESULT([no, trying other compilers])
- AC_MSG_CHECKING(for MIPSpro)
- mips_pro_ver=`$CXX -version 2>&1 | grep -i mipspro | cut -f4 -d ' '`
- if test -z "$mips_pro_ver"; then
- AC_MSG_RESULT([no])
- else
- AC_MSG_RESULT([yes, version $mips_pro_ver.])
- AC_MSG_CHECKING(for -LANG:std in CXXFLAGS)
- lang_std_not_set=`echo $CXXFLAGS | grep "\-LANG:std"`
- if test "x$lang_std_not_set" = "x"; then
- AC_MSG_RESULT([not set, setting.])
- CXXFLAGS="${CXXFLAGS} -LANG:std"
- else
- AC_MSG_RESULT([already set.])
- fi
- fi
-fi
-
-# Determine if maintainer portions of the Makefiles should be included.
-AM_MAINTAINER_MODE
-
-# Check for system header files
-AC_CHECK_HEADERS(ctype.h dirent.h fcntl.h libgen.h locale.h nl_types.h process.h signal.h stdarg.h stdio.h stdlib.h string.h time.h unistd.h sys/param.h sys/select.h sys/signal.h sys/stat.h sys/time.h sys/types.h sys/wait.h)
-AC_HEADER_TIME
-
-# Determine the return type of signal handlers
-AC_TYPE_SIGNAL
-
-# Check whether to include debugging code
-DEBUG=""
-AC_MSG_CHECKING([whether to include verbose debugging code])
-AC_ARG_ENABLE([debug],
- [ --enable-debug include verbose debugging code @<:@default=no@:>@],
- if test "$enableval" = "yes"; then
- AC_MSG_RESULT([yes])
- if test "$GCC" = "yes"; then
- DEBUG="-DDEBUG -fno-inline -g"
- else
- DEBUG="-DDEBUG"
- fi
- else
- AC_MSG_RESULT([no])
- DEBUG="-DNDEBUG"
- fi,
- AC_MSG_RESULT([no])
- DEBUG="-DNDEBUG"
-)
-CXXFLAGS="$CXXFLAGS $DEBUG"
-
-# Check for Python
-AC_ARG_WITH([python],
- [ --with-python=path Set location of Python executable],
- [PYTHON="$withval"],
- [PYTHON=])