[PATCH input-synaptics 1/5] Use appropriate Autoconf statements to check for prerequisites

Diego Elio Pettenò flameeyes at gmail.com
Tue Jun 14 01:56:41 PDT 2011


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.

-- 
Diego Elio Pettenò — Flameeyes
http://blog.flameeyes.eu/




More information about the xorg-devel mailing list