build: fix pkg-config output parsing in configure
authorBen Noordhuis <info@bnoordhuis.nl>
Mon, 15 Jun 2015 20:04:14 +0000 (22:04 +0200)
committerBen Noordhuis <info@bnoordhuis.nl>
Mon, 15 Jun 2015 23:11:47 +0000 (01:11 +0200)
commitc207e8d223bddd3f391f9ce06f770901356fc50f
tree5a5dbf147c2db2b235678b10da8ec8bf34191b3e
parent3806d875d3dbff96041638299a1974579e9a5b4a
build: fix pkg-config output parsing in configure

Fix parsing of `pkg-config --cflags-only-I`.  The configure_library()
step sometimes appended a list in a list instead of list of strings to
include_dirs.

This commit removes the default handling for includes and libpath
options.  They don't have defaults at the moment and I don't see that
changing anytime soon.  Fixing the code is more work and because it's
dead code anyway, I opted to remove it instead.

Fixes: https://github.com/nodejs/io.js/issues/1985
PR-URL: https://github.com/nodejs/io.js/pull/1986
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
configure