diff -aur a/configure.ac b/configure.ac --- a/configure.ac 2006-09-21 21:46:45.000000000 -0700 +++ b/configure.ac 2006-09-21 21:46:29.000000000 -0700 @@ -194,6 +194,7 @@ case $host_os in *netbsd*) AC_DEFINE(USE_ALPHA_PIO, 1, [NetBSD PIO alpha IO]) ;; esac + GLX_ARCH_DEFINES="-D__GLX_ALIGN64 -mieee" ;; arm*) ARM_VIDEO=yes @@ -220,6 +221,7 @@ xorg_loader_sparcmuldiv="yes" SPARC64_VIDEO=yes BSD_ARCH_SOURCES="sparc64_video.c ioperm_noop.c" + GLX_ARCH_DEFINES="-D__GLX_ALIGN64" ;; x86_64*|amd64*) use_x86_asm="yes" @@ -231,8 +233,16 @@ SYS_LIBS=-lamd64 ;; esac + GLX_ARCH_DEFINES="-D__GLX_ALIGN64" + ;; + ia64*) + GLX_ARCH_DEFINES="-D__GLX_ALIGN64" + ;; + s390*) + GLX_ARCH_DEFINES="-D__GLX_ALIGN64" ;; esac +AC_SUBST(GLX_ARCH_DEFINES) dnl BSD *_video.c selection AM_CONDITIONAL(ALPHA_VIDEO, [test "x$ALPHA_VIDEO" = xyes]) diff -aur a/GL/glx/Makefile.am b/GL/glx/Makefile.am --- a/GL/glx/Makefile.am 2006-07-05 11:31:36.000000000 -0700 +++ b/GL/glx/Makefile.am 2006-09-21 21:37:03.000000000 -0700 @@ -17,7 +17,8 @@ @MODULE_DEFINES@ \ @LOADER_DEFINES@ \ -DNO_LIBCWRAPPER \ - @GLX_DEFINES@ + @GLX_DEFINES@ \ + @GLX_ARCH_DEFINES@ # none yet #sdk_HEADERS = diff -aur a/hw/dmx/glxProxy/Makefile.am b/hw/dmx/glxProxy/Makefile.am --- a/hw/dmx/glxProxy/Makefile.am 2006-07-05 11:31:39.000000000 -0700 +++ b/hw/dmx/glxProxy/Makefile.am 2006-09-21 21:37:03.000000000 -0700 @@ -33,6 +33,7 @@ AM_CFLAGS = @SERVER_DEFINES@ \ @MODULE_DEFINES@ \ + @GLX_ARCH_DEFINES@ \ -I$(top_srcdir)/hw/dmx \ -I$(top_srcdir)/include \ -I$(top_srcdir)/GL/include \