Line 0
Link Here
|
|
|
1 |
# -*- Autoconf -*- |
2 |
# Process this file with autoconf to produce a configure script. |
3 |
|
4 |
AC_PREREQ([2.60]) |
5 |
AC_INIT([xf86-input-mtrack], [1.0_rc2], [BUG-REPORT-ADDRESS]) |
6 |
AC_CONFIG_SRCDIR([driver/mtrack.c]) |
7 |
AC_CONFIG_HEADERS([config.h]) |
8 |
|
9 |
AM_INIT_AUTOMAKE([foreign]) |
10 |
AM_MAINTAINER_MODE |
11 |
|
12 |
# Checks for programs. |
13 |
AC_DISABLE_STATIC |
14 |
AC_PROG_LIBTOOL |
15 |
|
16 |
# Initialize X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS |
17 |
m4_ifndef([XORG_MACROS_VERSION], |
18 |
[m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) |
19 |
XORG_MACROS_VERSION([1.8]) |
20 |
XORG_DEFAULT_OPTIONS |
21 |
|
22 |
# Obtain compiler/linker options from server and required extensions |
23 |
PKG_CHECK_MODULES(XORG, xorg-server xproto inputproto) |
24 |
|
25 |
# Define a configure option for an alternate input module directory |
26 |
AC_ARG_WITH(xorg-module-dir, |
27 |
AC_HELP_STRING([--with-xorg-module-dir=DIR], |
28 |
[Default xorg module directory [[default=$libdir/xorg/modules]]]), |
29 |
[moduledir="$withval"], |
30 |
[moduledir="$libdir/xorg/modules"]) |
31 |
inputdir=${moduledir}/input |
32 |
AC_SUBST(inputdir) |
33 |
|
34 |
# Checks for libraries. |
35 |
AC_CHECK_LIB([m], [sin]) |
36 |
AC_CHECK_LIB([mtdev], [mtdev_open]) |
37 |
|
38 |
# Checks for header files. |
39 |
AC_CHECK_HEADERS([fcntl.h stdint.h]) |
40 |
|
41 |
# Checks for typedefs, structures, and compiler characteristics. |
42 |
AC_C_INLINE |
43 |
|
44 |
# Checks for library functions. |
45 |
AC_CHECK_FUNCS([memset]) |
46 |
|
47 |
DRIVER_NAME=mtrack |
48 |
AC_SUBST([DRIVER_NAME]) |
49 |
|
50 |
AC_ARG_ENABLE(debug, "Debug gesture") |
51 |
AC_ARG_ENABLE(debug, |
52 |
AS_HELP_STRING([--enable-debug], |
53 |
[Enable debugging (default: disabled)]), |
54 |
[AC_DEFINE(DEBUG_GESTURE, 1, Enable gesture degbug)]) |
55 |
|
56 |
AC_CONFIG_FILES([Makefile src/Makefile]) |
57 |
AC_OUTPUT |