Apache OpenOffice (AOO) Bugzilla – Issue 97428
Xinerama not found
Last modified: 2009-01-27 09:12:27 UTC
Xinerama is always looked for in /usr/lib. That means it is not found on 64-bit system (x86_64, ppc64), where the lib is in /usr/lib64. It's weird a little that configure from SVN finds it properly; to exhibit the wrong behaviour it's needed to run autoconf.
Created attachment 58936 [details] proposed fix
dtardon: your text says ppc64 too, but doesn't take it into account in your patch at all? And what about ia64? :)
FWIW the various kde and qt test are strewn with lib vs lib64 goo, e.g. if test -n "$KDEDIR" ; then kde_incdirs="$KDEDIR/include $kde_incdirs" if test "$build_cpu" != "x86_64" ; then kde_libdirs="$KDEDIR/lib $kde_libdirs" else kde_libdirs="$KDEDIR/lib64 $KDEDIR/lib $kde_libdirs" fi fi which is all a bit messy.
cmc: Yes, it's messy, but IIRC that was introduced because of a 64bit distro that had no 32bit-compatibility layer, and had 64bit libraries in <whatever>/lib (probably Debian, according to what I've googled - http://lwn.net/Articles/89825/, but no idea if it is still true.) rene: Please, do they use lib64 in the end, or not? ;-)
dtardon->rene: You're right--I forgot a test for ppc64. So here it is, with fallback for /usr/lib if /usr/lib64 doesn't exist. Feel free to add another test for ia64 ;)
Created attachment 59236 [details] modification, takes ppc64 into account
Created attachment 59238 [details] sorry, wrong file... another try
Would have a problem on s390x :-). How about trying first to see if pkg-config --variable=libdir x11 works, which it should on most stuff these days, and fall back to lib if it doesn't work ?
cmc: x11? you mean xinerama, don't you? Otherwise, yes, could do.
.
dtardon->cmc: You're right; I didn't think about pkg-config. dtardon->rene: The variable we are talking about is called XLIB, so I think testing for x11 gives more sense. On the other side, the variable is not used at any other place besides testing for Xinerama, so maybe the best thing would be to get rid of it entirely and add something like: xineramalib=`$PKG_CONFIG --variable=libdir xinerama` if test x"$xineramalib" = x; then xineramalib=/usr/lib fi just before the block of xinerama tests.
Created attachment 59257 [details] yet another try; this time using pkg-config
comitted to configuretopleveö
looks good
seen DEV300_m40