chiark / gitweb /
logind: add 'login' subdir to include dirs
authorKay Sievers <kay.sievers@vrfy.org>
Sat, 31 Dec 2011 03:20:25 +0000 (04:20 +0100)
committerKay Sievers <kay.sievers@vrfy.org>
Sat, 31 Dec 2011 03:20:25 +0000 (04:20 +0100)
When separate 'builddirs', like with 'distcheck', are used, the generated
sources, like the '.c' files from 'gperf', are placed in the 'builddir' and
can not find the include headers in 'srcdir'.

Makefile.am

index a5df14c854d918fe71ceb11abb1b16d53b952e17..f1e0b05a8d312ae69e54c088c5b57c0d33543925 100644 (file)
@@ -1250,6 +1250,10 @@ nodist_systemd_logind_SOURCES = \
 EXTRA_DIST += \
        src/login/logind-gperf.gperf
 
+systemd_logind_CPPFLAGS = \
+       $(AM_CPPFLAGS) \
+       -I $(top_srcdir)/src/login
+
 systemd_logind_CFLAGS = \
        $(AM_CFLAGS) \
        $(DBUS_CFLAGS) \