test/configure.in
changeset 6390 3047baa4a5e0
parent 6272 f3dbef2cc0f2
child 6598 81d643a61b54
--- a/test/configure.in	Thu Aug 09 14:14:41 2012 -0400
+++ b/test/configure.in	Thu Aug 09 14:28:45 2012 -0400
@@ -13,9 +13,17 @@
 
 AC_C_CONST
 
+dnl We only care about this for building testnative at the moment, so these
+dnl  values shouldn't be considered absolute truth.
+dnl  (BeOS, for example, sets none of these.)
+ISUNIX="false"
+ISWINDOWS="false"
+ISMACOSX="false"
+
 dnl Figure out which math library to use
 case "$host" in
     *-*-cygwin* | *-*-mingw32*)
+        ISWINDOWS="true"
         EXE=".exe"
         MATHLIB=""
         SYS_GL_LIBS="-lopengl32"
@@ -26,11 +34,13 @@
         SYS_GL_LIBS="-lGL"
         ;;
     *-*-darwin* )
+        ISMACOSX="true"
         EXE=""
         MATHLIB=""
         SYS_GL_LIBS="-Wl,-framework,OpenGL"
         ;;
     *-*-aix*)
+        ISUNIX="true"
         EXE=""
         if test x$ac_cv_prog_gcc = xyes; then
             CFLAGS="-mthreads"
@@ -56,6 +66,8 @@
         SYS_GL_LIBS="-lGLES_CM"
         ;;
     *)
+        dnl Oh well, call it Unix...
+        ISUNIX="true"
         EXE=""
         MATHLIB="-lm"
         SYS_GL_LIBS="-lGL"
@@ -63,6 +75,9 @@
 esac
 AC_SUBST(EXE)
 AC_SUBST(MATHLIB)
+AC_SUBST(ISMACOSX)
+AC_SUBST(ISWINDOWS)
+AC_SUBST(ISUNIX)
 
 dnl Check for SDL
 SDL_VERSION=2.0.0