blob: d91509ad6190badbef1c6a2a10d809a38ca22856 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
AC_INIT(eagle, 0.1)
AC_PROG_CC
# FIXME: We should make the x11-dri2 backend optional
PKG_PROG_PKG_CONFIG()
PKG_CHECK_MODULES(EAGLE, [libdrm dri x11 xfixes xext libudev >= 136])
if test $CC = gcc; then
GCC_CFLAGS="-Wall -Wstrict-prototypes -Wmissing-prototypes"
fi
AC_SUBST(GCC_CFLAGS)
# FIXME: We should support both drivers and select at runtime, of course.
AC_ARG_WITH(driver, AS_HELP_STRING([--with-driver=[intel/radeon]],
[Driver to compile for]),
[DRIVER=$withval], [DRIVER=intel])
AC_SUBST(DRIVER)
AC_CONFIG_FILES([Makefile eagle.pc])
AC_OUTPUT
|