From 3d0d95004c65cd3a29c94fec99e13ab7fdc19c7c Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Tue, 2 Aug 2005 20:47:47 +0000 Subject: [PATCH] Add check for walkcontext() to enable stack trace dumper on Solaris --- configure.ac | 2 +- include/xorg-config.h.in | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index d29ab2220..072abb7c3 100644 --- a/configure.ac +++ b/configure.ac @@ -68,7 +68,7 @@ AC_TYPE_PID_T # Checks for library functions. AC_FUNC_VPRINTF -AC_CHECK_FUNCS([geteuid getuid link memmove memset mkstemp strchr strrchr strtol getopt getopt_long]) +AC_CHECK_FUNCS([geteuid getuid link memmove memset mkstemp strchr strrchr strtol getopt getopt_long walkcontext]) AC_FUNC_ALLOCA # Find the math libary diff --git a/include/xorg-config.h.in b/include/xorg-config.h.in index ebc3d12c8..cc880d792 100644 --- a/include/xorg-config.h.in +++ b/include/xorg-config.h.in @@ -66,4 +66,8 @@ /* Solaris 8 or later? */ #undef __SOL8__ +/* Define to 1 if you have the `walkcontext' function (used on Solaris for + xorg_backtrace in hw/xfree86/common/xf86Events.c */ +#undef HAVE_WALKCONTEXT + #endif /* _XORG_CONFIG_H_ */