configure.ac: Add subdir-objects to AM_INIT_AUTOMAKE paramaters
authorJonas Ådahl <jadahl@gmail.com>
Tue, 15 Jul 2014 21:25:28 +0000 (23:25 +0200)
committerJonas Ådahl <jadahl@gmail.com>
Tue, 15 Jul 2014 21:44:50 +0000 (23:44 +0200)
Silences a warning when running autogen.sh.

This also adds a work-around for a bug in automake
<https://lists.gnu.org/archive/html/bug-automake/2014-01/msg00005.html>
replacing $(top_srcdir) with ../ in test/Makefile.am.

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
configure.ac
test/Makefile.am

index 65c915e68c15b38a3f9c6a4d8e7b6c07e6b9ab09..fd402e20f49ac2cbc0d87004103b3cd9da68832a 100644 (file)
@@ -20,7 +20,7 @@ AC_SUBST([LIBINPUT_VERSION], [libinput_version])
 AC_CONFIG_HEADERS([config.h])
 AC_CONFIG_MACRO_DIR([m4])
 
-AM_INIT_AUTOMAKE([1.11 foreign no-dist-gzip dist-xz])
+AM_INIT_AUTOMAKE([1.11 foreign no-dist-gzip dist-xz subdir-objects])
 
 # Before making a release, the LIBINPUT_LT_VERSION string should be
 # modified.
index 16dac419c974cc39be531d6fa79cf3c3b9b5cfc8..c3c293a064236fdc55ac7434322f12d4464ca283 100644 (file)
@@ -11,8 +11,8 @@ AM_CXXFLAGS = $(GCC_CXXFLAGS)
 TEST_LIBS = liblitest.la $(CHECK_LIBS) $(LIBUDEV_LIBS) $(LIBEVDEV_LIBS) $(top_builddir)/src/libinput.la
 noinst_LTLIBRARIES = liblitest.la
 liblitest_la_SOURCES = \
-       $(top_srcdir)/src/libinput-util.h \
-       $(top_srcdir)/src/libinput-util.c \
+       ../src/libinput-util.h \
+       ../src/libinput-util.c \
        litest.h \
        litest-int.h \
        litest-bcm5974.c \