configure.ac revision d5a688bc
1
2# Initialize Autoconf
3AC_PREREQ([2.60])
4AC_INIT([libXxf86dga], [1.1.4],
5        [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [libXxf86dga])
6AC_CONFIG_SRCDIR([Makefile.am])
7AC_CONFIG_HEADERS(src/config.h)
8
9# Initialize Automake
10AM_INIT_AUTOMAKE([foreign dist-bzip2])
11
12# Initialize libtool
13AC_PROG_LIBTOOL
14
15# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
16m4_ifndef([XORG_MACROS_VERSION],
17          [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
18XORG_MACROS_VERSION(1.8)
19XORG_DEFAULT_OPTIONS
20XORG_CHECK_MALLOC_ZERO
21
22# Obtain compiler/linker options for depedencies
23PKG_CHECK_MODULES(XXF86DGA, xproto x11 xextproto xext [xf86dgaproto >= 2.0.99.2])
24
25# Check for _XEatDataWords function that may be patched into older Xlib release
26SAVE_LIBS="$LIBS"
27LIBS="$XXF86DGA_LIBS"
28AC_CHECK_FUNCS([_XEatDataWords])
29LIBS="$SAVE_LIBS"
30
31AC_CONFIG_FILES([Makefile
32		src/Makefile
33		man/Makefile
34		xxf86dga.pc])
35AC_OUTPUT
36