summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@freedesktop.org>2008-04-23 10:22:34 -0700
committerJeremy Huddleston <jeremyhu@freedesktop.org>2008-04-23 10:22:34 -0700
commitd09c520b322ba5c5f4d6b630a7c0c62e56732f82 (patch)
tree9ac0c7fd96120099ec22ba3b423fa1c76a804b73
parentb05b416c622063b84747702a54ffd9a802d6fc11 (diff)
Moved Apple GL bits into our DDX subtree
(cherry picked from commit c9356f32892978faecb30f7b7af7488820ce37ff)
-rw-r--r--GL/Makefile.am7
-rw-r--r--configure.ac20
-rw-r--r--hw/xquartz/GL/Makefile.am (renamed from GL/apple/Makefile.am)9
-rw-r--r--hw/xquartz/GL/indirect.c (renamed from GL/apple/indirect.c)0
-rw-r--r--hw/xquartz/Makefile.am4
5 files changed, 13 insertions, 27 deletions
diff --git a/GL/Makefile.am b/GL/Makefile.am
index 44fca18c5..c3ac15564 100644
--- a/GL/Makefile.am
+++ b/GL/Makefile.am
@@ -1,9 +1,4 @@
-if XQUARTZ
-XQUARTZ_SUBDIRS = apple
-endif
-
-SUBDIRS = glx $(XQUARTZ_SUBDIRS)
-DIST_SUBDIRS = glx apple
+SUBDIRS = glx
WINDOWS_EXTRAS = \
windows/ChangeLog \
diff --git a/configure.ac b/configure.ac
index 51ab4c6e2..b2a07a6f3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1724,22 +1724,14 @@ if test "x$XQUARTZ" = xyes; then
AC_DEFINE(XQUARTZ,1,[Have Quartz])
AC_DEFINE(ROOTLESS,1,[Build Rootless code])
-#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_GLX_LIBS='$(top_builddir)/GL/apple/indirect.o $(top_builddir)/GL/glx/libglx.la'
- DARWIN_LIBS="$MI_LIB $OS_LIB $DIX_LIB $FB_LIB $FIXES_LIB $XEXT_LIB $CONFIG_LIB $DBE_LIB $XTRAP_LIB $RECORD_LIB $RENDER_LIB $RANDR_LIB $DAMAGE_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB $XPSTUBS_LIB $DARWIN_GLX_LIBS"
+ DARWIN_GLX_LIBS='$(top_builddir)/hw/xquartz/GL/libCGLCore.la $(top_builddir)/GL/glx/libglx.la'
+ DARWIN_LIBS="$MI_LIB $OS_LIB $DIX_LIB $FB_LIB $FIXES_LIB $XEXT_LIB $CONFIG_LIB $DBE_LIB $XTRAP_LIB $RECORD_LIB $RENDER_LIB $RANDR_LIB $DAMAGE_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $XPSTUBS_LIB $DARWIN_GLX_LIBS"
AC_SUBST([DARWIN_LIBS])
+
AC_CHECK_LIB([Xplugin],[xp_init],[:])
+
CFLAGS="${CFLAGS} -DROOTLESS_WORKAROUND -DNO_ALLOCA"
+
if test "x$XF86MISC" = xyes || test "x$XF86MISC" = xauto; then
AC_MSG_NOTICE([Disabling XF86Misc extension])
XF86MISC=no
@@ -2087,7 +2079,6 @@ XORG_MANPAGE_SECTIONS
AC_OUTPUT([
Makefile
GL/Makefile
-GL/apple/Makefile
GL/glx/Makefile
include/Makefile
afb/Makefile
@@ -2181,6 +2172,7 @@ hw/xgl/glxext/module/Makefile
hw/xnest/Makefile
hw/xwin/Makefile
hw/xquartz/Makefile
+hw/xquartz/GL/Makefile
hw/xquartz/bundle/Makefile
hw/xquartz/xpr/Makefile
hw/kdrive/Makefile
diff --git a/GL/apple/Makefile.am b/hw/xquartz/GL/Makefile.am
index 7ad9140cc..41d4566dc 100644
--- a/GL/apple/Makefile.am
+++ b/hw/xquartz/GL/Makefile.am
@@ -1,4 +1,5 @@
-AM_CFLAGS = $(DIX_CFLAGS)
+noinst_LTLIBRARIES = libCGLCore.la
+AM_CFLAGS = $(XSERVER_CFLAGS) $(DIX_CFLAGS)
AM_CPPFLAGS = \
-I$(top_srcdir) \
-I$(top_srcdir)/GL/glx \
@@ -8,7 +9,5 @@ AM_CPPFLAGS = \
-I$(top_srcdir)/hw/xquartz/xpr \
-I$(top_srcdir)/miext/damage
-noinst_LIBRARIES = libCGLcore.a
-libCGLcore_a_SOURCES = \
- indirect.c \
- $(top_srcdir)/hw/dmx/glxProxy/compsize.c
+libCGLCore_la_SOURCES = \
+ indirect.c
diff --git a/GL/apple/indirect.c b/hw/xquartz/GL/indirect.c
index a0884d45c..a0884d45c 100644
--- a/GL/apple/indirect.c
+++ b/hw/xquartz/GL/indirect.c
diff --git a/hw/xquartz/Makefile.am b/hw/xquartz/Makefile.am
index 1c97ac8f2..ccef5f6ee 100644
--- a/hw/xquartz/Makefile.am
+++ b/hw/xquartz/Makefile.am
@@ -13,8 +13,8 @@ if X11APP
X11APP_SUBDIRS = bundle
endif
-SUBDIRS = . xpr $(X11APP_SUBDIRS)
-DIST_SUBDIRS = xpr bundle
+SUBDIRS = . GL xpr $(X11APP_SUBDIRS)
+DIST_SUBDIRS = GL xpr bundle
libXquartz_la_SOURCES = \
$(top_srcdir)/fb/fbcmap_mi.c \