[btls] Pass CC and CXX to the BTLS CMake and disable BTLS on older GCC (#4200)
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Wed, 4 Jan 2017 18:49:41 +0000 (19:49 +0100)
committerGitHub <noreply@github.com>
Wed, 4 Jan 2017 18:49:41 +0000 (19:49 +0100)
commit488b550ac0275c944e0a2c23be93173382084e5f
tree35f5495ed7669a2fe682acf00bf96c9ae6e16ab3
parent5dd56dbe70ca0b13554052f78d118addd71bdc5f
[btls] Pass CC and CXX to the BTLS CMake and disable BTLS on older GCC (#4200)

CMake doesn't pick up the compiler from the PATH by default,
it only looks in default locations so without this we might
end up using a different compiler for BTLS than for the main
Mono build which we don't want.

BTLS also requires a fairly new GCC which includes C++11
features, added a quick check for stdalign.h which BTLS
requires and disable it if the header isn't found.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=46712
configure.ac
mono/btls/Makefile.am