Further notes on 7.4

Dan Nicholson dbn.lists at gmail.com
Wed Jul 2 15:00:21 PDT 2008


On Wed, Jul 2, 2008 at 8:11 AM, Rémi Cardona <remi at gentoo.org> wrote:
>
> Would it be advisable to tell all those packages to use only pkg-config,
> ie through a formal deprecation of the AC_PATH_X macros?

Fallback on AC_PATH_X and friends. It's pretty straightforward.
Without actually testing:

PKG_CHECK_EXISTS([x11],
    [PKG_CHECK_MODULES([X], [x11])],
    [AC_PATH_XTRA])

That would give you $X_CFLAGS and $X_LIBS in both cases. There'd
probably be a little more error checking, but that's the gist of it.

--
Dan



More information about the xorg mailing list