collectd: enable/disable libpq explicitly
authorWenzong Fan <wenzong.fan@windriver.com>
Tue, 8 Apr 2014 09:07:48 +0000 (17:07 +0800)
committerPatrick Ohly <patrick.ohly@intel.com>
Fri, 9 Jan 2015 16:36:55 +0000 (08:36 -0800)
commitf3273331486f396d124f57d49bf6fe158718ae78
tree708e466fbc13b08b11efd3c6bfdb5ca1f8e4c9b2
parentfed5560a937a0fd8ca9183d9b11a0030ba11692f
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>
meta-openembedded/meta-oe/recipes-extended/collectd/collectd_5.2.2.bb