Well, there are none. All you have to do is to add PKG_CHECK_MODULES to your configure.ac and then LIBPQXX_CFLAGS and LIBPQXX_LIBS to your Makefile.am.
configure.ac
PKG_CHECK_MODULES([LIBPQXX], [libpqxx >= 2.6.9])
AC_SUBST(LIBPQXX_CFLAGS)
AC_SUBST(LIBPQXX_LIBS)
src/Makefile.am
myproject_CPPFLAGS = @LIBPQXX_CFLAGS@ # Add extra options you need
myproject_LDADD = @LIBPQXX_LIBS@ # Add extra options you need
Now, when you run ./configure, somewhere in the middle there must be
…
…
checking for pkg-config… /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0… yes
checking for LIBPQXX… yes
checking for boostlib >= 1.41… yes
checking for gcc… gcc
…
…
Advertisement