summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gmail.com>2011-05-25 18:16:22 +0200
committerPeter Hutterer <peter.hutterer@who-t.net>2011-05-26 12:11:34 +1000
commit6eb829e07e455a8a04dabae7f257dd42a9b8bcdf (patch)
treee01c73294f4f852ce22e43fe5b033af9841ccaac /configure.ac
parentdac624ad2b3a67ab93c11d8ee0a91b217fc1afe6 (diff)
build: apply the distcheck tricks used in xf86-input-evdev
With this change it is possible to complete "make distcheck" safely on the module, as it no longer tries to write to system directories. Since synaptics also installs a configuration file, xorg-conf-dir also needs to be overridden during distcheck. Signed-off-by: Diego Elio Pettenò <flameeyes@gmail.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index dfef591..bf99958 100644
--- a/configure.ac
+++ b/configure.ac
@@ -146,6 +146,11 @@ if test "x$have_libxtst" = "xyes" ; then
fi
# -----------------------------------------------------------------------------
+# 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])
+
AC_CONFIG_FILES([Makefile
xorg-synaptics.pc])
AC_OUTPUT