Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.in12
1 files changed, 10 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index 7c3f645..74551a2 100644
--- a/configure.in
+++ b/configure.in
@@ -104,7 +104,7 @@ dnl
*-*-mingw*)
HOST_LIBS="-lws2_32 -lz"
- HOST_GL_LIBS="-lopengl32"
+ HOST_GL_LIBS="-lopengl32 -lglu32"
HOST_AL_LIBS="-lopenal32"
ICON_CLIENT="osirion-res.o"
ICON_SERVER="osiriond-res.o"
@@ -115,7 +115,7 @@ dnl
;;
*)
HOST_LIBS="-lz"
- HOST_GL_LIBS="-lGL"
+ HOST_GL_LIBS="-lGL -lGLU"
HOST_AL_LIBS="-lopenal"
ICON_CLIENT=""
ICON_SERVER=""
@@ -271,11 +271,19 @@ else
[],
[AC_MSG_ERROR([OpenGL/gl.h not found])]
)
+ AC_CHECK_HEADER(OpenGL/glu.h,
+ [],
+ [AC_MSG_ERROR([OpenGL/glu.h not found])]
+ )
else
AC_CHECK_HEADER(GL/gl.h,
[],
[AC_MSG_ERROR([GL/gl.h not found])]
)
+ AC_CHECK_HEADER(GL/glu.h,
+ [],
+ [AC_MSG_ERROR([GL/glu.h not found])]
+ )
fi
LD_FLAGS="$LDFLAGS_save"