collectd: enable/disable libpq explicitly
If '--with-libpq' is not included in configure options, the configure
script will assume 'with-libpq=yes' and try to figure below variables
out with 'pg_config':
with_libpq_includedir, with_libpq_libdir
This causes configure QA errors on some hosts that have 'pg_config'
installed (which from postgresql-devel):
* ERROR: This autoconf log indicates errors, it looked at host include
and/or library paths while determining system capabilities.
Anyways the target package should not depend on any host headers/libs,
we should enable/disable the libpq support explicitly according to if
the postgresql feature was enabled.
(From meta-openembedded rev:
438d363331b110c06554bda630e2a2a3f7ab1739)
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>