1
dnl Process this file with autoconf to produce a configure script.
4
dnl Every other copy of the package version number gets its value from here
5
AM_INIT_AUTOMAKE(widelands, 0.0.15)
7
dnl create a config.h file (Automake will add -DHAVE_CONFIG_H)
8
AM_CONFIG_HEADER(src/config.h)
12
ISODATE=`date +%Y-%m-%d`
16
AC_ARG_ENABLE(libsdl, [ --enable-libsdl Use libsdl (yes)], libsdl_try=no, libsdl_try=yes)
18
dnl Checks for programs.
23
dnl Checks for libraries.
24
if test "$libsdl_try" = "yes" ; then
25
AM_PATH_SDL(1.0.0, has_sdl=1, has_sdl=0 )
26
if test ! $has_sdl ; then
27
AC_MSG_WARN(There is no libsdl found! e
34
dnl Checks for header files.
36
AC_CHECK_HEADERS(unistd.h)
38
dnl Checks for typedefs, structures, and compiler characteristics.
40
dnl Checks for library functions.
42
AC_SUBST(src pkgdatadir)
44
AC_OUTPUT([Makefile src/Makefile])