JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
checking for SDL properly, and building again.
[vor.git] / configure.in
index 42fa0b3..1804a30 100644 (file)
@@ -2,8 +2,8 @@
 # Process this file with autoconf to produce a configure script.
 
 AC_PREREQ([2.63])
-AC_INIT([FULL-PACKAGE-NAME], [VERSION], [BUG-REPORT-ADDRESS])
-AC_CONFIG_SRCDIR([file.h])
+AC_INIT(VoR, 0.5.4, jason@jasonwoof.com, vor)
+AC_CONFIG_SRCDIR([config.h.in])
 AC_CONFIG_HEADERS([config.h])
 
 # Checks for programs.
@@ -12,10 +12,14 @@ AC_PROG_INSTALL
 AC_PROG_MAKE_SET
 
 # Checks for libraries.
-# FIXME: Replace `main' with a function in `-lSDL_image':
-AC_CHECK_LIB([SDL_image], [main])
-# FIXME: Replace `main' with a function in `-lSDL_mixer':
-AC_CHECK_LIB([SDL_mixer], [main])
+AC_CHECK_LIB([SDL_image], [IMG_LoadPNG_RW])
+AC_CHECK_LIB([SDL_mixer], [Mix_OpenAudio])
+
+SDL_VERSION=1.2.0
+AM_PATH_SDL($SDL_VERSION,
+            :,
+            AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
+)
 
 # Checks for header files.
 AC_CHECK_HEADERS([inttypes.h stddef.h stdlib.h string.h unistd.h])
@@ -33,6 +37,5 @@ AC_TYPE_UINT8_T
 AC_FUNC_MALLOC
 AC_CHECK_FUNCS([atexit memset sqrt strdup])
 
-AC_CONFIG_FILES([Makefile
-                 windows_icon/Makefile])
+AC_CONFIG_FILES([Makefile])
 AC_OUTPUT