From 4e5525a48f659655a74265b944f1ecfeaa011038 Mon Sep 17 00:00:00 2001 From: Alban Bedel Date: Mon, 6 Apr 2020 17:04:07 +0200 Subject: [PATCH] Fix out of tree builds Out of tree builds are currently broken because $(top_srcdir)src/include is not in the search path. In tree builds are working because autconf add $(top_builddir)/src/include to the search path for the generated config.h. As $(top_builddir) and $(top_srcdir) are identical during in tree builds the search path still end up beeing somehow correct. To fix this add -I$(srcdir)/include to the CPPFLAGS in Makefile.am. --- src/Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Makefile.am b/src/Makefile.am index 483998f..046c599 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,3 +1,4 @@ +AM_CPPFLAGS = -I$(srcdir)/include AM_CFLAGS = -Wall bin_PROGRAMS = tio tio_SOURCES = tty.c \