From b4911c2abfa513e91c82a712ef277f7e6209b502 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sat, 18 Apr 2020 20:29:15 -0700 Subject: *: initial commit This is largely ripped out of Eon to try give a reusable scaffolding for accelerating SDL-based simple game development. I expect there to be future commits adding more configurability like a means of influencing which flags are passed to SDL_Init(), e.g. if you have no need for joystick support, don't pass in that flag, and libplay won't pass it to SDL_Init() and do the joystick opening/mapping dance, etc. --- configure.ac | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 configure.ac (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..22cabbd --- /dev/null +++ b/configure.ac @@ -0,0 +1,26 @@ +AC_INIT([libplay], [1.0], [vcaputo@pengaru.com]) +AM_INIT_AUTOMAKE([-Wall -Werror foreign]) +AC_PROG_CC +AM_PROG_CC_C_O +AM_PROG_AR +AC_PROG_RANLIB +AM_SILENT_RULES([yes]) + +CFLAGS="$CFLAGS -Wall" + +dnl Check for SDL2 +PKG_CHECK_MODULES(SDL2, sdl2) +CFLAGS="$CFLAGS $SDL2_CFLAGS" +LIBS="$LIBS $SDL2_LIBS" + +dnl Check for SDL2_mixer +PKG_CHECK_MODULES(SDL2_MIXER, SDL2_mixer) +LIBS="$SDL2_MIXER_LIBS $LIBS" +CFLAGS="$SDL2_MIXER_CFLAGS $CFLAGS" + +AC_CONFIG_FILES([ + Makefile + src/Makefile +]) + +AC_OUTPUT -- cgit v1.2.3