On Wed, Dec 18, 2013 at 9:26 PM, Jordan H. <jorda...@fastmail.fm> wrote:

> Makefile.am:
>
>     program_CFLAGS += @SQLITE_CFLAGS@
>     program_LDADD += @SQLITE_LIBS@
>

First you should not need to use AC_SUBST() for these variables at all if
you have the right pkg.m4.

Second, can you please post the full Makefile.am? If you haven't defined
program_LDADD and program_CFLAGS before using += they are not going to work.

Third, you want to use $(SQLITE_CFLAGS) rather than the @@ replacement.

A bit of documentation for PKG_CHECK_MODULES can be found on my Autotools
Mythbuster:
https://www.flameeyes.eu/autotools-mythbuster/pkgconfig/pkg_check_modules.html


Diego Elio Pettenò — Flameeyes
flamee...@flameeyes.eu — http://blog.flameeyes.eu/

Reply via email to