[Top][All Lists]

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

Re: Cope without xmkmf

From: Dan Nicholson
Subject: Re: Cope without xmkmf
Date: Sun, 20 Jul 2008 15:22:51 -0700
User-agent: Mutt/1.5.16 (2007-06-09)

On Wed, Jul 16, 2008 at 07:12:21AM -0700, Dan Nicholson wrote:
> On Wed, Jul 16, 2008 at 3:04 AM, Stepan Kasal <address@hidden> wrote:
> >
> > Are we able to make AC_PATH_XTRA ready for xmkmf-less Xorg before the
> > end of summer?
> The thing about xmkmf is that it works well because it's knowledgeable
> about X specifics, and it should definitely be kept as a fallback case
> for non-Xorg implementations. I can think of two ways to attack this
> cleanly, and both require upstream support:
> 1. Override AC_PATH_X in xorg-macros.m4, adding a preferred method
> where pkg-config is used.
> 2. Have Xorg install a non-pkg-config/xmkmf method to determine the
> installation directories and change autoconf AC_PATH_X to check this
> first. Something like $bindir/x-config. This could ship in the same
> util-macros package that xorg-macros.m4 comes in.

Attached are patches to add copies the X macros to xorg's util-macros
package and add a method to search via pkg-config. This isn't ideal
since it requires that the xorg macros are found to override the
autoconf ones, but I couldn't find a satisfactory way to wedge in a
pkg-config check to AC_PATH_X externally.

This approach has the advantage that we still fallback on the xmkmf and
direct approaches whether the xorg macros and pkg-config are available
or not. However, in the case that the xorg macros are available, we can
be smarter about using the X installation. It also makes sense that the
X implementation control the autoconf macros governing its usage.

Let me know what you think. I've cc'd the xorg list to see if this would
be acceptable.


Attachment: 0001-Provide-local-copies-of-the-autoconf-X-window-system.patch
Description: Text document

Attachment: 0002-Prefer-pkg-config-when-searching-for-the-X-installat.patch
Description: Text document

Attachment: 0003-Use-echo-when-AS_ECHO-isn-t-available.patch
Description: Text document

reply via email to

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