luci-base: Add option to check linked libraries
luci-base: Add option to check linked libraries

Some packages have different variants that have different
capabilities depending on which libraries against which
they are linked.  Add a function to check which library a
binary links against in order to determine available
functionality.

Signed-off-by: Daniel Dickinson <9b934cf284d9b196f48b43876d3e01912797242c@daniel.thecshore.com>

kuoruan/luci,bittorf/luci,artynet/luci,openwrt-es/openwrt-luci,cshore-firmware/openwrt-luci,lbthomsen/openwrt-luci,aa65535/luci,chris5560/openwrt-luci,hnyman/luci,aa65535/luci,daofeng2015/luci,jlopenwrtluci/luci,teslamint/luci,ollie27/openwrt_luci,rogerpueyo/luci,lbthomsen/openwrt-luci,shangjiyu/luci-with-extra,cappiewu/luci,bright-things/ionic-luci,nmav/luci,openwrt/luci,Wedmer/luci,mumuqz/luci,daofeng2015/luci,daofeng2015/luci,ollie27/openwrt_luci,rogerpueyo/luci,cshore/luci,rogerpueyo/luci,tobiaswaldvogel/luci,lbthomsen/openwrt-luci,cappiewu/luci,LuttyYang/luci,nmav/luci,Wedmer/luci,wongsyrone/luci-1,bright-things/ionic-luci,cshore-firmware/openwrt-luci,rogerpueyo/luci,kuoruan/luci,981213/luci-1,taiha/luci,remakeelectric/luci,hnyman/luci,Wedmer/luci,openwrt-es/openwrt-luci,jlopenwrtluci/luci,taiha/luci,kuoruan/luci,taiha/luci,kuoruan/lede-luci,Wedmer/luci,hnyman/luci,cappiewu/luci,kuoruan/luci,Noltari/luci,tobiaswaldvogel/luci,openwrt/luci,daofeng2015/luci,kuoruan/lede-luci,kuoruan/luci,Noltari/luci,Wedmer/luci,shangjiyu/luci-with-extra,nmav/luci,981213/luci-1,daofeng2015/luci,teslamint/luci,hnyman/luci,taiha/luci,lbthomsen/openwrt-luci,mumuqz/luci,cshore-firmware/openwrt-luci,mumuqz/luci,openwrt/luci,wongsyrone/luci-1,jlopenwrtluci/luci,bittorf/luci,hnyman/luci,bright-things/ionic-luci,bittorf/luci,wongsyrone/luci-1,remakeelectric/luci,LuttyYang/luci,kuoruan/lede-luci,remakeelectric/luci,oneru/luci,cappiewu/luci,openwrt/luci,jlopenwrtluci/luci,kuoruan/luci,teslamint/luci,nmav/luci,tobiaswaldvogel/luci,bittorf/luci,teslamint/luci,cshore-firmware/openwrt-luci,teslamint/luci,jlopenwrtluci/luci,kuoruan/luci,bittorf/luci,tobiaswaldvogel/luci,mumuqz/luci,shangjiyu/luci-with-extra,lbthomsen/openwrt-luci,cappiewu/luci,tobiaswaldvogel/luci,chris5560/openwrt-luci,ollie27/openwrt_luci,LuttyYang/luci,mumuqz/luci,ollie27/openwrt_luci,hnyman/luci,Wedmer/luci,kuoruan/luci,aa65535/luci,lbthomsen/openwrt-luci,kuoruan/lede-luci,taiha/luci,openwrt/luci,bright-things/ionic-luci,LuttyYang/luci,ollie27/openwrt_luci,artynet/luci,openwrt-es/openwrt-luci,hnyman/luci,kuoruan/lede-luci,Noltari/luci,Noltari/luci,jlopenwrtluci/luci,chris5560/openwrt-luci,ollie27/openwrt_luci,bright-things/ionic-luci,981213/luci-1,artynet/luci,981213/luci-1,jlopenwrtluci/luci,artynet/luci,mumuqz/luci,Wedmer/luci,rogerpueyo/luci,nmav/luci,oneru/luci,cshore/luci,jlopenwrtluci/luci,wongsyrone/luci-1,kuoruan/lede-luci,mumuqz/luci,bittorf/luci,shangjiyu/luci-with-extra,ollie27/openwrt_luci,artynet/luci,Wedmer/luci,taiha/luci,bright-things/ionic-luci,openwrt/luci,teslamint/luci,artynet/luci,Noltari/luci,kuoruan/lede-luci,nmav/luci,ollie27/openwrt_luci,bright-things/ionic-luci,cshore-firmware/openwrt-luci,wongsyrone/luci-1,chris5560/openwrt-luci,Noltari/luci,teslamint/luci,shangjiyu/luci-with-extra,981213/luci-1,rogerpueyo/luci,cshore/luci,remakeelectric/luci,tobiaswaldvogel/luci,remakeelectric/luci,hnyman/luci,remakeelectric/luci,lbthomsen/openwrt-luci,cshore-firmware/openwrt-luci,nmav/luci,shangjiyu/luci-with-extra,mumuqz/luci,oneru/luci,daofeng2015/luci,cappiewu/luci,chris5560/openwrt-luci,cshore/luci,artynet/luci,remakeelectric/luci,bittorf/luci,rogerpueyo/luci,openwrt/luci,lbthomsen/openwrt-luci,oneru/luci,LuttyYang/luci,nmav/luci,cshore/luci,bittorf/luci,aa65535/luci,daofeng2015/luci,aa65535/luci,kuoruan/lede-luci,artynet/luci,openwrt-es/openwrt-luci,oneru/luci,wongsyrone/luci-1,taiha/luci,oneru/luci,chris5560/openwrt-luci,cshore/luci,oneru/luci,tobiaswaldvogel/luci,openwrt/luci,cshore/luci,981213/luci-1,aa65535/luci,981213/luci-1,aa65535/luci,shangjiyu/luci-with-extra,tobiaswaldvogel/luci,remakeelectric/luci,Noltari/luci,openwrt-es/openwrt-luci,Noltari/luci,cshore-firmware/openwrt-luci,chris5560/openwrt-luci,LuttyYang/luci,rogerpueyo/luci,cappiewu/luci,teslamint/luci,LuttyYang/luci,wongsyrone/luci-1,openwrt-es/openwrt-luci,daofeng2015/luci,openwrt-es/openwrt-luci,chris5560/openwrt-luci,taiha/luci,cshore/luci,oneru/luci,LuttyYang/luci,wongsyrone/luci-1,bright-things/ionic-luci,Noltari/luci,shangjiyu/luci-with-extra,nmav/luci,aa65535/luci,artynet/luci,cshore-firmware/openwrt-luci,cappiewu/luci,openwrt-es/openwrt-luci