+echo $ac_n "checking for WCOREDUMP""... $ac_c" 1>&6
+echo "configure:1150: checking for WCOREDUMP" >&5
+if eval "test \"`echo '$''{'userv_cv_hdr_wcoredump'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ cat > conftest.$ac_ext <<EOF
+#line 1155 "configure"
+#include "confdefs.h"
+
+#include <sys/types.h>
+#include <sys/wait.h>
+#ifdef WCOREDUMP
+ yes
+#endif
+
+EOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ egrep "yes" >/dev/null 2>&1; then
+ rm -rf conftest*
+ userv_cv_hdr_wcoredump=yes
+else
+ rm -rf conftest*
+ userv_cv_hdr_wcoredump=no
+fi
+rm -f conftest*
+
+fi
+
+echo "$ac_t""$userv_cv_hdr_wcoredump" 1>&6
+if test $userv_cv_hdr_wcoredump = yes
+then
+ cat >> confdefs.h <<\EOF
+#define HAVE_WCOREDUMP 1
+EOF
+
+fi
+