$NetBSD: patch-al,v 1.1 2005/10/20 17:48:49 wiz Exp $ --- gdb/configure.in.orig 2004-07-17 05:29:08.000000000 -0600 +++ gdb/configure.in @@ -504,6 +504,16 @@ if test $gdb_cv_struct_thread_td_pcb = y [Define to 1 if your system has td_pcb in struct thread.]) fi +# See if defines `struct lwp`. +AC_CACHE_CHECK([for struct lwp], gdb_cv_struct_lwp, +[AC_TRY_COMPILE([#include +#include ], [struct lwp l;], +gdb_cv_struct_lwp=yes, gdb_cv_struct_lwp=no)]) +if test $gdb_cv_struct_lwp = yes; then + AC_DEFINE(HAVE_STRUCT_LWP, 1, + [Define to 1 if your system has struct lwp.]) +fi + # See if degines `struct reg'. AC_CACHE_CHECK([for struct reg in machine/reg.h], gdb_cv_struct_reg, [AC_TRY_COMPILE([#include