PATCH: fix build with X.org 7.2 (RESEND

Gerald Pfeifer gerald at pfeifer.com
Sat Mar 24 18:44:50 CDT 2007


[ I believe this still open, while I have seen many other patches being
  applied in the meantime, thus resending. ]

Building WIne 0.9.31 with X.org 7.2 fails on FreeBSD, and probably other 
platforms.

Specficially, the symbols XauGetBestAuthByAddr and XauDisposeAuth have 
are no longer in libXt but libXau, so we need to add a configure check
for libXau.

This patch was tested by Rene Laden who also contributed the [$X_LIBS]
snippet of the patch.

Gerald

Add -lXau to NASLIBS if applicable to obtain XauGetBestAuthByAddr and 
XauDisposeAuth from libXau.

Index: configure.ac
===================================================================
RCS file: /home/wine/wine/configure.ac,v
retrieving revision 1.620
diff -u -3 -p -r1.620 configure.ac
--- configure.ac	8 Mar 2007 13:18:26 -0000	1.620
+++ configure.ac	10 Mar 2007 21:05:12 -0000
@@ -457,7 +457,11 @@ then
          [AC_CHECK_HEADERS(audio/soundlib.h,,,[#include <audio/audiolib.h>])
           AC_CHECK_LIB(audio,AuCreateFlow,
                        [AC_DEFINE(HAVE_NAS,1,[Define if you have NAS including devel headers])
-                        NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"],,
+                        AC_CHECK_LIB(Xau,XauGetBestAuthByAddr,
+                          [NASLIBS="-lXau -laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"],
+                          [NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"],
+                          [$X_LIBS])
+                       ],,
                        [-lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS])])
 
     CPPFLAGS="$ac_save_CPPFLAGS"



More information about the wine-patches mailing list