diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2011-04-25 13:04:45 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2011-04-25 13:04:45 +0000 |
commit | 4fc8ca0951b648515f88445efde27cd0c7bcac1b (patch) | |
tree | d6bcf60f60cab0bb2342797d4dd18abf6a077ca8 /driver/xf86-input-usbtablet/configure.ac | |
parent | 2797512f6efb345defee167bf9b40f4dfacb329a (diff) |
Update configure.ac to match recent upstreams changes.
Bump version to 1.1.0
Diffstat (limited to 'driver/xf86-input-usbtablet/configure.ac')
-rw-r--r-- | driver/xf86-input-usbtablet/configure.ac | 66 |
1 files changed, 27 insertions, 39 deletions
diff --git a/driver/xf86-input-usbtablet/configure.ac b/driver/xf86-input-usbtablet/configure.ac index 422a7409f..3bae90842 100644 --- a/driver/xf86-input-usbtablet/configure.ac +++ b/driver/xf86-input-usbtablet/configure.ac @@ -22,43 +22,33 @@ AC_PREREQ(2.57) AC_INIT([xf86-input-usbtablet], - 1.0, + [1.1.0], [http://www.openbsd.org/], - openbsd-input-usbtablet) + [xf86-input-usbtablet]) AC_CONFIG_SRCDIR([Makefile.am]) +AC_CONFIG_HEADERS([config.h]) AC_CONFIG_AUX_DIR(.) -AM_INIT_AUTOMAKE([foreign dist-bzip2]) +# Initialize Automake +AM_INIT_AUTOMAKE([foreign dist-bzip2]) AM_MAINTAINER_MODE -DRIVER_NAME=usbtablet -AC_SUBST([DRIVER_NAME]) - -# Require xorg-macros: XORG_DEFAULT_OPTIONS -m4_ifndef([XORG_MACROS_VERSION], - [m4_fatal([must install xorg-macros 1.3 or later before running autoconf/autogen])]) -XORG_MACROS_VERSION(1.3) -XORG_DEFAULT_OPTIONS - -AM_CONFIG_HEADER([config.h]) - -# Checks for programs. +# Initialize libtool AC_DISABLE_STATIC AC_PROG_LIBTOOL -AC_PROG_CC -AH_TOP([#include "xorg-server.h"]) +# Initialize X.Org macros 1.8 or later for MAN_SUBSTS set by +# XORG_MANPAGE_SECTIONS +m4_ifndef([XORG_MACROS_VERSION], + [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) +XORG_MACROS_VERSION(1.8) +XORG_DEFAULT_OPTIONS -# -AC_ARG_ENABLE(XINPUT, AS_HELP_STRING([--enable-xinput], - [Build XInput support (default: yes)]), - [XINPUT=$enableval],[XINPUT=yes]) -AM_CONDITIONAL(XINPUT, test "x$XINPUT" = "xyes") -if test "x$XINPUT" = "xyes" ; then - AC_DEFINE(XINPUT,1,[Enable XInput support]) -fi +# Obtain compiler/linker options from server and required extensions +PKG_CHECK_MODULES(XORG, xorg-server xproto inputproto) +# Define a configure option for an alternate input module directory AC_ARG_WITH(xorg-module-dir, AC_HELP_STRING([--with-xorg-module-dir=DIR], [Default xorg module directory [[default=$libdir/xorg/modules]]]), @@ -67,21 +57,19 @@ AC_ARG_WITH(xorg-module-dir, inputdir=${moduledir}/input AC_SUBST(inputdir) -# Checks for extensions -# XORG_DRIVER_CHECK_EXT(RANDR, randrproto) -XORG_DRIVER_CHECK_EXT(XINPUT, inputproto) +# X Server SDK location is required to install evdev header files +# This location is also relayed in the xorg-evdev.pc file +sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server` -# Checks for pkg-config packages -PKG_CHECK_MODULES(XORG, xorg-server xproto $REQUIRED_MODULES) -XORG_CFLAGS="$CWARNFLAGS $XORG_CFLAGS" -AC_ARG_WITH([sdkdir], [], - [sdkdir="$withval"], - [sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`]) +# Workaround overriding sdkdir to be able to create a tarball when user has no +# write permission in sdkdir. See DISTCHECK_CONFIGURE_FLAGS in Makefile.am +AC_ARG_WITH([sdkdir], [], [sdkdir="$withval"]) AC_SUBST([sdkdir]) -# Checks for libraries. - -# Checks for header files. -AC_HEADER_STDC +DRIVER_NAME=usbtablet +AC_SUBST([DRIVER_NAME]) -AC_OUTPUT([Makefile src/Makefile man/Makefile]) +AC_CONFIG_FILES([Makefile + src/Makefile + man/Makefile]) +AC_OUTPUT |