aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorGaetan Nadon <memsize@videotron.ca>2010-04-15 13:22:31 -0400
committerGaetan Nadon <memsize@videotron.ca>2010-04-19 08:52:06 -0400
commit44baa36b9904f2afdfd00769a2d15a5eb630059e (patch)
tree1d8095719b2677bf0e460154da5259582545c22a /configure.ac
parentconfig: remove unrequired AC_HEADER_STDC (diff)
downloadxf86-input-evdev-44baa36b9904f2afdfd00769a2d15a5eb630059e.tar.gz
xf86-input-evdev-44baa36b9904f2afdfd00769a2d15a5eb630059e.tar.bz2
xf86-input-evdev-44baa36b9904f2afdfd00769a2d15a5eb630059e.zip
config: refactor and comment the sdkdir distcheck workaround
Seperate legitimate sdkdir usage from distcheck workaround. Comment this non obvious workaround. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac14
1 files changed, 9 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac
index b1352ec..7213f73 100644
--- a/configure.ac
+++ b/configure.ac
@@ -60,13 +60,17 @@ XORG_DRIVER_CHECK_EXT(XINPUT, inputproto)
# to satisfy silly distcheck requirements.
PKG_CHECK_MODULES(XORG, xorg-server xproto $REQUIRED_MODULES)
-AC_ARG_WITH([sdkdir], [],
- [sdkdir="$withval"],
- [sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`])
-AC_SUBST([sdkdir])
-
# Checks for libraries.
+# 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`
+
+# 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])
+
DRIVER_NAME=evdev
AC_SUBST([DRIVER_NAME])