Hello, On Dec 18, 2013, at 22:26 , Jordan H. wrote:
Thanks but I'm still getting the same error.
can you provide the result of the following commands to get a better idea of what's going wrong:
$ grep SQLITE_ config.log $ grep program_CFLAGS Makefile after running configure?
configure.ac: ... m4_define(SQLITE_REQUIRED_VERSION, 3.0) ... PKG_CHECK_MODULES(SQLITE, [sqlite >= $SQLITE_REQUIRED_VERSION]) AC_SUBST([SQLITE_CFLAGS]) AC_SUBST([SQLITE_LIBS])
That should be without the $ sign. M4 macros don't require any special symbols for expansion. Also better quote the definition for the sake of consistency like this:
m4_define([SQLITE_REQUIRED_VERSION], [3.0])
I get through ./configure all right. Makefile.am: program_CFLAGS += @SQLITE_CFLAGS@ program_LDADD += @SQLITE_LIBS@If I forced the package finding by using pkg-config (which I've heard isa no-no with automake)... program_CFLAGS += `pkg-config --cflags sqlite3` program_LDFLAGS = `pkg-config --libs sqlite3` ...the program compiles just fine.
your manual commands probe for sqlite3 but the ones generated from PKG_CHECK_MODULES will probe for sqlite. I notice on my system there's both .pc files. Have you checked with .pc files are found for sqlite and sqlite3?
Regards, Thomas -- Thomas Jahns DKRZ GmbH, Department: Application software Deutsches Klimarechenzentrum Bundesstraße 45a D-20146 Hamburg Phone: +49-40-460094-151 Fax: +49-40-460094-270 Email: Thomas Jahns <ja...@dkrz.de>
smime.p7s
Description: S/MIME cryptographic signature