GNOME Bugzilla – Bug 105836
configure.in doesn't find Xi, Xtst in all locations
Last modified: 2004-12-22 21:47:04 UTC
If you have libXi or libXtst in a location such as /usr/lib64 or /usr/local/lib, then the configure checks fail. I think because the AC_CHECK_LIB never works, because -lX11 isn't on the link line when it tries to link to -lXi. Then it falls back to searching the two hardcoded locations which covers up the problem for most users.
Are you referring to a situation where libXi or libXtst are not installed in the same location as the X libraries or where ther X libraries are installed in /usr/lib64 or /usr/local/lib?
I guess we have all X libraries in /usr/X11R6/lib64 or something like that, on reflection. Anyhow, basic point is, the AC_CHECK_LIB doesn't work so the normal ld search path isn't searched. At least, it seems so.
Created attachment 14314 [details] [review] Proposed patch
Havoc, Does the propsoed patch work for you?
It's a bit involved for me to try a build on a machine with the /lib64, but the patch is exactly how I would have fixed it and looks right.
Patch committed to CVS HEAD.