--- a/avilib/Makefile.am	2004-03-29 22:00:28.000000000 +0200
+++ b/avilib/Makefile.am	2015-08-30 13:57:05.720407860 +0200
@@ -5,7 +5,7 @@
 
 noinst_LIBRARIES = libavi.a
 
-INCLUDES = -I./
+CFLAGS = -I$(top_srcdir)/avilib
 
 CFLAGS=-O3 -funroll-loops -ffast-math -DLINUX -Wall @CFLAGS@
 libavi_a_SOURCES = avilib.c avidump.c avimisc.c xio.c
