Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
85b34be5
Commit
85b34be5
authored
Oct 03, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "winex11: Remove some leftover X Shm code."
This reverts commit
515329d5
. We'll want to use XShm again for window surfaces.
parent
70a51173
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
82 additions
and
0 deletions
+82
-0
configure
configure
+63
-0
configure.ac
configure.ac
+13
-0
config.h.in
include/config.h.in
+6
-0
No files found.
configure
View file @
85b34be5
...
...
@@ -838,6 +838,7 @@ with_xml
with_xrandr
with_xrender
with_xshape
with_xshm
with_xslt
with_xxf86vm
with_zlib
...
...
@@ -1527,6 +1528,7 @@ Optional Packages:
--without-xrandr do not use Xrandr (resolution changes)
--without-xrender do not use the Xrender extension
--without-xshape do not use the Xshape extension
--without-xshm do not use XShm (shared memory extension)
--without-xslt do not use XSLT
--without-xxf86vm do not use XFree video mode extension
--without-zlib do not use Zlib (data compression)
...
...
@@ -2777,6 +2779,12 @@ if test "${with_xshape+set}" = set; then :
fi
# Check whether --with-xshm was given.
if
test
"
${
with_xshm
+set
}
"
=
set
;
then
:
withval
=
$with_xshm
;
if
test
"x
$withval
"
=
"xno"
;
then
ac_cv_header_X11_extensions_XShm_h
=
no
;
fi
fi
# Check whether --with-xslt was given.
if
test
"
${
with_xslt
+set
}
"
=
set
;
then
:
withval
=
$with_xslt
;
...
...
@@ -8085,6 +8093,7 @@ fi
X11/extensions/shape.h
\
X11/extensions/XInput.h
\
X11/extensions/XInput2.h
\
X11/extensions/XShm.h
\
X11/extensions/Xcomposite.h
\
X11/extensions/Xinerama.h
\
X11/extensions/Xrandr.h
\
...
...
@@ -8292,6 +8301,60 @@ esac
fi
fi
if
test
"
$ac_cv_header_X11_extensions_XShm_h
"
=
"yes"
then
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking for XShmQueryExtension in -lXext"
>
&5
$as_echo_n
"checking for XShmQueryExtension in -lXext... "
>
&6
;
}
if
${
ac_cv_lib_Xext_XShmQueryExtension
+
:
}
false
;
then
:
$as_echo_n
"(cached) "
>
&6
else
ac_check_lib_save_LIBS
=
$LIBS
LIBS
=
"-lXext
$X_LIBS
$XLIB
$X_EXTRA_LIBS
$LIBS
"
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
/* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char XShmQueryExtension ();
int
main ()
{
return XShmQueryExtension ();
;
return 0;
}
_ACEOF
if
ac_fn_c_try_link
"
$LINENO
"
;
then
:
ac_cv_lib_Xext_XShmQueryExtension
=
yes
else
ac_cv_lib_Xext_XShmQueryExtension
=
no
fi
rm
-f
core conftest.err conftest.
$ac_objext
\
conftest
$ac_exeext
conftest.
$ac_ext
LIBS
=
$ac_check_lib_save_LIBS
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ac_cv_lib_Xext_XShmQueryExtension
"
>
&5
$as_echo
"
$ac_cv_lib_Xext_XShmQueryExtension
"
>
&6
;
}
if
test
"x
$ac_cv_lib_Xext_XShmQueryExtension
"
=
xyes
;
then
:
$as_echo
"#define HAVE_LIBXXSHM 1"
>>
confdefs.h
fi
fi
if
test
"
$ac_cv_lib_Xext_XShmQueryExtension
"
!=
"yes"
;
then
:
case
"x
$with_xshm
"
in
x
)
as_fn_append wine_notices
"|XShm
${
notice_platform
}
development files not found, X Shared Memory won't be supported."
;;
xno
)
;;
*
)
as_fn_error
$?
"XShm
${
notice_platform
}
development files not found, X Shared Memory won't be supported.
This is an error since --with-xshm was requested."
"
$LINENO
"
5
;;
esac
fi
if
test
"
$ac_cv_header_X11_extensions_shape_h
"
=
"yes"
then
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking for XShapeQueryExtension in -lXext"
>
&5
...
...
configure.ac
View file @
85b34be5
...
...
@@ -97,6 +97,8 @@ AC_ARG_WITH(xrender, AS_HELP_STRING([--without-xrender],[do not use the Xrende
[if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi])
AC_ARG_WITH(xshape, AS_HELP_STRING([--without-xshape],[do not use the Xshape extension]),
[if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi])
AC_ARG_WITH(xshm, AS_HELP_STRING([--without-xshm],[do not use XShm (shared memory extension)]),
[if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi])
AC_ARG_WITH(xslt, AS_HELP_STRING([--without-xslt],[do not use XSLT]))
AC_ARG_WITH(xxf86vm, AS_HELP_STRING([--without-xxf86vm],[do not use XFree video mode extension]),
[if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_xf86vmode_h=no; ac_cv_header_X11_extensions_xf86vmproto_h=no; fi])
...
...
@@ -972,6 +974,7 @@ then
X11/extensions/shape.h \
X11/extensions/XInput.h \
X11/extensions/XInput2.h \
X11/extensions/XShm.h \
X11/extensions/Xcomposite.h \
X11/extensions/Xinerama.h \
X11/extensions/Xrandr.h \
...
...
@@ -1016,6 +1019,16 @@ then
[XInput2 headers not found, the XInput 2 extension won't be supported.])
fi
dnl *** Check for X Shm extension
if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
then
AC_CHECK_LIB(Xext, XShmQueryExtension,
AC_DEFINE(HAVE_LIBXXSHM, 1, [Define if you have the X Shm extension]),,
$X_LIBS $XLIB $X_EXTRA_LIBS)
fi
WINE_NOTICE_WITH(xshm,[test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"],
[XShm ${notice_platform}development files not found, X Shared Memory won't be supported.])
dnl *** Check for X shape extension
if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
then
...
...
include/config.h.in
View file @
85b34be5
...
...
@@ -377,6 +377,9 @@
/* Define to 1 if you have the <libxslt/transform.h> header file. */
#undef HAVE_LIBXSLT_TRANSFORM_H
/* Define if you have the X Shm extension */
#undef HAVE_LIBXXSHM
/* Define to 1 if you have the <link.h> header file. */
#undef HAVE_LINK_H
...
...
@@ -1106,6 +1109,9 @@
/* Define to 1 if you have the <X11/extensions/Xrender.h> header file. */
#undef HAVE_X11_EXTENSIONS_XRENDER_H
/* Define to 1 if you have the <X11/extensions/XShm.h> header file. */
#undef HAVE_X11_EXTENSIONS_XSHM_H
/* Define to 1 if you have the <X11/Xcursor/Xcursor.h> header file. */
#undef HAVE_X11_XCURSOR_XCURSOR_H
...
...
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