Re: [LAD] Autotools and missing headers.

From: Gabriel M. Beddingfield <gabriel@email-addr-hidden>
Date: Sun Jun 21 2009 - 14:42:49 EEST

Ulrich Lorenz Schlüter wrote:
> To configure.ac I already added:
> PKG_CHECK_MODULES(RAUL, raul, ,[AC_MSG_ERROR(Can't find raul)])

In configure.ac, put:

PKG_CHECK_MODULES([LV2CORE], lv2core, ,[AC_MSG_ERROR(Can't find liblv2core)])
PKG_CHECK_MODULES([LV2_PLUGIN], lv2-plugin, ,[AC_MSG_ERROR(Can't find
liblv2-plugin)])
PKG_CHECK_MODULES([RAUL], raul, ,[AC_MSG_ERROR(Can't find raul)])

CFLAGS="$LV2CORE_CFLAGS $LV2_PLUGIN_CFLAGS $RAUL_CFLAGS"
LIBS="$LV2CORE_LIBS $LV2_PLUGIN_LIBS $RAUL_LIBS"

> To Makefile.am i added:
> CPPFLAGS = -I/usr/include/lv2-c++-tools -I/usr/include/raul
> Same errors.

Don't set CPPFLAGS or anything like it in Makefile.am. These are set in
confingure.ac. Also, there's rules about which ones the user sets and which one
the build system sets. E.g. I think CFLAGS is reserved for the build system,
but CPPFLAGS reserved for the user.

HTH,
Gabriel

_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-dev
Received on Sun Jun 21 16:15:01 2009

This archive was generated by hypermail 2.1.8 : Sun Jun 21 2009 - 16:15:02 EEST