mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-01-22 08:10:30 +01:00
AC_CHECK_HEADERS: Mention signal.h.
(CPPFLAGS): Move before AC_CHECK_TYPES(), so those later checks run with -D_GNU_SOURCE. (AC_CHECK_TYPES): Fix the check for sighandler_t. (Logical change 1.104)
This commit is contained in:
parent
87e2dfb9af
commit
197801e353
1 changed files with 14 additions and 9 deletions
23
configure.in
23
configure.in
|
@ -20,7 +20,7 @@ AC_CHECK_LIB(uca, __uc_get_grs)
|
|||
dnl Checks for header files.
|
||||
AC_HEADER_STDC
|
||||
AC_CHECK_HEADERS(asm/ptrace_offsets.h endian.h execinfo.h ia64intrin.h \
|
||||
sys/uc_access.h unistd.h)
|
||||
sys/uc_access.h unistd.h signal.h)
|
||||
|
||||
dnl Checks for typedefs, structures, and compiler characteristics.
|
||||
AC_C_CONST
|
||||
|
@ -28,7 +28,19 @@ AC_C_INLINE
|
|||
AC_TYPE_SIGNAL
|
||||
AC_TYPE_SIZE_T
|
||||
|
||||
AC_CHECK_TYPES([sighandler_t])
|
||||
CPPFLAGS="${CPPFLAGS} -D_GNU_SOURCE"
|
||||
if test x$enable_debug = xyes; then
|
||||
CPPFLAGS="${CPPFLAGS} -DDEBUG"
|
||||
else
|
||||
CPPFLAGS="${CPPFLAGS} -DNDEBUG"
|
||||
fi
|
||||
|
||||
AC_CHECK_TYPES([sighandler_t], [], [],
|
||||
[$ac_includes_default
|
||||
#if HAVE_SIGNAL_H
|
||||
# include <signal.h>
|
||||
#endif
|
||||
])
|
||||
|
||||
dnl Checks for library functions.
|
||||
AC_FUNC_MEMCMP
|
||||
|
@ -65,13 +77,6 @@ AC_ARG_ENABLE(debug,
|
|||
|
||||
LIBUNWIND___THREAD
|
||||
|
||||
CPPFLAGS="${CPPFLAGS} -D_GNU_SOURCE"
|
||||
if test x$enable_debug = xyes; then
|
||||
CPPFLAGS="${CPPFLAGS} -DDEBUG"
|
||||
else
|
||||
CPPFLAGS="${CPPFLAGS} -DNDEBUG"
|
||||
fi
|
||||
|
||||
if test x$GCC = xyes; then
|
||||
CFLAGS="${CFLAGS} -Wall -Wsign-compare"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue