Check for execinfo.h by configure
authorMike Frysinger <vapier@gentoo.org>
Sat, 29 Aug 2015 23:14:24 +0000 (19:14 -0400)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 21 Jul 2016 18:53:15 +0000 (21:53 +0300)
commit978c9b90d55d754a235ad45dc946eed3047687ac
tree12b5bd12c7ab8918a01f75520aaa9518ce2d05d8
parent0ce1a71ec28c4d07dba09c5f32e4937708492cf2
Check for execinfo.h by configure

The current header depends on glibc/uClibc version checks to determine
whether execinfo.h exists which breaks other C libs.  Instead, add an
explicit configure check for it.

* configure.ac: Check execinfo.h presence, define
GC_MISSING_EXECINFO_H otherwise.
* include/gc_config_macros.h [__GLIBC__] (GC_HAVE_BUILTIN_BACKTRACE):
Check absence of GC_MISSING_EXECINFO_H instead of __UCLIBC__.
configure.ac
include/gc_config_macros.h