1AC_INIT(zaz, 1.0.1) 2AM_INIT_AUTOMAKE([-Wall -Werror]) 3AM_CONFIG_HEADER([config.h]) 4AM_MAINTAINER_MODE 5AM_GNU_GETTEXT([external]) 6AC_ISC_POSIX 7AC_PROG_CXX 8AM_PROG_CC_STDC 9AC_HEADER_STDC 10AC_PROG_RANLIB 11 12PKG_CHECK_MODULES(ZAZ, [sdl vorbis vorbisfile theoraenc theoradec]) 13PKG_CHECK_MODULES(FTGL, ftgl >= 2.1.3) 14 15AC_CHECK_LIB(SDL_image, IMG_Load, [], AC_MSG_ERROR(no SDL_image found)) 16AC_CHECK_LIB(vorbisenc, vorbis_encode_init, [], AC_MSG_ERROR(no vorbisenc found)) 17AC_CHECK_LIB(GL, main, [], AC_MSG_ERROR([OpenGL library not found.])) 18 19AC_CHECK_HEADER(GL/gl.h, [], AC_MSG_ERROR(no GL/gl.h found)) 20dnl AC_CHECK_HEADER(SDL/SDL_image.h, [], AC_MSG_ERROR(no SDL/SDL_image.h found)) 21 22AC_ARG_WITH(icondir, 23 AS_HELP_STRING([--with-icondir=DIR],[icon files [DATAROOTDIR/pixmaps]]), 24 [ with_icondir=${withval} ], [ with_icondir=${datadir}/pixmaps ]) 25AC_SUBST([icondir], [${with_icondir}]) 26 27AC_ARG_WITH(applicationdir, 28 AS_HELP_STRING([--with-applicationdir=DIR],[application files [DATAROOTDIR/applications]]), 29 [ with_applicationdir=${withval} ], [ with_applicationdir=${datadir}/applications ]) 30AC_SUBST([applicationdir], [${with_applicationdir}]) 31 32ac_enable_splash=false 33AC_ARG_ENABLE([splash], 34 AS_HELP_STRING([--enable-splash], [enable splash screen]), 35 [ac_enable_splash=true], [ac_enable_splash=false]) 36 37AC_SUBST([enable_splash], [${ac_enable_splash}]) 38 39AC_OUTPUT([ po/Makefile.in 40Makefile 41data/Makefile 42src/Makefile 43extra/Makefile 44]) 45