Thanks! I was not aware of PKG_CHECK_MODULES. It worked great, and I've learnt something new.
Josh On Wednesday 13 December 2006 14:07, Andreas Ntaflos wrote: > On Wednesday 13 December 2006 19:44, Joshua Moore-Oliva wrote: > > I was just wondering if there were any autoconf macros available for > > libpqxx. I'm creating a project using autotools and would like to be > > able to check for the existence of libpqxx. > > libpqxx installs a pkg-config .pc-file in /usr/lib/pkgconfig/libpqxx.pc. > > All you need to do is check for it with PKG_CHECK_MODULES in your > configure.ac in the usual way: > > PKG_CHECK_MODULES([LIBPQXX], [libpqxx >= 2.5.1]) > AC_SUBST(LIBPQXX_CFLAGS) > AC_SUBST(LIBPQXX_LIBS) > > HTH _______________________________________________ Libpqxx-general mailing list [email protected] http://gborg.postgresql.org/mailman/listinfo/libpqxx-general
