Configure: Moved configure's detection of XShm to a dedicated macro
commitb8b59d939de175c91c94c273bb01ed64b7d36828
authorChristophe CURIS <christophe.curis@free.fr>
Sun, 17 Nov 2013 17:51:20 +0000 (17 18:51 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Mon, 30 Dec 2013 18:11:06 +0000 (30 18:11 +0000)
treeed9b0d088f97fd936043b0fbb7ff4c21a33646bc
parent062f6dd59d0c63bd316c727214d0841f020b6953
Configure: Moved configure's detection of XShm to a dedicated macro

The original check was not compliant with autoconf's syntax, did not have
a very good behaviour for user and was not easy to make evolve.

The new macro:
 - uses as much as possible autoconf macros for portability and code
consistency;
 - checks also for header usability with the compiler;
 - provides a consistent behaviour on yes/no/auto (if user explicitly
enables support, do not silently disable if not found; if library is found
but not the header, complain to let user install it or explicitly disable
support)

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
configure.ac
m4/wm_xext_check.m4