[XRay] Detect terminfo library
authorDean Michael Berris <dberris@google.com>
Wed, 19 Sep 2018 01:35:52 +0000 (01:35 +0000)
committerDean Michael Berris <dberris@google.com>
Wed, 19 Sep 2018 01:35:52 +0000 (01:35 +0000)
commitff93d3a8aacc97cabc5e783e03ade62db2367940
treedc56a3be148a0d51b48ad7b102c1920bbf6ffa46
parentad7e9e9f60475a37272ab66d2a86e3e77a644759
[XRay] Detect terminfo library

Instead of assuming `-ltinfo` works, check whether there's terminfo
support on the host where LLVMSupport is compiled.

Follow-up to D52220.

llvm-svn: 342523
compiler-rt/cmake/config-ix.cmake
compiler-rt/lib/xray/tests/CMakeLists.txt