configure: Remove checks for OpenGL headers that are no longer used.

This commit is contained in:
Alexandre Julliard 2012-11-08 00:14:44 +01:00
parent 551077ab73
commit e40b2a1b07
3 changed files with 61 additions and 182 deletions

117
configure vendored
View File

@ -2613,7 +2613,7 @@ fi
# Check whether --with-glu was given. # Check whether --with-glu was given.
if test "${with_glu+set}" = set; then : if test "${with_glu+set}" = set; then :
withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi withval=$with_glu;
fi fi
@ -2685,7 +2685,7 @@ fi
# Check whether --with-osmesa was given. # Check whether --with-osmesa was given.
if test "${with_osmesa+set}" = set; then : if test "${with_osmesa+set}" = set; then :
withval=$with_osmesa; if test "x$withval" = "xno"; then ac_cv_header_GL_osmesa_h=no; fi withval=$with_osmesa;
fi fi
@ -8878,52 +8878,6 @@ fi
opengl_msg="" opengl_msg=""
if test "x$with_opengl" != "xno" if test "x$with_opengl" != "xno"
then
for ac_header in GL/gl.h GL/glx.h GL/glu.h GL/osmesa.h
do :
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
# include <GL/glx.h>
#endif
"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
fi
done
if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
$as_echo_n "checking for up-to-date OpenGL version... " >&6; }
if ${wine_cv_opengl_header_version_OK+:} false; then :
$as_echo_n "(cached) " >&6
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <GL/gl.h>
int
main ()
{
GLenum test = GL_UNSIGNED_SHORT_5_6_5; return (test == GL_UNSIGNED_SHORT_5_6_5);
;
return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
wine_cv_opengl_header_version_OK="yes"
else
wine_cv_opengl_header_version_OK="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
$as_echo "$wine_cv_opengl_header_version_OK" >&6; }
if test "$wine_cv_opengl_header_version_OK" = "yes"
then then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
$as_echo_n "checking for -lGL... " >&6; } $as_echo_n "checking for -lGL... " >&6; }
@ -9019,9 +8973,6 @@ cat >>confdefs.h <<_ACEOF
_ACEOF _ACEOF
OPENGL_LIBS="-Xlinker -dylib_file -Xlinker /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib -lGL" OPENGL_LIBS="-Xlinker -dylib_file -Xlinker /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib -lGL"
$as_echo "#define HAVE_OPENGL 1" >>confdefs.h
fi fi
else else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
@ -9032,20 +8983,17 @@ cat >>confdefs.h <<_ACEOF
_ACEOF _ACEOF
OPENGL_LIBS="-lGL" OPENGL_LIBS="-lGL"
$as_echo "#define HAVE_OPENGL 1" >>confdefs.h
fi fi
if test "$ac_cv_header_GL_glu_h" = "yes" if test "x$with_glu" != "xno"
then then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluLookAt in -lGLU" >&5
$as_echo_n "checking for -lGLU... " >&6; } $as_echo_n "checking for gluLookAt in -lGLU... " >&6; }
if ${ac_cv_lib_soname_GLU+:} false; then : if ${ac_cv_lib_GLU_gluLookAt+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
ac_check_soname_save_LIBS=$LIBS ac_check_lib_save_LIBS=$LIBS
LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS" LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error. /* Override any GCC internal prototype to avoid an error.
@ -9064,32 +9012,21 @@ return gluLookAt ();
} }
_ACEOF _ACEOF
if ac_fn_c_try_link "$LINENO"; then : if ac_fn_c_try_link "$LINENO"; then :
case "$LIBEXT" in ac_cv_lib_GLU_gluLookAt=yes
dll) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest.exe | grep "GLU" | sed -e "s/dll.*/dll/"';2,$d'` ;; else
dylib) ac_cv_lib_soname_GLU=`otool -L conftest$ac_exeext | grep "libGLU\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libGLU\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; ac_cv_lib_GLU_gluLookAt=no
*) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
esac
fi fi
rm -f core conftest.err conftest.$ac_objext \ rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_soname_save_LIBS LIBS=$ac_check_lib_save_LIBS
fi fi
if test "x$ac_cv_lib_soname_GLU" = "x"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluLookAt" >&5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "$ac_cv_lib_GLU_gluLookAt" >&6; }
$as_echo "not found" >&6; } if test "x$ac_cv_lib_GLU_gluLookAt" = xyes; then :
:
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
$as_echo "$ac_cv_lib_soname_GLU" >&6; }
cat >>confdefs.h <<_ACEOF
#define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
_ACEOF
fi fi
fi
if test "x$ac_cv_lib_soname_GLU" = "x"; then : if test "x$ac_cv_lib_GLU_gluLookAt" != xyes; then :
case "x$with_glu" in case "x$with_glu" in
x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;; x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
xno) ;; xno) ;;
@ -9097,8 +9034,9 @@ fi
This is an error since --with-glu was requested." "$LINENO" 5 ;; This is an error since --with-glu was requested." "$LINENO" 5 ;;
esac esac
fi fi
fi
if test "$ac_cv_header_GL_osmesa_h" = "yes" if test "x$with_osmesa" != "xno"
then then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lOSMesa" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lOSMesa" >&5
$as_echo_n "checking for -lOSMesa... " >&6; } $as_echo_n "checking for -lOSMesa... " >&6; }
@ -9150,7 +9088,6 @@ _ACEOF
fi fi
fi
if test "x$ac_cv_lib_soname_OSMesa" = "x"; then : if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
case "x$with_osmesa" in case "x$with_osmesa" in
x) as_fn_append wine_notices "|libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported." ;; x) as_fn_append wine_notices "|libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported." ;;
@ -9159,17 +9096,7 @@ fi
This is an error since --with-osmesa was requested." "$LINENO" 5 ;; This is an error since --with-osmesa was requested." "$LINENO" 5 ;;
esac esac
fi fi
else
opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
fi fi
else
opengl_msg="OpenGL development headers not found."
fi
test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
else
enable_opengl32=${enable_opengl32:-no}
enable_glu32=${enable_glu32:-no}
fi fi
if test -n "$opengl_msg"; then : if test -n "$opengl_msg"; then :
case "x$with_opengl" in case "x$with_opengl" in
@ -9188,8 +9115,6 @@ else
X_CFLAGS="" X_CFLAGS=""
X_LIBS="" X_LIBS=""
enable_winex11_drv=${enable_winex11_drv:-no} enable_winex11_drv=${enable_winex11_drv:-no}
enable_opengl32=${enable_opengl32:-no}
enable_glu32=${enable_glu32:-no}
fi fi
if test "x$XLIB" = "x"; then : if test "x$XLIB" = "x"; then :
case "x$with_x" in case "x$with_x" in
@ -9201,6 +9126,8 @@ Use the --without-x option if you really want this." "$LINENO" 5 ;;
esac esac
fi fi
test "x$ac_cv_lib_GLU_gluLookAt" != xyes && enable_glu32=${enable_glu32:-no}
if test "$ac_cv_header_CL_cl_h" = "yes" if test "$ac_cv_header_CL_cl_h" = "yes"
then then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5

View File

@ -49,8 +49,7 @@ AC_ARG_WITH(gettext, AS_HELP_STRING([--without-gettext],[do not use gettext]))
AC_ARG_WITH(gettextpo, AS_HELP_STRING([--with-gettextpo],[use the GetTextPO library to rebuild po files]), AC_ARG_WITH(gettextpo, AS_HELP_STRING([--with-gettextpo],[use the GetTextPO library to rebuild po files]),
[if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi]) [if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi])
AC_ARG_WITH(gphoto, AS_HELP_STRING([--without-gphoto],[do not use gphoto (Digital Camera support)])) AC_ARG_WITH(gphoto, AS_HELP_STRING([--without-gphoto],[do not use gphoto (Digital Camera support)]))
AC_ARG_WITH(glu, AS_HELP_STRING([--without-glu],[do not use the GLU library]), AC_ARG_WITH(glu, AS_HELP_STRING([--without-glu],[do not use the GLU library]))
[if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi])
AC_ARG_WITH(gnutls, AS_HELP_STRING([--without-gnutls],[do not use GnuTLS (schannel support)])) AC_ARG_WITH(gnutls, AS_HELP_STRING([--without-gnutls],[do not use GnuTLS (schannel support)]))
AC_ARG_WITH(gsm, AS_HELP_STRING([--without-gsm],[do not use libgsm (GSM 06.10 codec support)]), AC_ARG_WITH(gsm, AS_HELP_STRING([--without-gsm],[do not use libgsm (GSM 06.10 codec support)]),
[if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi]) [if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi])
@ -69,8 +68,7 @@ AC_ARG_WITH(opencl, AS_HELP_STRING([--without-opencl],[do not use OpenCL]),
AC_ARG_WITH(opengl, AS_HELP_STRING([--without-opengl],[do not use OpenGL])) AC_ARG_WITH(opengl, AS_HELP_STRING([--without-opengl],[do not use OpenGL]))
AC_ARG_WITH(openssl, AS_HELP_STRING([--without-openssl],[do not use OpenSSL]), AC_ARG_WITH(openssl, AS_HELP_STRING([--without-openssl],[do not use OpenSSL]),
[if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi]) [if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi])
AC_ARG_WITH(osmesa, AS_HELP_STRING([--without-osmesa],[do not use the OSMesa library]), AC_ARG_WITH(osmesa, AS_HELP_STRING([--without-osmesa],[do not use the OSMesa library]))
[if test "x$withval" = "xno"; then ac_cv_header_GL_osmesa_h=no; fi])
AC_ARG_WITH(oss, AS_HELP_STRING([--without-oss],[do not use the OSS sound support])) AC_ARG_WITH(oss, AS_HELP_STRING([--without-oss],[do not use the OSS sound support]))
AC_ARG_WITH(png, AS_HELP_STRING([--without-png],[do not use PNG]), AC_ARG_WITH(png, AS_HELP_STRING([--without-png],[do not use PNG]),
[if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi]) [if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi])
@ -1108,27 +1106,10 @@ then
opengl_msg="" opengl_msg=""
if test "x$with_opengl" != "xno" if test "x$with_opengl" != "xno"
then then
AC_CHECK_HEADERS(GL/gl.h GL/glx.h GL/glu.h GL/osmesa.h,,,
[#ifdef HAVE_GL_GLX_H
# include <GL/glx.h>
#endif])
if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
then
dnl Check for some problems due to old Mesa versions
AC_CACHE_CHECK([for up-to-date OpenGL version], wine_cv_opengl_header_version_OK,
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <GL/gl.h>]], [[GLenum test = GL_UNSIGNED_SHORT_5_6_5; return (test == GL_UNSIGNED_SHORT_5_6_5);]])],
[wine_cv_opengl_header_version_OK="yes"],
[wine_cv_opengl_header_version_OK="no"]))
if test "$wine_cv_opengl_header_version_OK" = "yes"
then
dnl Check for the presence of the library
WINE_CHECK_SONAME(GL,glXCreateContext, WINE_CHECK_SONAME(GL,glXCreateContext,
[OPENGL_LIBS="-lGL" [OPENGL_LIBS="-lGL"],
AC_DEFINE(HAVE_OPENGL, 1, [Define if OpenGL is present on the system])],
[WINE_CHECK_SONAME(GL,glXCreateContext, [WINE_CHECK_SONAME(GL,glXCreateContext,
[OPENGL_LIBS="-Xlinker -dylib_file -Xlinker /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib -lGL" [OPENGL_LIBS="-Xlinker -dylib_file -Xlinker /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib -lGL"],
AC_DEFINE(HAVE_OPENGL, 1, [Define if OpenGL is present on the system])],
[if test -f /usr/X11R6/lib/libGL.a [if test -f /usr/X11R6/lib/libGL.a
then then
opengl_msg="/usr/X11R6/lib/libGL.a is present on your system. opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
@ -1138,30 +1119,19 @@ This probably prevents linking to OpenGL. Try deleting the file and restarting c
fi], fi],
$X_LIBS $XLIB -lm $X_EXTRA_LIBS -dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib)], $X_LIBS $XLIB -lm $X_EXTRA_LIBS -dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib)],
$X_LIBS $XLIB -lm $X_EXTRA_LIBS) $X_LIBS $XLIB -lm $X_EXTRA_LIBS)
if test "$ac_cv_header_GL_glu_h" = "yes" if test "x$with_glu" != "xno"
then then
WINE_CHECK_SONAME(GLU,gluLookAt,,,[$OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS]) AC_CHECK_LIB(GLU,gluLookAt,[:],,[$OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS])
fi WINE_NOTICE_WITH(glu,[test "x$ac_cv_lib_GLU_gluLookAt" != xyes],
WINE_NOTICE_WITH(glu,[test "x$ac_cv_lib_soname_GLU" = "x"],
[libGLU ${notice_platform}development files not found, GLU won't be supported.]) [libGLU ${notice_platform}development files not found, GLU won't be supported.])
fi
if test "$ac_cv_header_GL_osmesa_h" = "yes" if test "x$with_osmesa" != "xno"
then then
WINE_CHECK_SONAME(OSMesa,glAccum,,,[$X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS]) WINE_CHECK_SONAME(OSMesa,glAccum,,,[$X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS])
fi
WINE_NOTICE_WITH(osmesa,[test "x$ac_cv_lib_soname_OSMesa" = "x"], WINE_NOTICE_WITH(osmesa,[test "x$ac_cv_lib_soname_OSMesa" = "x"],
[libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported.]) [libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported.])
else
opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
fi fi
else
opengl_msg="OpenGL development headers not found."
fi
test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
else
enable_opengl32=${enable_opengl32:-no}
enable_glu32=${enable_glu32:-no}
fi fi
WINE_WARNING_WITH(opengl,[test -n "$opengl_msg"],[$opengl_msg WINE_WARNING_WITH(opengl,[test -n "$opengl_msg"],[$opengl_msg
OpenGL and Direct3D won't be supported.]) OpenGL and Direct3D won't be supported.])
@ -1172,13 +1142,13 @@ else
X_CFLAGS="" X_CFLAGS=""
X_LIBS="" X_LIBS=""
enable_winex11_drv=${enable_winex11_drv:-no} enable_winex11_drv=${enable_winex11_drv:-no}
enable_opengl32=${enable_opengl32:-no}
enable_glu32=${enable_glu32:-no}
fi fi
WINE_ERROR_WITH(x,[test "x$XLIB" = "x"],[X ${notice_platform}development files not found. Wine will be built WINE_ERROR_WITH(x,[test "x$XLIB" = "x"],[X ${notice_platform}development files not found. Wine will be built
without X support, which probably isn't what you want. You will need without X support, which probably isn't what you want. You will need
to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.]) to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.])
test "x$ac_cv_lib_GLU_gluLookAt" != xyes && enable_glu32=${enable_glu32:-no}
dnl **** Check for OpenCL **** dnl **** Check for OpenCL ****
if test "$ac_cv_header_CL_cl_h" = "yes" if test "$ac_cv_header_CL_cl_h" = "yes"
then then

View File

@ -233,18 +233,6 @@
/* Define to 1 if you have the `getuid' function. */ /* Define to 1 if you have the `getuid' function. */
#undef HAVE_GETUID #undef HAVE_GETUID
/* Define to 1 if you have the <GL/glu.h> header file. */
#undef HAVE_GL_GLU_H
/* Define to 1 if you have the <GL/glx.h> header file. */
#undef HAVE_GL_GLX_H
/* Define to 1 if you have the <GL/gl.h> header file. */
#undef HAVE_GL_GL_H
/* Define to 1 if you have the <GL/osmesa.h> header file. */
#undef HAVE_GL_OSMESA_H
/* Define if we have libgphoto2 development environment */ /* Define if we have libgphoto2 development environment */
#undef HAVE_GPHOTO2 #undef HAVE_GPHOTO2
@ -584,9 +572,6 @@
/* Define to 1 if you have the <OpenCL/opencl.h> header file. */ /* Define to 1 if you have the <OpenCL/opencl.h> header file. */
#undef HAVE_OPENCL_OPENCL_H #undef HAVE_OPENCL_OPENCL_H
/* Define if OpenGL is present on the system */
#undef HAVE_OPENGL
/* Define to 1 if you have the <openssl/err.h> header file. */ /* Define to 1 if you have the <openssl/err.h> header file. */
#undef HAVE_OPENSSL_ERR_H #undef HAVE_OPENSSL_ERR_H
@ -1247,9 +1232,6 @@
/* Define to the soname of the libGL library. */ /* Define to the soname of the libGL library. */
#undef SONAME_LIBGL #undef SONAME_LIBGL
/* Define to the soname of the libGLU library. */
#undef SONAME_LIBGLU
/* Define to the soname of the libgnutls library. */ /* Define to the soname of the libgnutls library. */
#undef SONAME_LIBGNUTLS #undef SONAME_LIBGNUTLS