1 Mar 2005 01:46
Re: [E-devel] problems detecting X11 headers?
Mike Frysinger <vapier <at> gentoo.org>
2005-03-01 00:46:13 GMT
2005-03-01 00:46:13 GMT
On Monday 28 February 2005 05:05 pm, Valdis.Kletnieks <at> vt.edu wrote:
> You might want to investigate why those particular x-include and x-library
> values are needed at all - is your system *not* checking /usr/include and
> /usr/lib by default already?
no, after glancing at the new configure.in, i'm pretty sure the bug here is
this bit of logic:
<snip>
if test "x$have_x" = "xyes"; then
if test "x$x_includes" != "x"; then
x_cflags="-I$x_includes"
fi
if test "x$x_libraries" != "x"; then
x_libs="-L$x_libraries -lX11 -lXext"
fi
AM_CONDITIONAL(BUILD_X11, true)
AC_DEFINE(BUILD_X11, 1, [enabling X11 support])
else
</snip>
x_libs is only set to '-lX11 -lXext' if x_library is a valid path ? talk
about bogus ... here's some sane logic:
<snip>
x_libs="-lX11 -lXext"
if test "x$x_libraries" != "x"; then
x_libs="-L$x_libraries $x_libs"
fi
</snip>
-mike
(Continue reading)
RSS Feed