eliot/configure.in

85 lines
2.4 KiB
Text
Raw Normal View History

2004-04-08 11:43:06 +02:00
dnl -*-m4-*-
dnl Process this file with autoconf to produce a configure script.
dnl --------------------------------------------------------------
dnl configure.in for Eliot
dnl --------------------------------------------------------------
2004-04-08 11:57:28 +02:00
dnl AC_REVISION($Id: configure.in,v 1.2 2004/04/08 09:57:28 afrab Exp $)
2004-04-08 11:43:06 +02:00
AC_INIT(wxwin/main.cc)
AM_INIT_AUTOMAKE(eliot, 1.4)
AM_CONFIG_HEADER(config.h)
2004-04-08 11:57:28 +02:00
AM_OPTIONS_WXCONFIG
2004-04-08 11:43:06 +02:00
dnl --------------------------------------------------------------
dnl Checks for programs.
dnl --------------------------------------------------------------
AC_PROG_INSTALL
AC_PROG_CC
AC_PROG_CXX
AC_PROG_MAKE_SET
AC_PROG_RANLIB
dnl --------------------------------------------------------------
dnl Checks for libraries.
dnl --------------------------------------------------------------
2004-04-08 11:57:28 +02:00
AM_PATH_WXCONFIG(2.3.4, wxWin=1)
if test "$wxWin" != 1; then
AC_MSG_ERROR([
wxWindows must be installed on your system
but wx-config script couldn't be found.
Please check that wx-config is in path, the directory
where wxWindows libraries are installed (returned by
'wx-config --libs' command) is in LD_LIBRARY_PATH or
equivalent variable and wxWindows version is 2.3.4 or above.
])
fi
AM_CPPFLAGS="$AM_CPPFLAGS $WX_CPPFLAGS"
CXXFLAGS="$CXXFLAGS $WX_CXXFLAGS_ONLY"
CFLAGS="$CFLAGS $WX_CFLAGS_ONLY"
LDFLAGS="$LDFLAGS $WX_LIBS"
2004-04-08 11:43:06 +02:00
dnl --------------------------------------------------------------
dnl Checks for header files.
dnl --------------------------------------------------------------
AC_HEADER_STDC
AC_CHECK_HEADERS(fcntl.h unistd.h)
dnl --------------------------------------------------------------
dnl Checks for typedefs, structures, and compiler characteristics.
dnl --------------------------------------------------------------
AC_C_CONST
AC_TYPE_SIZE_T
dnl AC_C_BIGENDIAN
AC_INLINE
AC_CHECK_SIZEOF(char, 1)
AC_CHECK_SIZEOF(short, 2)
AC_CHECK_SIZEOF(int *, 4)
AC_CHECK_SIZEOF(int, 4)
AC_CHECK_SIZEOF(long, 4)
AC_CHECK_SIZEOF(long long, 0)
dnl --------------------------------------------------------------
dnl Checks for library functions.
dnl --------------------------------------------------------------
AC_FUNC_MEMCMP
dnl --------------------------------------------------------------
dnl Output
dnl --------------------------------------------------------------
AC_OUTPUT(
dic/Makefile
game/Makefile
wxwin/Makefile
utils/Makefile
Makefile)