~son-of-yhwh/widelands/experimental

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: sirver
  • Date: 2002-02-05 20:54:08 UTC
  • Revision ID: git-v1:df384fd3a5e53be1f37803d1c0381fa993844bf5
Initial revision


git-svn-id: https://widelands.svn.sourceforge.net/svnroot/widelands/trunk@2 37b2a8de-5219-0410-9f54-a31bc463ab9c

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl Process this file with autoconf to produce a configure script.
 
2
 
 
3
AC_INIT(README)
 
4
dnl Every other copy of the package version number gets its value from here
 
5
AM_INIT_AUTOMAKE(widelands, 0.0.15)
 
6
 
 
7
dnl create a config.h file (Automake will add -DHAVE_CONFIG_H)
 
8
AM_CONFIG_HEADER(src/config.h)
 
9
 
 
10
AC_SUBST(VERSION)
 
11
 
 
12
ISODATE=`date +%Y-%m-%d`
 
13
AC_SUBST(ISODATE)
 
14
 
 
15
AC_CANONICAL_HOST
 
16
AC_ARG_ENABLE(libsdl, [  --enable-libsdl    Use libsdl (yes)], libsdl_try=no, libsdl_try=yes)
 
17
 
 
18
dnl Checks for programs.
 
19
AC_PROG_INSTALL
 
20
AC_PROG_CC
 
21
AC_PROG_CXX
 
22
 
 
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
 
28
                                         xit!!);
 
29
                                         exit -1;
 
30
                  fi;
 
31
fi
 
32
 
 
33
 
 
34
dnl Checks for header files.
 
35
AC_HEADER_STDC
 
36
AC_CHECK_HEADERS(unistd.h)
 
37
 
 
38
dnl Checks for typedefs, structures, and compiler characteristics.
 
39
 
 
40
dnl Checks for library functions.
 
41
AC_SUBST(LIBSDL_LIB)
 
42
AC_SUBST(src pkgdatadir)
 
43
 
 
44
AC_OUTPUT([Makefile src/Makefile])