diff --git a/configure b/configure index 0a19b033bc..1c1d8232a9 100755 --- a/configure +++ b/configure @@ -848,7 +848,7 @@ if test "$mingw32" = "yes" ; then QEMU_CFLAGS="-D__USE_MINGW_ANSI_STDIO=1 $QEMU_CFLAGS" # MinGW needs -mthreads for TLS and macro _MT. QEMU_CFLAGS="-mthreads $QEMU_CFLAGS" - LIBS="-lwinmm -lws2_32 -liphlpapi $LIBS" + LIBS="-lwinmm -lws2_32 -liphlpapi -lopengl32 -lglew32 -lgdi32 $LIBS" write_c_skeleton; if compile_prog "" "-liberty" ; then LIBS="-liberty $LIBS" @@ -2945,6 +2945,22 @@ EOF fi fi + +# Xbox hack to include ogl framework +if test "$darwin" = "yes" ; then + sdl_libs="$sdl_libs -framework OpenGL" +# cat > $TMPC << EOF +# #include +# #include +# #include +# int main(void) { return GL_VERSION != 0; } +# EOF +fi + +if test "$linux" = "yes" ; then + sdl_libs="$sdl_libs -lGLEW -lGLU -lGL" +fi + ########################################## # RDMA needs OpenFabrics libraries if test "$rdma" != "no" ; then @@ -3368,7 +3384,7 @@ if test "$mingw32" = yes; then else glib_req_ver=2.22 fi -glib_modules=gthread-2.0 +glib_modules="gthread-2.0 gobject-2.0" if test "$modules" = yes; then glib_modules="$glib_modules gmodule-export-2.0" fi