DESTDIR and pkg-config variables

Dan Nicholson dbn.lists at gmail.com
Mon Jan 12 09:58:00 PST 2009


On Mon, Jan 12, 2009 at 9:53 AM, Julien Cristau <jcristau at debian.org> wrote:
> On Mon, Jan 12, 2009 at 09:50:46 -0800, Dan Nicholson wrote:
>
>> I think the right way to do this is 1) Keep taking the default from
>> pkg-config and 2) Pass in a value during distcheck with
>> DISTCHECK_CONFIGURE_FLAGS. That'd look something like this:
>>
>> configure.ac:
>> AC_ARG_WITH([appdefaultdir],
>>     [AC_HELP_STRING([--with-appdefaultdir=DIR],
>>         [Xt app-defaults directory (default: from pkg-config)])],
>>     [appdefaultdir="$withval"],
>>     [appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`])
>>
>> Makefile.am:
>> DISTCHECK_CONFIGURE_FLAGS = --with-appdefaultdir='$${datadir}/X11/app-defaults'
>>
>> I just tested that on xfontsel and it works.
>>
> IIRC I did exactly that in xdm.

Yeah, I do remember this coming up in the past.

--
Dan



More information about the xorg mailing list