From 82b2c20d01ea1a370f8e48f6de2c40b5d1cf82b7 Mon Sep 17 00:00:00 2001 From: Jason Molenda Date: Tue, 2 Nov 1999 04:44:12 +0000 Subject: import gdb-1999-11-01 snapshot --- gdb/configure.in | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'gdb/configure.in') diff --git a/gdb/configure.in b/gdb/configure.in index 55ded716bf5..8435420a91a 100644 --- a/gdb/configure.in +++ b/gdb/configure.in @@ -92,6 +92,24 @@ AC_C_CONST AC_CHECK_FUNCS(setpgid sbrk sigaction isascii bzero bcopy btowc poll sigprocmask) AC_FUNC_ALLOCA +dnl See if ptrace.h provides the PTRACE_GETXFPREGS request. +dnl PTRACE_GETXFPREGS is a Cygnus invention, since we wrote our own +dnl Linux kernel patch for SSE support. That patch may or may not +dnl actually make it into the official distribution. If you find that +dnl years have gone by since this configure test was added, and Linux +dnl isn't using PTRACE_GETXFPREGS, that means that our patch didn't +dnl make it, and you can delete this code. +AC_MSG_CHECKING(for PTRACE_GETXFPREGS) +AC_CACHE_VAL(gdb_cv_have_ptrace_getxfpregs, +[AC_TRY_COMPILE([#include ], + [PTRACE_GETXFPREGS;], + [gdb_cv_have_ptrace_getxfpregs=yes], + [gdb_cv_have_ptrace_getxfpregs=no])]) +AC_MSG_RESULT($gdb_cv_have_ptrace_getxfpregs) +if test $gdb_cv_have_ptrace_getxfpregs = yes; then + AC_DEFINE(HAVE_PTRACE_GETXFPREGS) +fi + AC_CHECK_LIB(socket, socketpair) AC_CHECK_FUNCS(socketpair) -- cgit v1.2.1