summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconfigure.ac2
-rw-r--r--src/Makefile.am4
2 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 756160ce8..6b4230491 100755
--- a/configure.ac
+++ b/configure.ac
@@ -203,8 +203,8 @@ else
else
LDFLAGS="$LDFLAGS -framework OpenGL"
fi
- AC_DEFINE(USE_OPENGL, 1, [Defines if ManaPlus should have OpenGL support])
fi
+AM_CONDITIONAL(USE_OPENGL, test x$with_opengl = xyes)
# Option to enable internal guichan
AC_ARG_WITH(internalguichan,[ --without-internalguichan don't use internal guichan ] )
diff --git a/src/Makefile.am b/src/Makefile.am
index be3bea2ee..c9487040d 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -10,6 +10,10 @@ if ENABLE_PORTABLE
manaplus_CXXFLAGS += -DENABLE_PORTABLE
endif
+if USE_OPENGL
+manaplus_CXXFLAGS += -DUSE_OPENGL
+endif
+
if ENABLE_MEM_DEBUG
manaplus_CXXFLAGS += -DENABLE_MEM_DEBUG -DDEBUG_DUMP_LEAKS