build: Don't depend on libffi unless we're building libraries
authorDerek Foreman <derekf@osg.samsung.com>
Wed, 17 Jun 2015 20:13:52 +0000 (15:13 -0500)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Thu, 18 Jun 2015 11:06:32 +0000 (14:06 +0300)
commitbc3b66d5c194b9238126f7bc954142a07fe44f0e
tree6f77f22d3e7ad061b302df37ac4da63b2f617b52
parent0e979d82d249c4c0815ea82816fcf186a6862e2a
build: Don't depend on libffi unless we're building libraries

When building just the scanner or docs it's not required.

This can reduce requirements for a host cross compiling wayland,
since only the scanner needs to be built natively.

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
configure.ac