1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-26 09:07:38 +01:00

Fix tests for PTRACE_* and PT_*.

Submitted by:	Arun Sharma
This commit is contained in:
Konstantin Belousov 2010-04-05 23:19:03 +03:00
parent 979af4502f
commit ad6b2f94b9

View file

@ -61,21 +61,17 @@ AC_CHECK_TYPES([sighandler_t], [], [],
#endif #endif
]) ])
AC_DEFUN([AC_CHECK_PTRACE_DECL], AC_CHECK_DECLS([PTRACE_POKEUSER, PTRACE_POKEDATA, PTRACE_CONT,
[for pxxx in $1; do PTRACE_TRACEME, PTRACE_CONT, PTRACE_SIGNLESTEP,
AC_CHECK_DECLS($pxxx, [], [], PTRACE_SYSCALL, PT_IO, PT_GETREGS,
PT_GETFPREGS, PT_CONTINUE, PT_TRACE_ME,
PT_STEP, PT_SYSCALL], [], [],
[$ac_includes_default [$ac_includes_default
#if HAVE_SYS_TYPES_H #if HAVE_SYS_TYPES_H
#include <sys/types.h> #include <sys/types.h>
#endif #endif
#include <sys/ptrace.h> #include <sys/ptrace.h>
]) ])
done]
)
AC_CHECK_PTRACE_DECL([PTRACE_POKEUSER PTRACE_POKEDATA PTRACE_CONT \
PTRACE_TRACEME PTRACE_CONT PTRACE_SIGNLESTEP PTRACE_SYSCALL PT_IO PT_GETREGS \
PT_GETFPREGS PT_CONTINUE PT_TRACE_ME PT_STEP PT_SYSCALL])
dnl Checks for library functions. dnl Checks for library functions.
AC_FUNC_MEMCMP AC_FUNC_MEMCMP