mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-06 02:18:04 +02:00
more patches, autoconf fixes...
This commit is contained in:
parent
120e831640
commit
b8e6c80c0d
4 changed files with 135 additions and 109 deletions
169
configure.ac
169
configure.ac
|
|
@ -95,6 +95,8 @@ AC_HEADER_DIRENT
|
||||||
AC_HEADER_STDC
|
AC_HEADER_STDC
|
||||||
AC_CHECK_HEADERS([fcntl.h stdlib.h string.h unistd.h])
|
AC_CHECK_HEADERS([fcntl.h stdlib.h string.h unistd.h])
|
||||||
|
|
||||||
|
AC_CHECK_PROG(HAVE_LAUNCHD, [launchd], [yes], [])
|
||||||
|
|
||||||
dnl Checks for typedefs, structures, and compiler characteristics.
|
dnl Checks for typedefs, structures, and compiler characteristics.
|
||||||
AC_C_CONST
|
AC_C_CONST
|
||||||
AC_C_BIGENDIAN([ENDIAN="X_BIG_ENDIAN"], [ENDIAN="X_LITTLE_ENDIAN"])
|
AC_C_BIGENDIAN([ENDIAN="X_BIG_ENDIAN"], [ENDIAN="X_LITTLE_ENDIAN"])
|
||||||
|
|
@ -181,6 +183,7 @@ AC_CHECK_FUNC([getpeerucred],
|
||||||
AC_DEFINE(HAS_GETPEERUCRED, 1, [Have the 'getpeerucred' function.]))
|
AC_DEFINE(HAS_GETPEERUCRED, 1, [Have the 'getpeerucred' function.]))
|
||||||
AC_CHECK_FUNC([strlcat], HAVE_STRLCAT=yes, HAVE_STRLCAT=no)
|
AC_CHECK_FUNC([strlcat], HAVE_STRLCAT=yes, HAVE_STRLCAT=no)
|
||||||
AM_CONDITIONAL(NEED_STRLCAT, [test x$HAVE_STRLCAT = xno])
|
AM_CONDITIONAL(NEED_STRLCAT, [test x$HAVE_STRLCAT = xno])
|
||||||
|
AC_CHECK_FUNC([strlcpy], AC_DEFINE(HAS_STRLCPY, 1, [Have the 'strlcpy' function]))
|
||||||
|
|
||||||
AM_CONDITIONAL(NEED_VSNPRINTF, [test x$HAVE_VSNPRINTF = xno])
|
AM_CONDITIONAL(NEED_VSNPRINTF, [test x$HAVE_VSNPRINTF = xno])
|
||||||
|
|
||||||
|
|
@ -487,7 +490,6 @@ AC_ARG_ENABLE(xres, AS_HELP_STRING([--disable-xres], [Build XRes exten
|
||||||
AC_ARG_ENABLE(xtrap, AS_HELP_STRING([--disable-xtrap], [Build XTrap extension (default: enabled)]), [XTRAP=$enableval], [XTRAP=yes])
|
AC_ARG_ENABLE(xtrap, AS_HELP_STRING([--disable-xtrap], [Build XTrap extension (default: enabled)]), [XTRAP=$enableval], [XTRAP=yes])
|
||||||
AC_ARG_ENABLE(record, AS_HELP_STRING([--disable-record], [Build Record extension (default: enabled)]), [RECORD=$enableval], [RECORD=yes])
|
AC_ARG_ENABLE(record, AS_HELP_STRING([--disable-record], [Build Record extension (default: enabled)]), [RECORD=$enableval], [RECORD=yes])
|
||||||
AC_ARG_ENABLE(xv, AS_HELP_STRING([--disable-xv], [Build Xv extension (default: enabled)]), [XV=$enableval], [XV=yes])
|
AC_ARG_ENABLE(xv, AS_HELP_STRING([--disable-xv], [Build Xv extension (default: enabled)]), [XV=$enableval], [XV=yes])
|
||||||
AC_ARG_ENABLE(quartz, AS_HELP_STRING([--enable-quartz], [Build with darwin quartz support (default: auto)]), [XQUARTZ=$enableval], [XQUARTZ=auto])
|
|
||||||
AC_ARG_ENABLE(xvmc, AS_HELP_STRING([--disable-xvmc], [Build XvMC extension (default: enabled)]), [XVMC=$enableval], [XVMC=yes])
|
AC_ARG_ENABLE(xvmc, AS_HELP_STRING([--disable-xvmc], [Build XvMC extension (default: enabled)]), [XVMC=$enableval], [XVMC=yes])
|
||||||
AC_ARG_ENABLE(dga, AS_HELP_STRING([--disable-dga], [Build DGA extension (default: auto)]), [DGA=$enableval], [DGA=auto])
|
AC_ARG_ENABLE(dga, AS_HELP_STRING([--disable-dga], [Build DGA extension (default: auto)]), [DGA=$enableval], [DGA=auto])
|
||||||
AC_ARG_ENABLE(screensaver, AS_HELP_STRING([--disable-screensaver], [Build ScreenSaver extension (default: enabled)]), [SCREENSAVER=$enableval], [SCREENSAVER=yes])
|
AC_ARG_ENABLE(screensaver, AS_HELP_STRING([--disable-screensaver], [Build ScreenSaver extension (default: enabled)]), [SCREENSAVER=$enableval], [SCREENSAVER=yes])
|
||||||
|
|
@ -517,11 +519,15 @@ AC_ARG_ENABLE(xfree86-utils, AS_HELP_STRING([--enable-xfree86-utils], [Build
|
||||||
|
|
||||||
dnl DDXes.
|
dnl DDXes.
|
||||||
AC_ARG_ENABLE(xorg, AS_HELP_STRING([--enable-xorg], [Build Xorg server (default: auto)]), [XORG=$enableval], [XORG=auto])
|
AC_ARG_ENABLE(xorg, AS_HELP_STRING([--enable-xorg], [Build Xorg server (default: auto)]), [XORG=$enableval], [XORG=auto])
|
||||||
AC_ARG_ENABLE(dmx, AS_HELP_STRING([--enable-dmx], [Build DMX server (default: auto)]), [DMX=$enableval], [DMX=auto])
|
AC_ARG_ENABLE(dmx, AS_HELP_STRING([--enable-dmx], [Build DMX server (default: no)]), [DMX=$enableval], [DMX=no])
|
||||||
AC_ARG_ENABLE(xvfb, AS_HELP_STRING([--enable-xvfb], [Build Xvfb server (default: yes)]), [XVFB=$enableval], [XVFB=yes])
|
AC_ARG_ENABLE(xvfb, AS_HELP_STRING([--enable-xvfb], [Build Xvfb server (default: no)]), [XVFB=$enableval], [XVFB=no])
|
||||||
AC_ARG_ENABLE(xnest, AS_HELP_STRING([--enable-xnest], [Build Xnest server (default: auto)]), [XNEST=$enableval], [XNEST=auto])
|
AC_ARG_ENABLE(xnest, AS_HELP_STRING([--enable-xnest], [Build Xnest server (default: no)]), [XNEST=$enableval], [XNEST=no])
|
||||||
|
AC_ARG_ENABLE(xdarwin, AS_HELP_STRING([--enable-xdarwin], [Build XDarwin server (default: auto)]), [XDARWIN=$enableval], [XDARWIN=auto])
|
||||||
|
AC_ARG_ENABLE(xdarwinapp, AS_HELP_STRING([--enable-xdarwinapp], [Build XDarwin.app server (default: no)]), [XDARWINAPP=$enableval], [XDARWINAPP=no])
|
||||||
|
AC_ARG_ENABLE(xquartz, AS_HELP_STRING([--disable-xquartz], [Build Xquartz server on Darwin (default: auto)]), [XQUARTZ=$enableval], [XQUARTZ=auto])
|
||||||
|
AC_ARG_ENABLE(x11app, AS_HELP_STRING([--enable-x11app], [Build Apple's X11.app wrapper for Xquartz (default: no)]), [X11APP=$enableval], [X11APP=no])
|
||||||
AC_ARG_ENABLE(xwin, AS_HELP_STRING([--enable-xwin], [Build XWin server (default: auto)]), [XWIN=$enableval], [XWIN=auto])
|
AC_ARG_ENABLE(xwin, AS_HELP_STRING([--enable-xwin], [Build XWin server (default: auto)]), [XWIN=$enableval], [XWIN=auto])
|
||||||
AC_ARG_ENABLE(xprint, AS_HELP_STRING([--enable-xprint], [Build Xprint extension and server (default: auto)]), [XPRINT=$enableval], [XPRINT=auto])
|
AC_ARG_ENABLE(xprint, AS_HELP_STRING([--enable-xprint], [Build Xprint extension and server (default: no)]), [XPRINT=$enableval], [XPRINT=no])
|
||||||
AC_ARG_ENABLE(xgl, AS_HELP_STRING([--enable-xgl], [Build Xgl server (default: no)]), [XGL=$enableval], [XGL=no])
|
AC_ARG_ENABLE(xgl, AS_HELP_STRING([--enable-xgl], [Build Xgl server (default: no)]), [XGL=$enableval], [XGL=no])
|
||||||
AC_ARG_ENABLE(xglx, AS_HELP_STRING([--enable-xglx], [Build Xglx xgl module (default: no)]), [XGLX=$enableval], [XGLX=no])
|
AC_ARG_ENABLE(xglx, AS_HELP_STRING([--enable-xglx], [Build Xglx xgl module (default: no)]), [XGLX=$enableval], [XGLX=no])
|
||||||
AC_ARG_ENABLE(xegl, AS_HELP_STRING([--enable-xegl], [Build Xegl xgl module (default: no)]), [XEGL=$enableval], [XEGL=no])
|
AC_ARG_ENABLE(xegl, AS_HELP_STRING([--enable-xegl], [Build Xegl xgl module (default: no)]), [XEGL=$enableval], [XEGL=no])
|
||||||
|
|
@ -1283,61 +1289,6 @@ dnl has it in libc), or if libdl is needed to get it.
|
||||||
AC_CHECK_LIB([dl], [dlopen], XORG_LIBS="$XORG_LIBS -ldl"))
|
AC_CHECK_LIB([dl], [dlopen], XORG_LIBS="$XORG_LIBS -ldl"))
|
||||||
|
|
||||||
case $host_os in
|
case $host_os in
|
||||||
darwin*)
|
|
||||||
XORG_OS="Darwin"
|
|
||||||
build_darwin=yes
|
|
||||||
if test "X$XQUARTZ" = Xauto; then
|
|
||||||
AC_CACHE_CHECK([for Carbon framework],xorg_cv_Carbon_framework,[
|
|
||||||
save_LDFLAGS=$LDFLAGS
|
|
||||||
LDFLAGS="$LDFLAGS -framework Carbon"
|
|
||||||
AC_LINK_IFELSE([char FSFindFolder();
|
|
||||||
int main() {
|
|
||||||
FSFindFolder();
|
|
||||||
return 0;}
|
|
||||||
],[xorg_cv_Carbon_framework=yes],
|
|
||||||
[xorg_cv_Carbon_framework=no])
|
|
||||||
LDFLAGS=$save_LDFLAGS])
|
|
||||||
if test "X$xorg_cv_Carbon_framework" = Xyes; then
|
|
||||||
AC_DEFINE([DARWIN_WITH_QUARTZ],[1],
|
|
||||||
[Have Quartz])
|
|
||||||
XQUARTZ=yes
|
|
||||||
else
|
|
||||||
XQUARTZ=no
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
AC_DEFINE(ROOTLESS,1,[Build Rootless code])
|
|
||||||
AC_CACHE_CHECK([for AGL framework],xorg_cv_AGL_framework,[
|
|
||||||
save_LDFLAGS=$LDFLAGS
|
|
||||||
LDFLAGS="$LDFLAGS -framework AGL"
|
|
||||||
AC_LINK_IFELSE([char aglEnable();
|
|
||||||
int main() {
|
|
||||||
aglEnable();
|
|
||||||
return 0;}
|
|
||||||
],[xorg_cv_AGL_framework=yes],
|
|
||||||
[xorg_cv_AGL_framework=no])
|
|
||||||
LDFLAGS=$save_LDFLAGS
|
|
||||||
])
|
|
||||||
AC_CHECK_LIB([Xplugin],[xp_init],[:])
|
|
||||||
AC_SUBST([APPLE_APPLICATIONS_DIR])
|
|
||||||
CFLAGS="${CFLAGS} -D__DARWIN__"
|
|
||||||
PLIST_VERSION_STRING=$VENDOR_VERSION_STRING
|
|
||||||
AC_SUBST([PLIST_VERSION_STRING])
|
|
||||||
PLIST_VENDOR_WEB=$VENDOR_WEB
|
|
||||||
AC_SUBST([PLIST_VENDOR_WEB])
|
|
||||||
# Not sure that we should be disabling all these...
|
|
||||||
if test "x$XF86MISC" = xyes; then
|
|
||||||
AC_MSG_NOTICE([Disabling XF86Misc extension])
|
|
||||||
XF86MISC=no
|
|
||||||
fi
|
|
||||||
if test "x$XF86VIDMODE" = xyes; then
|
|
||||||
AC_MSG_NOTICE([Disabling XF86VidMode extension])
|
|
||||||
XF86VIDMODE=no
|
|
||||||
fi
|
|
||||||
if test "x$DGA" = xyes; then
|
|
||||||
AC_MSG_NOTICE([Disabling DGA extension])
|
|
||||||
DGA=no
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
linux*)
|
linux*)
|
||||||
if test "x$LNXAPM" = xyes; then
|
if test "x$LNXAPM" = xyes; then
|
||||||
XORG_CFLAGS="$XORG_CFLAGS -DXF86PM"
|
XORG_CFLAGS="$XORG_CFLAGS -DXF86PM"
|
||||||
|
|
@ -1597,26 +1548,6 @@ return 0;}
|
||||||
AC_SUBST([extdir])
|
AC_SUBST([extdir])
|
||||||
AC_SUBST([logdir])
|
AC_SUBST([logdir])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "x$XF86VIDMODE" = xyes; then
|
|
||||||
AC_DEFINE(XF86VIDMODE, 1, [Support XFree86 Video Mode extension])
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test "x$XF86MISC" = xyes; then
|
|
||||||
AC_DEFINE(XF86MISC, 1, [Support XFree86 miscellaneous extensions])
|
|
||||||
fi
|
|
||||||
# Support for objc in autotools is minimal and not documented.
|
|
||||||
OBJC='$(CC)'
|
|
||||||
OBJCLD='$(CCLD)'
|
|
||||||
OBJCLINK='$(LINK)'
|
|
||||||
OBJCFLAGS='$(CFLAGS)'
|
|
||||||
AC_SUBST([OBJC])
|
|
||||||
AC_SUBST([OBJCCLD])
|
|
||||||
AC_SUBST([OBJCLINK])
|
|
||||||
AC_SUBST([OBJCFLAGS])
|
|
||||||
# internal, undocumented automake func follows :(
|
|
||||||
_AM_DEPENDENCIES([OBJC])
|
|
||||||
|
|
||||||
AM_CONDITIONAL([XORG], [test "x$XORG" = xyes])
|
AM_CONDITIONAL([XORG], [test "x$XORG" = xyes])
|
||||||
AM_CONDITIONAL([XORG_BUS_LINUXPCI], [test "x$xorg_bus_linuxpci" = xyes])
|
AM_CONDITIONAL([XORG_BUS_LINUXPCI], [test "x$xorg_bus_linuxpci" = xyes])
|
||||||
AM_CONDITIONAL([XORG_BUS_FREEBSDPCI], [test "x$xorg_bus_freebsdpci" = xyes])
|
AM_CONDITIONAL([XORG_BUS_FREEBSDPCI], [test "x$xorg_bus_freebsdpci" = xyes])
|
||||||
|
|
@ -1772,10 +1703,75 @@ AM_CONDITIONAL(XWIN_RANDR, [test "x$XWIN" = xyes])
|
||||||
AM_CONDITIONAL(XWIN_XV, [test "x$XWIN" = xyes && test "x$XV" = xyes])
|
AM_CONDITIONAL(XWIN_XV, [test "x$XWIN" = xyes && test "x$XV" = xyes])
|
||||||
|
|
||||||
dnl Darwin / OS X DDX
|
dnl Darwin / OS X DDX
|
||||||
AM_CONDITIONAL(HAVE_X_PLUGIN, [test "x$ac_cv_lib_Xplugin_xp_init" = xyes])
|
AC_MSG_CHECKING([whether to build XDarwin (Mac OS X) DDX])
|
||||||
AM_CONDITIONAL(HAVE_AGL_FRAMEWORK, [test "x$xorg_cv_AGL_framework" = xyes])
|
if test "x$XDARWIN" = xauto; then
|
||||||
# Support for objc in autotools is minimal and not
|
case $host_os in
|
||||||
# documented.
|
darwin*) XDARWIN="yes" ;;
|
||||||
|
*) XDARWIN="no" ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
AC_MSG_RESULT([$XDARWIN])
|
||||||
|
|
||||||
|
if test "x$XDARWIN" = xyes; then
|
||||||
|
if test "X$XQUARTZ" = Xauto; then
|
||||||
|
AC_CACHE_CHECK([for Carbon framework],xorg_cv_Carbon_framework,[
|
||||||
|
save_LDFLAGS=$LDFLAGS
|
||||||
|
LDFLAGS="$LDFLAGS -framework Carbon"
|
||||||
|
AC_LINK_IFELSE([char FSFindFolder();
|
||||||
|
int main() {
|
||||||
|
FSFindFolder();
|
||||||
|
return 0;}
|
||||||
|
],[xorg_cv_Carbon_framework=yes],
|
||||||
|
[xorg_cv_Carbon_framework=no])
|
||||||
|
LDFLAGS=$save_LDFLAGS])
|
||||||
|
if test "X$xorg_cv_Carbon_framework" = Xyes; then
|
||||||
|
AC_DEFINE([DARWIN_WITH_QUARTZ],[1],
|
||||||
|
[Have Quartz])
|
||||||
|
XQUARTZ=yes
|
||||||
|
else
|
||||||
|
XQUARTZ=no
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
# glxAGL / glxCGL don't work yet
|
||||||
|
# AC_CACHE_CHECK([for AGL framework],xorg_cv_AGL_framework,[
|
||||||
|
# save_LDFLAGS=$LDFLAGS
|
||||||
|
# LDFLAGS="$LDFLAGS -framework AGL"
|
||||||
|
# AC_LINK_IFELSE([char aglEnable();
|
||||||
|
#int main() {
|
||||||
|
#aglEnable();
|
||||||
|
#return 0;}
|
||||||
|
# ],[xorg_cv_AGL_framework=yes],
|
||||||
|
# [xorg_cv_AGL_framework=no])
|
||||||
|
# LDFLAGS=$save_LDFLAGS
|
||||||
|
# ])
|
||||||
|
xorg_cv_AGL_framework=no
|
||||||
|
DARWIN_LIBS="$MI_LIB $OS_LIB $DIX_LIB $FB_LIB $FIXES_LIB $XEXT_LIB $CONFIG_LIB $DBE_LIB $XTRAP_LIB $RECORD_LIB $GLX_LIBS $RENDER_LIB $RANDR_LIB $DAMAGE_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB $XPSTUBS_LIB"
|
||||||
|
AC_SUBST([DARWIN_LIBS])
|
||||||
|
AC_CHECK_LIB([Xplugin],[xp_init],[:])
|
||||||
|
AC_SUBST([APPLE_APPLICATIONS_DIR])
|
||||||
|
CFLAGS="${CFLAGS} -D__DARWIN__"
|
||||||
|
PLIST_VERSION_STRING=$PACKAGE_VERSION
|
||||||
|
AC_SUBST([PLIST_VERSION_STRING])
|
||||||
|
PLIST_VENDOR_WEB=$VENDOR_WEB
|
||||||
|
AC_SUBST([PLIST_VENDOR_WEB])
|
||||||
|
if test "x$XF86MISC" = xyes || test "x$XF86MISC" = xauto; then
|
||||||
|
AC_MSG_NOTICE([Disabling XF86Misc extension])
|
||||||
|
XF86MISC=no
|
||||||
|
fi
|
||||||
|
if test "x$XF86VIDMODE" = xyes || test "x$XF86VIDMODE" = xauto; then
|
||||||
|
AC_MSG_NOTICE([Disabling XF86VidMode extension])
|
||||||
|
XF86VIDMODE=no
|
||||||
|
fi
|
||||||
|
if test "x$XF86BIGFONT" = xyes || test "x$XF86BIGFONT" = xauto; then
|
||||||
|
AC_MSG_NOTICE([Disabling XF86BigFont extension])
|
||||||
|
XF86BIGFONT=no
|
||||||
|
fi
|
||||||
|
if test "x$DGA" = xyes || test "x$DGA" = xauto; then
|
||||||
|
AC_MSG_NOTICE([Disabling DGA extension])
|
||||||
|
DGA=no
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
# Support for objc in autotools is minimal and not documented.
|
||||||
OBJC='$(CC)'
|
OBJC='$(CC)'
|
||||||
OBJCLD='$(CCLD)'
|
OBJCLD='$(CCLD)'
|
||||||
OBJCLINK='$(LINK)'
|
OBJCLINK='$(LINK)'
|
||||||
|
|
@ -1786,6 +1782,11 @@ AC_SUBST([OBJCLINK])
|
||||||
AC_SUBST([OBJCFLAGS])
|
AC_SUBST([OBJCFLAGS])
|
||||||
# internal, undocumented automake func follows :(
|
# internal, undocumented automake func follows :(
|
||||||
_AM_DEPENDENCIES([OBJC])
|
_AM_DEPENDENCIES([OBJC])
|
||||||
|
AM_CONDITIONAL(HAVE_XPLUGIN, [test "x$ac_cv_lib_Xplugin_xp_init" = xyes])
|
||||||
|
AM_CONDITIONAL(HAVE_AGL_FRAMEWORK, [test "x$xorg_cv_AGL_framework" = xyes])
|
||||||
|
AM_CONDITIONAL(XDARWIN, [test "x$XDARWIN" = xyes])
|
||||||
|
AM_CONDITIONAL(XDARWINAPP, [test "x$XDARWINAPP" = xyes])
|
||||||
|
AM_CONDITIONAL(XQUARTZ, [test "x$XQUARTZ" = xyes])
|
||||||
|
|
||||||
dnl kdrive DDX
|
dnl kdrive DDX
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -79,8 +79,7 @@ XDarwin_LDADD = \
|
||||||
$(top_builddir)/miext/rootless/librootless.la \
|
$(top_builddir)/miext/rootless/librootless.la \
|
||||||
$(top_builddir)/miext/rootless/safeAlpha/libsafeAlpha.la \
|
$(top_builddir)/miext/rootless/safeAlpha/libsafeAlpha.la \
|
||||||
$(top_builddir)/miext/rootless/accel/librlAccel.la \
|
$(top_builddir)/miext/rootless/accel/librlAccel.la \
|
||||||
@XORG_LIBS@ \
|
$(XSERVER_LIBS)
|
||||||
-lXau -lXdmcp -lXfont -lfreetype
|
|
||||||
|
|
||||||
Xquartz_LDADD = \
|
Xquartz_LDADD = \
|
||||||
$(top_builddir)/dix/dixfonts.lo \
|
$(top_builddir)/dix/dixfonts.lo \
|
||||||
|
|
@ -90,6 +89,7 @@ Xquartz_LDADD = \
|
||||||
$(top_builddir)/dix/libxpstubs.la \
|
$(top_builddir)/dix/libxpstubs.la \
|
||||||
$(top_builddir)/miext/shadow/libshadow.la \
|
$(top_builddir)/miext/shadow/libshadow.la \
|
||||||
$(top_builddir)/fb/libfb.la \
|
$(top_builddir)/fb/libfb.la \
|
||||||
|
$(top_builddir)/mi/libmi.la \
|
||||||
$(top_builddir)/composite/libcomposite.la \
|
$(top_builddir)/composite/libcomposite.la \
|
||||||
$(top_builddir)/damageext/libdamageext.la \
|
$(top_builddir)/damageext/libdamageext.la \
|
||||||
$(top_builddir)/miext/damage/libdamage.la \
|
$(top_builddir)/miext/damage/libdamage.la \
|
||||||
|
|
@ -105,8 +105,7 @@ Xquartz_LDADD = \
|
||||||
$(top_builddir)/miext/rootless/librootless.la \
|
$(top_builddir)/miext/rootless/librootless.la \
|
||||||
$(top_builddir)/miext/rootless/safeAlpha/libsafeAlpha.la \
|
$(top_builddir)/miext/rootless/safeAlpha/libsafeAlpha.la \
|
||||||
$(top_builddir)/miext/rootless/accel/librlAccel.la \
|
$(top_builddir)/miext/rootless/accel/librlAccel.la \
|
||||||
@XORG_LIBS@ \
|
$(XSERVER_LIBS)
|
||||||
-lXau -lXdmcp -lXfont -lfreetype -lXplugin
|
|
||||||
|
|
||||||
XDarwin_LDFLAGS = \
|
XDarwin_LDFLAGS = \
|
||||||
-XCClinker -Objc \
|
-XCClinker -Objc \
|
||||||
|
|
@ -258,6 +257,8 @@ xpr_la_LDFLAGS = -shrext '' -Wl,-framework,ApplicationServices \
|
||||||
-module -avoid-version -no-undefined
|
-module -avoid-version -no-undefined
|
||||||
xpr_la_DEPENDENCIES = XDarwinApp
|
xpr_la_DEPENDENCIES = XDarwinApp
|
||||||
|
|
||||||
|
|
||||||
|
if HAVE_AGL_FRAMEWORK
|
||||||
glxCGLplugindir = $(darwinappdir)/Contents/Resources/glxCGL.bundle/Contents/MacOS
|
glxCGLplugindir = $(darwinappdir)/Contents/Resources/glxCGL.bundle/Contents/MacOS
|
||||||
glxCGLplugin_LTLIBRARIES =
|
glxCGLplugin_LTLIBRARIES =
|
||||||
glxCGL_la_SOURCES =
|
glxCGL_la_SOURCES =
|
||||||
|
|
@ -289,6 +290,10 @@ glxAGL_la_LDFLAGS = -shrext '' \
|
||||||
-module -avoid-version -no-undefined
|
-module -avoid-version -no-undefined
|
||||||
glxAGL_la_DEPENDENCIES = XDarwinApp
|
glxAGL_la_DEPENDENCIES = XDarwinApp
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
man1_MANS = XDarwin.man
|
man1_MANS = XDarwin.man
|
||||||
|
|
||||||
uninstall-hook:
|
uninstall-hook:
|
||||||
|
|
|
||||||
|
|
@ -43,8 +43,6 @@
|
||||||
# include "micmap.h"
|
# include "micmap.h"
|
||||||
#undef BOOL
|
#undef BOOL
|
||||||
|
|
||||||
#include "xf86Version.h"
|
|
||||||
|
|
||||||
#include <mach/mach.h>
|
#include <mach/mach.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@
|
||||||
**************************************************************/
|
**************************************************************/
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2001-2004 Torrey T. Lyons. All Rights Reserved.
|
* Copyright (c) 2001-2004 Torrey T. Lyons. All Rights Reserved.
|
||||||
|
* Copyright (c) 2007 Apple Inc.
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
* copy of this software and associated documentation files (the "Software"),
|
* copy of this software and associated documentation files (the "Software"),
|
||||||
|
|
@ -30,9 +31,7 @@
|
||||||
* use or other dealings in this Software without prior written authorization.
|
* use or other dealings in this Software without prior written authorization.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_XORG_CONFIG_H
|
#include <dix-config.h>
|
||||||
#include <xorg-config.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <X11/X.h>
|
#include <X11/X.h>
|
||||||
#include <X11/Xproto.h>
|
#include <X11/Xproto.h>
|
||||||
|
|
@ -46,8 +45,6 @@
|
||||||
#include "fb.h" // fb framebuffer code
|
#include "fb.h" // fb framebuffer code
|
||||||
#include "site.h"
|
#include "site.h"
|
||||||
#include "globals.h"
|
#include "globals.h"
|
||||||
#include "xorgVersion.h"
|
|
||||||
#include "xf86Date.h"
|
|
||||||
#include "dix.h"
|
#include "dix.h"
|
||||||
|
|
||||||
#ifdef XINPUT
|
#ifdef XINPUT
|
||||||
|
|
@ -83,6 +80,7 @@ int darwinScreenIndex = 0;
|
||||||
io_connect_t darwinParamConnect = 0;
|
io_connect_t darwinParamConnect = 0;
|
||||||
int darwinEventReadFD = -1;
|
int darwinEventReadFD = -1;
|
||||||
int darwinEventWriteFD = -1;
|
int darwinEventWriteFD = -1;
|
||||||
|
// int darwinMouseAccelChange = 1;
|
||||||
int darwinFakeButtons = 0;
|
int darwinFakeButtons = 0;
|
||||||
|
|
||||||
// location of X11's (0,0) point in global screen coordinates
|
// location of X11's (0,0) point in global screen coordinates
|
||||||
|
|
@ -129,13 +127,21 @@ const int NUMFORMATS = sizeof(formats)/sizeof(formats[0]);
|
||||||
#ifndef BUILD_DATE
|
#ifndef BUILD_DATE
|
||||||
#define BUILD_DATE ""
|
#define BUILD_DATE ""
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef XORG_RELEASE
|
||||||
|
#define XORG_RELEASE "?"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
void DDXRingBell(int volume, int pitch, int duration) {
|
||||||
|
// FIXME -- make some noise, yo
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
DarwinPrintBanner()
|
DarwinPrintBanner(void)
|
||||||
{
|
{
|
||||||
|
// this should change depending on which specific server we are building
|
||||||
ErrorF("X11.app starting:\n");
|
ErrorF("X11.app starting:\n");
|
||||||
ErrorF("Xquartz server based on X.org %s, built on %s\n", XORG_RELEASE, BUILD_DATE );
|
ErrorF("Xquartz server based on X.org %s, built on %s\n", XORG_RELEASE, BUILD_DATE );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
@ -301,6 +307,29 @@ static Bool DarwinAddScreen(
|
||||||
=============================================================================
|
=============================================================================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
/*
|
||||||
|
* DarwinChangePointerControl
|
||||||
|
* Set mouse acceleration and thresholding
|
||||||
|
* FIXME: We currently ignore the threshold in ctrl->threshold.
|
||||||
|
*/
|
||||||
|
static void DarwinChangePointerControl(
|
||||||
|
DeviceIntPtr device,
|
||||||
|
PtrCtrl *ctrl )
|
||||||
|
{
|
||||||
|
kern_return_t kr;
|
||||||
|
double acceleration;
|
||||||
|
|
||||||
|
if (!darwinMouseAccelChange)
|
||||||
|
return;
|
||||||
|
|
||||||
|
acceleration = ctrl->num / ctrl->den;
|
||||||
|
kr = IOHIDSetMouseAcceleration( darwinParamConnect, acceleration );
|
||||||
|
if (kr != KERN_SUCCESS)
|
||||||
|
ErrorF( "Could not set mouse acceleration with kernel return = 0x%x.\n", kr );
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* DarwinMouseProc
|
* DarwinMouseProc
|
||||||
* Handle the initialization, etc. of a mouse
|
* Handle the initialization, etc. of a mouse
|
||||||
|
|
@ -549,8 +578,8 @@ DarwinAdjustScreenOrigins(ScreenInfo *pScreenInfo)
|
||||||
for (i = 0; i < pScreenInfo->numScreens; i++) {
|
for (i = 0; i < pScreenInfo->numScreens; i++) {
|
||||||
dixScreenOrigins[i].x -= darwinMainScreenX;
|
dixScreenOrigins[i].x -= darwinMainScreenX;
|
||||||
dixScreenOrigins[i].y -= darwinMainScreenY;
|
dixScreenOrigins[i].y -= darwinMainScreenY;
|
||||||
/* ErrorF("Screen %d placed at X11 coordinate (%d,%d).\n",
|
/* ErrorF("Screen %d placed at X11 coordinate (%d,%d).\n",
|
||||||
i, dixScreenOrigins[i].x, dixScreenOrigins[i].y); */
|
i, dixScreenOrigins[i].x, dixScreenOrigins[i].y); */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -627,14 +656,10 @@ void OsVendorInit(void)
|
||||||
if ( !tempStr ) {
|
if ( !tempStr ) {
|
||||||
ErrorF("Could not find keymapping file %s.\n", darwinKeymapFile);
|
ErrorF("Could not find keymapping file %s.\n", darwinKeymapFile);
|
||||||
} else {
|
} else {
|
||||||
ErrorF("Using keymapping provided in %s.\n", tempStr);
|
ErrorF("Using keymapping provided in %s.\n", tempStr);
|
||||||
}
|
}
|
||||||
darwinKeymapFile = tempStr;
|
darwinKeymapFile = tempStr;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !darwinKeymapFile ) {
|
|
||||||
// ErrorF("Reading keymap from the system.\n");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -832,7 +857,7 @@ void ddxUseMsg( void )
|
||||||
*/
|
*/
|
||||||
void ddxGiveUp( void )
|
void ddxGiveUp( void )
|
||||||
{
|
{
|
||||||
ErrorF( "Quitting Xquartz...\n" );
|
ErrorF( "Quitting XQuartz...\n" );
|
||||||
|
|
||||||
DarwinModeGiveUp();
|
DarwinModeGiveUp();
|
||||||
}
|
}
|
||||||
|
|
@ -855,7 +880,6 @@ void AbortDDX( void )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#ifdef DPMSExtension
|
|
||||||
/*
|
/*
|
||||||
* DPMS extension stubs
|
* DPMS extension stubs
|
||||||
*/
|
*/
|
||||||
|
|
@ -872,8 +896,6 @@ int DPMSGet(int *level)
|
||||||
{
|
{
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#include "mivalidate.h" // for union _Validate used by windowstr.h
|
#include "mivalidate.h" // for union _Validate used by windowstr.h
|
||||||
#include "windowstr.h" // for struct _Window
|
#include "windowstr.h" // for struct _Window
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue