From 12d7b433e46419950a29eed5a6855d43afe4b1d4 Mon Sep 17 00:00:00 2001 From: Aaron VonderHaar Date: Thu, 20 Feb 2003 02:01:48 +0000 Subject: [PATCH] Added two defines needed to make Linux compile --- stepmania/configure.ac | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/stepmania/configure.ac b/stepmania/configure.ac index dc32fcf648..05d10e141d 100644 --- a/stepmania/configure.ac +++ b/stepmania/configure.ac @@ -28,5 +28,21 @@ AM_PATH_SDL # in a way that breaks some configurations. SDL_LIBS="`echo $SDL_LIBS | sed 's_-L/usr/lib/\?[[ $]]__'`" + +# For now, we're only using autoconf on Linux +AH_TEMPLATE([WIN32], + [Indicates compilation on Windows]) +AH_TEMPLATE([LINUX], + [Indicates compilation on Linux]) +AC_DEFINE(LINUX) + + +# Some extra defines +AH_TEMPLATE([GL_COLOR_TABLE_FORMAT_EXT], + [Some systems (ie, Linux) don't define GL_COLOR_TABLE_FORMAT_EXT. + In these cases, use GL_COLOR_TABLE_FORMAT instead]) +AC_CHECK_DECL(GL_COLOR_TABLE_FORMAT_EXT, [], + AC_DEFINE(GL_COLOR_TABLE_FORMAT_EXT,GL_COLOR_TABLE_FORMAT) ) + AC_OUTPUT([Makefile src/Makefile])