<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.32.2">
</HEAD>
<BODY>
On Tue, 2011-06-14 at 10:56 +0200, Diego Elio Pettenò wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
Il giorno lun, 13/06/2011 alle 19.43 -0400, Gaetan Nadon ha scritto:
>
> Using m4 to check for macro defined by the xserver to ensure it is
> installed
> will work as long as the macro is not removed. The preferred way of
> checking
> for dependencies is to use PKG_CHECK_MODULE.
Different moment to check for them:
- PKG_CHECK_MODULE check presence when running ./configure
- m4_ifndef when autoconf is executed.
If you build autotools for the package on a system that has no
xorg-server installed, you'll receive a broken configure script, thus
why I wanted to make it explicit that you need to have it around at
autoconf time.
</PRE>
</BLOCKQUOTE>
What is the benefit of having:
<BLOCKQUOTE>
<PRE>
autoreconf: running: aclocal -I /home/nadon/xorg/src/inst/share/aclocal --force
configure.ac:51: error: must install xorg-server development files before running autoconf/autogen
</PRE>
</BLOCKQUOTE>
over having:
<BLOCKQUOTE>
<PRE>
checking for XORG... no
configure: error: Package requirements (xorg-server >= 1.6) were not met:
</PRE>
</BLOCKQUOTE>
Dan is also of the opinion that it is preferable, but I just can't see why. In a distro building world perhaps?<BR>
<BR>
One drawback is the m4 test "fails to fail" when the server is uninstalled after synaptics have been configured as the XORG macro is cached. The following PKG_CHECK_MODULE will stop on error, however. Maybe this is the way it should work.<BR>
<BR>
BTW, the randr extension is not optional so this whole test is useless, but that is a separate discussion :-)<BR>
<BR>
I am taking a hard look at this because when I find something that is better, I apply it to other modules. This is a lot of work, so I need to be really sure.
<BLOCKQUOTE TYPE=CITE>
<PRE>
--
Diego Elio Pettenò — Flameeyes
<A HREF="http://blog.flameeyes.eu/">http://blog.flameeyes.eu/</A>
_______________________________________________
<A HREF="mailto:xorg-devel@lists.x.org">xorg-devel@lists.x.org</A>: X.Org development
Archives: <A HREF="http://lists.x.org/archives/xorg-devel">http://lists.x.org/archives/xorg-devel</A>
Info: <A HREF="http://lists.x.org/mailman/listinfo/xorg-devel">http://lists.x.org/mailman/listinfo/xorg-devel</A>
</PRE>
</BLOCKQUOTE>
<BR>
</BODY>
</HTML>