Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
c84c4784
Commit
c84c4784
authored
Sep 22, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: Moved the libGL.a check to the final warnings.
parent
c4704c2d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
43 deletions
+27
-43
configure
configure
+15
-23
configure.ac
configure.ac
+12
-20
No files found.
configure
View file @
c84c4784
...
...
@@ -9494,30 +9494,15 @@ fi
echo
"
${
ECHO_T
}
$ac_cv_lib_GL_glXCreateContext
"
>
&6
;
}
if
test
$ac_cv_lib_GL_glXCreateContext
=
yes
;
then
OPENGL_LIBS
=
"-lGL"
fi
if
test
"
$ac_cv_lib_GL_glXCreateContext
"
=
"yes"
then
OPENGLFILES
=
'$(OPENGLFILES)'
OPENGLFILES
=
'$(OPENGLFILES)'
cat
>>
confdefs.h
<<
\
_ACEOF
#define HAVE_OPENGL 1
_ACEOF
else
if
test
-f
/usr/X11R6/lib/libGL.a
then
{
{
echo
"
$as_me
:
$LINENO
: error: /usr/X11R6/lib/libGL.a is present on your system.
This prevents linking to OpenGL. Delete the file and restart configure."
>
&5
echo
"
$as_me
: error: /usr/X11R6/lib/libGL.a is present on your system.
This prevents linking to OpenGL. Delete the file and restart configure."
>
&2
;
}
{
(
exit
1
)
;
exit
1
;
}
;
}
else
wine_cv_opengl_libs_found
=
"no"
fi
fi
fi
{
echo
"
$as_me
:
$LINENO
: checking for gluLookAt in -lGLU"
>
&5
echo
$ECHO_N
"checking for gluLookAt in -lGLU...
$ECHO_C
"
>
&6
;
}
...
...
@@ -25579,7 +25564,7 @@ echo "$as_me: WARNING: isn't what you want anyway. You will need to install deve
echo
"
$as_me
: WARNING: packages of Xlib/Xfree86 at the very least."
>
&2
;
}
fi
if
test
"
$wine_cv_opengl_headers_found
"
=
"no"
-o
"
$wine_cv_opengl_header_version_OK
"
=
"no"
-o
"
$wine_cv_opengl_libs_found
"
=
"no
"
if
test
-z
"
$OPENGLFILES
"
then
echo
>
&2
{
echo
"
$as_me
:
$LINENO
: WARNING: Wine will be build without OpenGL or Direct3D support"
>
&5
...
...
@@ -25595,11 +25580,18 @@ echo "$as_me: WARNING: No OpenGL development headers were found" >&2;}
then
{
echo
"
$as_me
:
$LINENO
: WARNING: Old Mesa headers detected. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
>
&5
echo
"
$as_me
: WARNING: Old Mesa headers detected. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
>
&2
;
}
fi
if
test
"
$wine_cv_opengl_libs_found
"
=
"no"
elif
test
"
$ac_cv_lib_GL_glXCreateContext
"
=
"no"
then
{
echo
"
$as_me
:
$LINENO
: WARNING: No OpenGL library found on this system."
>
&5
if
test
-f
/usr/X11R6/lib/libGL.a
then
{
echo
"
$as_me
:
$LINENO
: WARNING: /usr/X11R6/lib/libGL.a is present on your system.
This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
>
&5
echo
"
$as_me
: WARNING: /usr/X11R6/lib/libGL.a is present on your system.
This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
>
&2
;
}
else
{
echo
"
$as_me
:
$LINENO
: WARNING: No OpenGL library found on this system."
>
&5
echo
"
$as_me
: WARNING: No OpenGL library found on this system."
>
&2
;
}
fi
fi
fi
...
...
configure.ac
View file @
c84c4784
...
...
@@ -413,25 +413,12 @@ then
then
dnl Check for the presence of the library
AC_CHECK_LIB(GL,glXCreateContext,
OPENGL_LIBS="-lGL"
[OPENGL_LIBS="-lGL"
OPENGLFILES='$(OPENGLFILES)'
AC_DEFINE(HAVE_OPENGL, 1, [Define if OpenGL is present on the system])]
,,
$X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS)
if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
then
OPENGLFILES='$(OPENGLFILES)'
AC_DEFINE(HAVE_OPENGL, 1, [Define if OpenGL is present on the system])
else
if test -f /usr/X11R6/lib/libGL.a
then
AC_MSG_ERROR([/usr/X11R6/lib/libGL.a is present on your system.
This prevents linking to OpenGL. Delete the file and restart configure.])
else
dnl The compile test most likely failed because no libGL.so was found
wine_cv_opengl_libs_found="no"
fi
fi
dnl Check for GLU32 library.
AC_CHECK_LIB(GLU,gluLookAt,
[OPENGL_LIBS="$OPENGL_LIBS -lGLU"
...
...
@@ -1975,7 +1962,7 @@ then
AC_MSG_WARN([ packages of Xlib/Xfree86 at the very least.])
fi
if test
"$wine_cv_opengl_headers_found" = "no" -o "$wine_cv_opengl_header_version_OK" = "no" -o "$wine_cv_opengl_libs_found" = "no
"
if test
-z "$OPENGLFILES
"
then
echo >&2
AC_MSG_WARN([Wine will be build without OpenGL or Direct3D support])
...
...
@@ -1987,10 +1974,15 @@ then
if test "$wine_cv_opengl_header_version_OK" = "no"
then
AC_MSG_WARN([Old Mesa headers detected. Consider upgrading your Mesa libraries (http://www.mesa3d.org/).])
fi
if test "$wine_cv_opengl_libs_found" = "no"
elif test "$ac_cv_lib_GL_glXCreateContext" = "no"
then
AC_MSG_WARN([No OpenGL library found on this system.])
if test -f /usr/X11R6/lib/libGL.a
then
AC_MSG_WARN([/usr/X11R6/lib/libGL.a is present on your system.
This probably prevents linking to OpenGL. Try deleting the file and restarting configure.])
else
AC_MSG_WARN([No OpenGL library found on this system.])
fi
fi
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment