Checking for an include file that requires another include file
realrichardsharpe at gmail.com
Sat Jan 3 14:44:13 MST 2015
On Sat, Jan 3, 2015 at 1:28 PM, Ralph Böhme <rb at sernet.de> wrote:
> On Sat, Jan 03, 2015 at 11:09:20AM -0800, Richard Sharpe wrote:
>> I am working on the Zookeeper registry backend and want to check for
>> the existence of a Zookeeper include file, zookeeper_log.h, that
>> requires zookeeper itself.
>> This requires that -I/usr/local/include/zookeper be passed to CHECK_HEADERS.
>> How do I do that?
> Can you use pkg_config for the zookeeper check?
> You need something like this:
> if Options.options.with_zookeeper:
> conf.check_cfg(package='zookeeper', args='--cflags --libs',
> msg='Checking for zookeeper', uselib_store="ZOOKEEPER")
> conf.CHECK_HEADERS('zookeeper_log.h', lib='zookeeper')
> Cf source3/wscript, l. 1511 where we solve the same problem for glusterfs.
Unfortunately, Zookeeper does not have a pkg_config ... will have to
look for another way.
More information about the samba-technical