Re: configure error: "Can't find X11 headers and libs"
Re: configure error: "Can't find X11 headers and libs"
- Subject: Re: configure error: "Can't find X11 headers and libs"
- From: "Tom Scogland" <email@hidden>
- Date: Tue, 8 Jul 2008 12:30:10 -0500
Indeed, evidently I already have it. The question of course becomes,
why is this a problem? There are three easy ways to resolve the issue,
either have xmkmf in the way you already described, add the
--x-includes and --x-libs arguments to configure, or add dylib to that
script. It may not fix the issue for everyone today, but it fixes it
for you, and anyone else who reads this thread until the distributed
autoconf goes up a version, which one would assume it will do sometime
shortly. There's no reason at all to ask for XQuartz to take care of
the problem when an autoconf update which will be coming fixes it, now
is there?
-Tom
On Tue, Jul 8, 2008 at 12:24 PM, Tom Lane <email@hidden> wrote:
> "Tom Scogland" <email@hidden> writes:
>> On Tue, Jul 8, 2008 at 8:59 AM, Tom Lane <email@hidden> wrote:
>>> I think a *minimum* expectation is that Leopard X11 should work with
>>> autoconf scripts generated by the autoconf version shipped in Leopard.
>
>> Mr lane, I am not an apple employee or in any way affiliated with
>> them, but 2.61 which is the version shipped with leopard, works just
>> fine with AC_PATH_X and the extra version thereof which is more
>> specific.
>
> Uh, no, it does not. I've got the 2.61 code right here, and it only
> looks for .a, .so, .sl:
>
> for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
> do
> # Don't even attempt the hair of trying to link an X program!
> for ac_extension in a so sl; do
> if test -r "$ac_dir/libX11.$ac_extension"; then
> ac_x_libraries=$ac_dir
> break 2
> fi
> done
> done])
>
> (This is in /usr/share/autoconf/autoconf/libs.m4 if you need to look
> for yourself.)
>
> 2.62 is indeed better:
>
> for ac_extension in a so sl dylib la dll; do
>
> but 2.61 won't work.
>
> Now 2.61 *does* work if you have xmkmf installed, which you would if
> you'd originally installed the stock Leopard X11 and then installed
> the Xquartz distro over that. Without xmkmf, the only way to make it
> work is to explicitly specify the paths.
>
> regards, tom lane
>
--
-N
AKA:Tom Scogland
I am enough of an artist to draw freely upon my imagination.
Imagination is more important than knowledge. Knowledge is limited.
Imagination encircles the world.
-Albert Einstein
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden