COMEDILIB_CFLAGS: Fix for separate build directory.
authorIan Abbott <abbotti@mev.co.uk>
Wed, 11 May 2011 10:45:07 +0000 (11:45 +0100)
committerIan Abbott <abbotti@mev.co.uk>
Wed, 11 May 2011 10:45:07 +0000 (11:45 +0100)
When doing an out-of-tree build, the comedi_version.h file is in
the build tree, not in the source tree.  The CFLAGS needs an additional
-I option so the compiler can find it.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
configure.ac

index e59cb563df04b6dbc3c83a824ba69dc9d68e1b7b..cd8cb729a76f9262d20ce19833367c2a13f90ed8 100644 (file)
@@ -85,7 +85,7 @@ AC_HEADER_STDC([])
 
 AX_TLS
 
-COMEDILIB_CFLAGS="$COMEDILIB_CFLAGS -I\$(top_srcdir)/include $COMEDILIB_DEBUG"
+COMEDILIB_CFLAGS="$COMEDILIB_CFLAGS -I\$(top_srcdir)/include -I\$(top_builddir)/include $COMEDILIB_DEBUG"
 COMEDILIB_LIBS="$COMEDILIB_LIBS \$(top_builddir)/lib/libcomedi.la -lm"
 AC_SUBST(COMEDILIB_CFLAGS)
 AC_SUBST(COMEDILIB_LIBS)