distrib/configure: Carry FFI include/lib paths from source distribution
authorBen Gamari <bgamari.foss@gmail.com>
Sun, 23 Jul 2017 14:43:52 +0000 (10:43 -0400)
committerBen Gamari <ben@smart-cactus.org>
Sun, 23 Jul 2017 14:43:53 +0000 (10:43 -0400)
commit98ab12ad0c13b6723cc667d6a00fe592f1833bf4
treee9031a0ff38acd8786505243b54c192c748d09d5
parentee1047e2283a3f628fd0d91df0e9eb955bb0994d
distrib/configure: Carry FFI include/lib paths from source distribution

`FFILibDir` and `FFIIncludeDir` both show up in the `rts` library's
package registration file.  We therefore must define them or else we'll
end up with spurious `@FFILibDir@` strings in the package registration.

In principle I think we could also take these as arguments to the
bindist configure but this seems simpler and I don't want to verify this
at the moment.

Test Plan: Build bindist while passing `--with-ffi-libraries=...` to
source distribution configure then try to install and use bindist.

Reviewers: austin, hvr

Subscribers: rwbarton, thomie, erikd

Differential Revision: https://phabricator.haskell.org/D3774
distrib/configure.ac.in