]> git.jsancho.org Git - gacela.git/blob - configure.ac
A new way of instantiating mobs.
[gacela.git] / configure.ac
1 AC_INIT([gacela], [0.5], [jsf@jsancho.org])
2 AM_INIT_AUTOMAKE([-Wall -Werror foreign])
3 LT_INIT
4 AC_PROG_CC
5 AC_PROG_LIBTOOL
6 GUILE_FLAGS
7
8 AC_DEFUN([GACELA_DEPS],
9     for lib in $1 ; do
10         AC_CHECK_LIB(${lib}, main, [$2="${$2} -l${lib}"], AC_MSG_ERROR([*** ${lib} library not found!]))
11     done
12     [AC_SUBST([$2])]
13 )
14 GACELA_DEPS(SDL SDL_image SDL_gfx SDL_mixer, SDL_LIBS)
15 GACELA_DEPS(GL GLU, GL_LIBS)
16 GACELA_DEPS(ftgl, FTGL_LIBS)
17
18 AC_CONFIG_MACRO_DIR([m4])
19 AC_CONFIG_SRCDIR([src/sdl.c])
20 AC_CONFIG_HEADERS([config.h])
21 AC_CONFIG_FILES([
22     Makefile
23     src/Makefile
24 ])
25 AC_OUTPUT