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:
parent
979af4502f
commit
ad6b2f94b9
1 changed files with 5 additions and 9 deletions
14
configure.in
14
configure.in
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue