cross compiling with txlib support

Glenn McGrath <[email protected]>
Newsgroups gmane.comp.freedesktop.xserver
Message-ID <[email protected]>
Attached is a patch i need to use to cross compile xserver with tslib
support.

Without it i get...

checking tslib.h usability... yes
checking tslib.h presence... no
configure: WARNING: tslib.h: accepted by the compiler, rejected by the
preprocessor!
configure: WARNING: tslib.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to [email protected] ##
configure: WARNING:     ## ------------------------------------ ##
checking for tslib.h... no


The problem is generally discussed in the following email.
http://mail.gnu.org/archive/html/autoconf/2003-03/msg00156.html


I dont know if this is the best way to fix the problem, but it works for
me.



Glenn
xserver_cross_tslibs.diff (application/octet-stream, 568 B)
Index: configure.ac
===================================================================
RCS file: /cvs/xserver/xserver/configure.ac,v
retrieving revision 3.52
diff -u -r3.52 configure.ac
--- configure.ac	25 Jan 2004 05:24:09 -0000	3.52
+++ configure.ac	9 Feb 2004 01:53:36 -0000
@@ -74,7 +74,11 @@
 AC_CHECK_HEADERS([linux/h3600_ts.h])
 
 # tslib touchscreen driver
-AC_CHECK_HEADERS([tslib.h])
+AC_CHECK_HEADERS(tslib.h,,,
+[[#if HAVE_TSLIB_H
+# include <tslib.h>
+#endif
+]])
 
 REQUIRED_MODULES="randr render fixesext damageext xextensions xfont xproto xtrans xau"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.