AC_INIT([Blocks of the Undead], [1.0], [jluxenbe@andrew.cmu.edu], [BlocksOfTheUndead]) AC_CONFIG_SRCDIR([TetrisAttack/src/CApplyGravityEvent.cpp]) AM_INIT_AUTOMAKE AM_OPTIONS_WXCONFIG AC_ARG_ENABLE([animview], AS_HELP_STRING([--enable-animview], [build AnimView (default is auto)]), [case $enableval in yes) animview=1 ;; no) animview=0 ;; auto) animview=2 ;; *) AC_MSG_ERROR([Invalid argument ${enableval} for --enable-animview]) ;; esac], [animview=2]) AC_ARG_ENABLE([puzzleedit], AS_HELP_STRING([--enable-puzzleedit], [build PuzzleEdit (does not work) (default is no)]), [case $enableval in yes) puzzleedit=1 ;; no) puzzleedit=0 ;; *) AC_MSG_ERROR([Invalid argument ${enableval} for --enable-puzzleedit]) ;; esac], [puzzleedit=0]) AC_PROG_CXX AC_PROG_INSTALL AC_PROG_RANLIB AM_PATH_SDL([1.2.0], [CPPFLAGS=$SDL_CFLAGS $CPPFLAGS LIBS=$SDL_LIBS $LIBS]) AM_PATH_WXCONFIG([2.4.0], [have_wxwin=1]) AC_CHECK_LIB([SDL_image], [IMG_Load]) AC_CHECK_LIB([SDL_gfx], [aalineColor]) AC_CHECK_LIB([SDL_ttf], [TTF_OpenFont]) AC_CHECK_LIB([SDL_mixer], [Mix_OpenAudio]) AC_CHECK_HEADER([SDL_image.h], [], AC_MSG_ERROR([[A required header file, SDL_image.h is missing]])) AC_CHECK_HEADER([SDL_gfxPrimitives.h], [], AC_MSG_ERROR([[A required header file, SDL_gfxPrimitives.h is missing]])) AC_CHECK_HEADER([SDL_ttf.h], [], AC_MSG_ERROR([[A required header file, SDL_ttf.h is missing]])) AC_CHECK_HEADER([SDL_mixer.h], [], AC_MSG_ERROR([[A required header file, SDL_mixer.h is missing]])) CPPFLAGS="$CPPFLAGS -DPKGDATADIR=\\\"\${pkgdatadir}\\\"" if test $animview = 2; then if test "$have_wxwin" = 1; then animview=1 else animview=0 fi fi AM_CONDITIONAL([COND_ANIMVIEW], [test $animview = 1]) if test $animview = 1; then if test "$have_wxwin" != 1; then AC_MSG_ERROR([AnimViewer requires wxWindows, but the wx-config program could not be found]) fi fi AM_CONDITIONAL([COND_PUZZLEEDIT], [test $puzzleedit = 1]) if test $puzzleedit = 1; then if test "$have_wxwin" != 1; then AC_MSG_ERROR([PuzzleEdit requires wxWindows, but the wx-config program could not be found]) fi fi AC_CONFIG_FILES([Makefile \ AnimView/Makefile \ AnimView/src/Makefile \ Oodle/Makefile \ Oodle/src/Makefile \ PuzzleEdit/Makefile \ PuzzleEdit/src/Makefile TetrisAttack/Makefile \ TetrisAttack/assets/Makefile \ TetrisAttack/assets/fonts/Makefile \ TetrisAttack/assets/img/Makefile \ TetrisAttack/assets/img/1/Makefile \ TetrisAttack/assets/img/1/640x480/Makefile \ TetrisAttack/assets/img/2/Makefile \ TetrisAttack/assets/img/2/640x480/Makefile \ TetrisAttack/assets/img/3/Makefile \ TetrisAttack/assets/img/3/640x480/Makefile \ TetrisAttack/assets/lvls/Makefile \ TetrisAttack/assets/lvls/1/Makefile \ TetrisAttack/assets/lvls/2/Makefile \ TetrisAttack/assets/lvls/3/Makefile \ TetrisAttack/assets/snd/Makefile \ TetrisAttack/src/Makefile]) AC_OUTPUT