Add patch that contain Mali fixes.
[deb_xorg-server.git] / xorg-server.m4
CommitLineData
a09e091a
JB
1dnl Copyright 2005 Red Hat, Inc
2dnl
3dnl Permission to use, copy, modify, distribute, and sell this software and its
4dnl documentation for any purpose is hereby granted without fee, provided that
5dnl the above copyright notice appear in all copies and that both that
6dnl copyright notice and this permission notice appear in supporting
7dnl documentation.
8dnl
9dnl The above copyright notice and this permission notice shall be included
10dnl in all copies or substantial portions of the Software.
11dnl
12dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
13dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
14dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
15dnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
16dnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
17dnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
18dnl OTHER DEALINGS IN THE SOFTWARE.
19dnl
20dnl Except as contained in this notice, the name of the copyright holders shall
21dnl not be used in advertising or otherwise to promote the sale, use or
22dnl other dealings in this Software without prior written authorization
23dnl from the copyright holders.
24dnl
25
26# XORG_DRIVER_CHECK_EXT(MACRO, PROTO)
27# --------------------------
28# Checks for the MACRO define in xorg-server.h (from the sdk). If it
29# is defined, then add the given PROTO to $REQUIRED_MODULES.
30
31AC_DEFUN([XORG_DRIVER_CHECK_EXT],[
32 AC_REQUIRE([PKG_PROG_PKG_CONFIG])
33 SAVE_CFLAGS="$CFLAGS"
34 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
35 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
36#include "xorg-server.h"
37#if !defined $1
38#error $1 not defined
39#endif
40 ]])],
41 [_EXT_CHECK=yes],
42 [_EXT_CHECK=no])
43 CFLAGS="$SAVE_CFLAGS"
44 AC_MSG_CHECKING([if $1 is defined])
45 AC_MSG_RESULT([$_EXT_CHECK])
46 if test "$_EXT_CHECK" != no; then
47 REQUIRED_MODULES="$REQUIRED_MODULES $2"
48 fi
49])