Fix CMake Script for libunwind Feature Check
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Mon, 29 Feb 2016 08:11:10 +0000 (17:11 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Thu, 3 Mar 2016 15:28:11 +0000 (00:28 +0900)
commit3c0d5e85c59107a4710317f445bec0528cbe232b
tree936edbba0d1770bcde7cc58361ad25275fac48a2
parent5c0095268e19e5a5fcf035c4c591ed03e552f072
Fix CMake Script for libunwind Feature Check

Check the availability correctly for Linux.

The cmake configuration script has been trying to find out
the availability of functions directly with check_function_exists,
which depends on the symbol names in .so files.
However, the libunwind implementation uses macros to
redefine functions names for each architecture making it
impossible to directly look up symbol tables of .so files.

In order to allow the script to use the information in
header files, check_function_exists should be replaced
with check_cxx_source_compiles.

Besides config.h.in had missing declarations for the
CMAKE variables

Fix #3372

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
src/pal/src/config.h.in
src/pal/src/configure.cmake