gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: back x11 configure tests


From: Banlu Kemiyatorn
Subject: Re: back x11 configure tests
Date: Mon, 14 Mar 2011 11:14:26 +0700

----- Original message -----
> Hi,
> I was getting a missing symbol error when I tried to drag and drop. It
> turns out that back wasn't linked to libXext; the configure test
> AC_CHECK_LIB(Xext, main) was failing (silently). This is on Ubuntu 10.10.
>
> I changed it to: (and did the same for Xt and Xmu)
>
>    AC_CHECK_LIB(Xext, main)
>    if test "$HAVE_LIBXext" = no; then
>        PKG_CHECK_MODULES([XEXT], [xext])
>    fi
>
> so it uses pkg-config if the AC_CHECK_LIB can't find the library. This
> fixed the problem for me, but I'm not sure if it's the right thing to do.
>
> One thing is that according to the autoconf docs, PKG_CHECK_MODULES will
> cause a hard failure if it can't find the library. Are Xext, Xt, and Xmu
> hard dependencies of x11 back?

Hi, not sure what a hard failure is but can we use `pkg-config --exists x11 xext` instead in that case?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]