~ubuntu-branches/ubuntu/quantal/zaz/quantal

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
AC_INIT(zaz, 1.0.0)

AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
AM_CONFIG_HEADER([config.h])
AM_MAINTAINER_MODE
AM_GNU_GETTEXT([external])
AC_ISC_POSIX
AC_PROG_CXX
AM_PROG_CC_STDC
AC_HEADER_STDC
AC_PROG_RANLIB

PKG_CHECK_MODULES(ZAZ, [sdl vorbisfile theoraenc theoradec])
PKG_CHECK_MODULES(FTGL, ftgl >= 2.1.3)

AC_CHECK_LIB(SDL_image, IMG_Load, [], AC_MSG_ERROR(no SDL_image found))
AC_CHECK_LIB(vorbisenc, vorbis_encode_init, [], AC_MSG_ERROR(no vorbisenc found))
AC_CHECK_LIB(GL, main, [], AC_MSG_ERROR([OpenGL library not found.]))

AC_CHECK_HEADER(GL/gl.h, [], AC_MSG_ERROR(no GL/gl.h found))
dnl AC_CHECK_HEADER(SDL/SDL_image.h, [], AC_MSG_ERROR(no SDL/SDL_image.h found))

AC_ARG_WITH(icondir,
	AS_HELP_STRING([--with-icondir=DIR],[icon files [DATAROOTDIR/pixmaps]]),
	[ with_icondir=${withval} ], [ with_icondir=${datadir}/pixmaps ])
AC_SUBST([icondir], [${with_icondir}])

AC_ARG_WITH(applicationdir,
	AS_HELP_STRING([--with-applicationdir=DIR],[application files [DATAROOTDIR/applications]]),
	[ with_applicationdir=${withval} ], [ with_applicationdir=${datadir}/applications ])
AC_SUBST([applicationdir], [${with_applicationdir}])

ac_enable_splash=true
AC_ARG_ENABLE([splash],
    AS_HELP_STRING([--disable-splash], [disable splash screen]),
    [ac_enable_splash=false], [ac_enable_splash=true])

AC_SUBST([enable_splash], [${ac_enable_splash}])

AC_OUTPUT([ po/Makefile.in
Makefile
data/Makefile
src/Makefile
extra/Makefile
])