? NEWS
? mx.h
? mxget.c
? time.c
? fake_netstat.in
? checkps-demo
? fake_ps_2.copy
? netstat_stub.c
? cfg_smtp.h.dist
? check-ps-1.3.tar.gz
? check-ps-1.3.tar.gz.sig
? check-ps-1.3.tar.gz.sig.pgp5
? fake_netstat
? files.md5
? check-ps-1.3.2.tar.gz
? check-ps-1.3.2.tar.gz.sig
? check-ps-1.3.2.tar.gz.sig.pgp5
? libdetail/detail.h
? libdetail/safeexec_p.h
? libdetail/socklist.h
? libdetail/Makefile
? linux/netstat.c
? linux/sockl_netstat.c
? solaris/procfmt
Index: Makefile.in
===================================================================
RCS file: /cvsroot/checkps/checkps/Makefile.in,v
retrieving revision 1.12
diff -u -r1.12 Makefile.in
--- Makefile.in	2000/10/18 18:21:30	1.12
+++ Makefile.in	2001/04/08 21:58:52
@@ -1,7 +1,7 @@
 # $Id: Makefile.in,v 1.12 2000/10/18 18:21:30 dps Exp $
 # @configure_input@
 
-VERSION="1.3.1"
+VERSION="1.3.2"
 
 TARGETS=check_ps check_ps_test
 CONFTARGETS=Makefile cfg_prog.h cfg_check.h config.h fake_ps fake_ps_2 stamp-h
Index: config.h.in
===================================================================
RCS file: /cvsroot/checkps/checkps/config.h.in,v
retrieving revision 1.7
diff -u -r1.7 config.h.in
--- config.h.in	2000/10/18 18:04:24	1.7
+++ config.h.in	2001/04/08 21:59:05
@@ -1,5 +1,5 @@
 /* config.h.in.  Generated automatically from configure.in by autoheader.  */
-/* $Id: config.h.in,v 1.7 2000/10/18 18:04:24 dps Exp $ */
+/* $Id: config.h.top,v 1.1.1.1 2000/05/04 22:56:13 dps Exp $ */
 #ifndef __CHECK_PS_CONFIG_H__
 #define __CHECK_PS_CONFIG_H__ 1
 
@@ -170,6 +170,9 @@
 /* Define if you have the setjmp function.  */
 #undef HAVE_SETJMP
 
+/* Define if you have the setpgid function.  */
+#undef HAVE_SETPGID
+
 /* Define if you have the setregid function.  */
 #undef HAVE_SETREGID
 
@@ -310,7 +313,7 @@
 
 /* Define if you have the <unistd.h> header file.  */
 #undef HAVE_UNISTD_H
-/* $Id: config.h.in,v 1.7 2000/10/18 18:04:24 dps Exp $ */
+/* $Id: config.h.bot,v 1.1.1.1 2000/05/04 22:56:15 dps Exp $ */
 /* Define this if you have inet_aton */
 #undef HAVE_INET_ATON
 
Index: configure
===================================================================
RCS file: /cvsroot/checkps/checkps/configure,v
retrieving revision 1.7
diff -u -r1.7 configure
--- configure	2000/10/10 22:10:43	1.7
+++ configure	2001/04/08 21:59:16
@@ -577,7 +577,7 @@
 # Check whether --with-longopts or --without-longopts was given.
 if test "${with_longopts+set}" = set; then
   withval="$with_longopts"
-  longopts=${enablval}
+  longopts=${enableval}
 else
   longopts="no"
 fi
@@ -1394,13 +1394,11 @@
 fi
 
 if test "${cps_nstat}" != "not found"; then
-   netstat_check_obj=nstats.o
+   netstat_check_obj=netstat.o
 fi
 
-
-
 echo $ac_n "checking "full path to src directory..."""... $ac_c" 1>&6
-echo "configure:1404: checking "full path to src directory..."" >&5;
+echo "configure:1402: checking "full path to src directory..."" >&5;
 cps_cv_srcdir=`pwd`
 echo "$ac_t""$cps_cv_srcdir" 1>&6
 
@@ -1414,7 +1412,7 @@
 # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1418: checking for $ac_word" >&5
+echo "configure:1416: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_cps_grep'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -1447,7 +1445,7 @@
 # Extract the first word of "sleep", so it can be a program name with args.
 set dummy sleep; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1451: checking for $ac_word" >&5
+echo "configure:1449: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_cps_sleep'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -1477,7 +1475,7 @@
 # Extract the first word of "chmod", so it can be a program name with args.
 set dummy chmod; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1481: checking for $ac_word" >&5
+echo "configure:1479: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_cps_chmod'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -1521,7 +1519,7 @@
 # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1525: checking for $ac_word" >&5
+echo "configure:1523: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_MD5SUM'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -1555,7 +1553,7 @@
    
 if test "${MD5SUM}" != "not found"; then
 echo $ac_n "checking md5 sums of files""... $ac_c" 1>&6
-echo "configure:1559: checking md5 sums of files" >&5
+echo "configure:1557: checking md5 sums of files" >&5
 files=`${MD5SUM} -c files.md5 2>/dev/null |
       $AWK 'BEGIN { f=""; FS=":"; n=0; }
       /:\ FAILED$/ { if (n==0) { f=$1; } else { f=f ", " $1; } n=1; }
@@ -1573,7 +1571,7 @@
 
 var=cps_cv_${spusernam}_uid
 echo $ac_n "checking uid of ${spusernam}""... $ac_c" 1>&6
-echo "configure:1577: checking uid of ${spusernam}" >&5
+echo "configure:1575: checking uid of ${spusernam}" >&5
 if eval "test \"`echo '$''{'$var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -1604,7 +1602,7 @@
 
 var=cps_cv_${spgroupnam}_gid
 echo $ac_n "checking gid of ${spgroupnam}""... $ac_c" 1>&6
-echo "configure:1608: checking gid of ${spgroupnam}" >&5
+echo "configure:1606: checking gid of ${spgroupnam}" >&5
 if eval "test \"`echo '$''{'$var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -1637,7 +1635,7 @@
 
 var=cps_cv_${psusernam}_uid
 echo $ac_n "checking uid of ${psusernam}""... $ac_c" 1>&6
-echo "configure:1641: checking uid of ${psusernam}" >&5
+echo "configure:1639: checking uid of ${psusernam}" >&5
 if eval "test \"`echo '$''{'$var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -1668,7 +1666,7 @@
 
 var=cps_cv_${psgroupnam}_gid
 echo $ac_n "checking gid of ${psgroupnam}""... $ac_c" 1>&6
-echo "configure:1672: checking gid of ${psgroupnam}" >&5
+echo "configure:1670: checking gid of ${psgroupnam}" >&5
 if eval "test \"`echo '$''{'$var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -1712,12 +1710,12 @@
 do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
-echo "configure:1716: checking for $ac_hdr that defines DIR" >&5
+echo "configure:1714: checking for $ac_hdr that defines DIR" >&5
 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 1721 "configure"
+#line 1719 "configure"
 #include "confdefs.h"
 #include <sys/types.h>
 #include <$ac_hdr>
@@ -1725,7 +1723,7 @@
 DIR *dirp = 0;
 ; return 0; }
 EOF
-if { (eval echo configure:1729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   eval "ac_cv_header_dirent_$ac_safe=yes"
 else
@@ -1750,7 +1748,7 @@
 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
 if test $ac_header_dirent = dirent.h; then
 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
-echo "configure:1754: checking for opendir in -ldir" >&5
+echo "configure:1752: checking for opendir in -ldir" >&5
 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -1758,7 +1756,7 @@
   ac_save_LIBS="$LIBS"
 LIBS="-ldir  $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 1762 "configure"
+#line 1760 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
@@ -1769,7 +1767,7 @@
 opendir()
 ; return 0; }
 EOF
-if { (eval echo configure:1773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -1791,7 +1789,7 @@
 
 else
 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
-echo "configure:1795: checking for opendir in -lx" >&5
+echo "configure:1793: checking for opendir in -lx" >&5
 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -1799,7 +1797,7 @@
   ac_save_LIBS="$LIBS"
 LIBS="-lx  $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 1803 "configure"
+#line 1801 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
@@ -1810,7 +1808,7 @@
 opendir()
 ; return 0; }
 EOF
-if { (eval echo configure:1814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -1833,7 +1831,7 @@
 fi
 
 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
-echo "configure:1837: checking how to run the C preprocessor" >&5
+echo "configure:1835: checking how to run the C preprocessor" >&5
 # On Suns, sometimes $CPP names a directory.
 if test -n "$CPP" && test -d "$CPP"; then
   CPP=
@@ -1848,13 +1846,13 @@
   # On the NeXT, cc -E runs the code through the compiler's parser,
   # not just through cpp.
   cat > conftest.$ac_ext <<EOF
-#line 1852 "configure"
+#line 1850 "configure"
 #include "confdefs.h"
 #include <assert.h>
 Syntax Error
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:1858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:1856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   :
@@ -1865,13 +1863,13 @@
   rm -rf conftest*
   CPP="${CC-cc} -E -traditional-cpp"
   cat > conftest.$ac_ext <<EOF
-#line 1869 "configure"
+#line 1867 "configure"
 #include "confdefs.h"
 #include <assert.h>
 Syntax Error
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:1875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:1873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   :
@@ -1882,13 +1880,13 @@
   rm -rf conftest*
   CPP="${CC-cc} -nologo -E"
   cat > conftest.$ac_ext <<EOF
-#line 1886 "configure"
+#line 1884 "configure"
 #include "confdefs.h"
 #include <assert.h>
 Syntax Error
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:1892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:1890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   :
@@ -1913,12 +1911,12 @@
 echo "$ac_t""$CPP" 1>&6
 
 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
-echo "configure:1917: checking for ANSI C header files" >&5
+echo "configure:1915: checking for ANSI C header files" >&5
 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 1922 "configure"
+#line 1920 "configure"
 #include "confdefs.h"
 #include <stdlib.h>
 #include <stdarg.h>
@@ -1926,7 +1924,7 @@
 #include <float.h>
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:1930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:1928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   rm -rf conftest*
@@ -1943,7 +1941,7 @@
 if test $ac_cv_header_stdc = yes; then
   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 cat > conftest.$ac_ext <<EOF
-#line 1947 "configure"
+#line 1945 "configure"
 #include "confdefs.h"
 #include <string.h>
 EOF
@@ -1961,7 +1959,7 @@
 if test $ac_cv_header_stdc = yes; then
   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 cat > conftest.$ac_ext <<EOF
-#line 1965 "configure"
+#line 1963 "configure"
 #include "confdefs.h"
 #include <stdlib.h>
 EOF
@@ -1982,7 +1980,7 @@
   :
 else
   cat > conftest.$ac_ext <<EOF
-#line 1986 "configure"
+#line 1984 "configure"
 #include "confdefs.h"
 #include <ctype.h>
 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
@@ -1993,7 +1991,7 @@
 exit (0); }
 
 EOF
-if { (eval echo configure:1997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:1995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   :
 else
@@ -2017,12 +2015,12 @@
 fi
 
 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
-echo "configure:2021: checking for sys/wait.h that is POSIX.1 compatible" >&5
+echo "configure:2019: checking for sys/wait.h that is POSIX.1 compatible" >&5
 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 2026 "configure"
+#line 2024 "configure"
 #include "confdefs.h"
 #include <sys/types.h>
 #include <sys/wait.h>
@@ -2038,7 +2036,7 @@
 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
 ; return 0; }
 EOF
-if { (eval echo configure:2042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:2040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_header_sys_wait_h=yes
 else
@@ -2062,17 +2060,17 @@
 do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:2066: checking for $ac_hdr" >&5
+echo "configure:2064: checking for $ac_hdr" >&5
 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 2071 "configure"
+#line 2069 "configure"
 #include "confdefs.h"
 #include <$ac_hdr>
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:2076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:2074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   rm -rf conftest*
@@ -2102,17 +2100,17 @@
 do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:2106: checking for $ac_hdr" >&5
+echo "configure:2104: checking for $ac_hdr" >&5
 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 2111 "configure"
+#line 2109 "configure"
 #include "confdefs.h"
 #include <$ac_hdr>
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:2116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:2114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   rm -rf conftest*
@@ -2142,17 +2140,17 @@
 do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:2146: checking for $ac_hdr" >&5
+echo "configure:2144: checking for $ac_hdr" >&5
 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 2151 "configure"
+#line 2149 "configure"
 #include "confdefs.h"
 #include <$ac_hdr>
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:2156: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:2154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   rm -rf conftest*
@@ -2182,17 +2180,17 @@
 do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:2186: checking for $ac_hdr" >&5
+echo "configure:2184: checking for $ac_hdr" >&5
 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 2191 "configure"
+#line 2189 "configure"
 #include "confdefs.h"
 #include <$ac_hdr>
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:2196: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:2194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   rm -rf conftest*
@@ -2222,17 +2220,17 @@
 do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:2226: checking for $ac_hdr" >&5
+echo "configure:2224: checking for $ac_hdr" >&5
 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 2231 "configure"
+#line 2229 "configure"
 #include "confdefs.h"
 #include <$ac_hdr>
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:2236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:2234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   rm -rf conftest*
@@ -2262,17 +2260,17 @@
 do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:2266: checking for $ac_hdr" >&5
+echo "configure:2264: checking for $ac_hdr" >&5
 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 2271 "configure"
+#line 2269 "configure"
 #include "confdefs.h"
 #include <$ac_hdr>
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:2276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:2274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   rm -rf conftest*
@@ -2301,12 +2299,12 @@
 
 
 echo $ac_n "checking for working const""... $ac_c" 1>&6
-echo "configure:2305: checking for working const" >&5
+echo "configure:2303: checking for working const" >&5
 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 2310 "configure"
+#line 2308 "configure"
 #include "confdefs.h"
 
 int main() {
@@ -2355,7 +2353,7 @@
 
 ; return 0; }
 EOF
-if { (eval echo configure:2359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:2357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_c_const=yes
 else
@@ -2376,12 +2374,12 @@
 fi
 
 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
-echo "configure:2380: checking for uid_t in sys/types.h" >&5
+echo "configure:2378: checking for uid_t in sys/types.h" >&5
 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 2385 "configure"
+#line 2383 "configure"
 #include "confdefs.h"
 #include <sys/types.h>
 EOF
@@ -2410,12 +2408,12 @@
 fi
 
 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
-echo "configure:2414: checking for pid_t" >&5
+echo "configure:2412: checking for pid_t" >&5
 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 2419 "configure"
+#line 2417 "configure"
 #include "confdefs.h"
 #include <sys/types.h>
 #if STDC_HEADERS
@@ -2443,12 +2441,12 @@
 fi
 
 echo $ac_n "checking for size_t""... $ac_c" 1>&6
-echo "configure:2447: checking for size_t" >&5
+echo "configure:2445: checking for size_t" >&5
 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 2452 "configure"
+#line 2450 "configure"
 #include "confdefs.h"
 #include <sys/types.h>
 #if STDC_HEADERS
@@ -2476,12 +2474,12 @@
 fi
 
 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
-echo "configure:2480: checking whether struct tm is in sys/time.h or time.h" >&5
+echo "configure:2478: checking whether struct tm is in sys/time.h or time.h" >&5
 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 2485 "configure"
+#line 2483 "configure"
 #include "confdefs.h"
 #include <sys/types.h>
 #include <time.h>
@@ -2489,7 +2487,7 @@
 struct tm *tp; tp->tm_sec;
 ; return 0; }
 EOF
-if { (eval echo configure:2493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:2491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_struct_tm=time.h
 else
@@ -2510,12 +2508,12 @@
 fi
 
 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
-echo "configure:2514: checking whether stat file-mode macros are broken" >&5
+echo "configure:2512: checking whether stat file-mode macros are broken" >&5
 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 2519 "configure"
+#line 2517 "configure"
 #include "confdefs.h"
 #include <sys/types.h>
 #include <sys/stat.h>
@@ -2570,12 +2568,12 @@
   got="no"
   tr_func=HAVE_`echo $func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
   echo $ac_n "checking for $func""... $ac_c" 1>&6
-echo "configure:2574: checking for $func" >&5
+echo "configure:2572: checking for $func" >&5
 if eval "test \"`echo '$''{'ac_cv_func_$func'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 2579 "configure"
+#line 2577 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char $func(); below.  */
@@ -2598,7 +2596,7 @@
 
 ; return 0; }
 EOF
-if { (eval echo configure:2602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:2600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_func_$func=yes"
 else
@@ -2623,7 +2621,7 @@
   for lib in socket xnet nsl resolv; do
     if test "$got" = "no"; then
       echo $ac_n "checking for $func in -l$lib""... $ac_c" 1>&6
-echo "configure:2627: checking for $func in -l$lib" >&5
+echo "configure:2625: checking for $func in -l$lib" >&5
 ac_lib_var=`echo $lib'_'$func | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -2631,7 +2629,7 @@
   ac_save_LIBS="$LIBS"
 LIBS="-l$lib  $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 2635 "configure"
+#line 2633 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
@@ -2642,7 +2640,7 @@
 $func()
 ; return 0; }
 EOF
-if { (eval echo configure:2646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:2644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -2670,12 +2668,12 @@
   done
 done
 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
-echo "configure:2674: checking return type of signal handlers" >&5
+echo "configure:2672: checking return type of signal handlers" >&5
 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 2679 "configure"
+#line 2677 "configure"
 #include "confdefs.h"
 #include <sys/types.h>
 #include <signal.h>
@@ -2692,7 +2690,7 @@
 int i;
 ; return 0; }
 EOF
-if { (eval echo configure:2696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:2694: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_type_signal=void
 else
@@ -2722,12 +2720,12 @@
 
 fi
 echo $ac_n "checking for strftime""... $ac_c" 1>&6
-echo "configure:2726: checking for strftime" >&5
+echo "configure:2724: checking for strftime" >&5
 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 2731 "configure"
+#line 2729 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char strftime(); below.  */
@@ -2750,7 +2748,7 @@
 
 ; return 0; }
 EOF
-if { (eval echo configure:2754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:2752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_func_strftime=yes"
 else
@@ -2772,7 +2770,7 @@
   echo "$ac_t""no" 1>&6
 # strftime is in -lintl on SCO UNIX.
 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
-echo "configure:2776: checking for strftime in -lintl" >&5
+echo "configure:2774: checking for strftime in -lintl" >&5
 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -2780,7 +2778,7 @@
   ac_save_LIBS="$LIBS"
 LIBS="-lintl  $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 2784 "configure"
+#line 2782 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
@@ -2791,7 +2789,7 @@
 strftime()
 ; return 0; }
 EOF
-if { (eval echo configure:2795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:2793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -2818,12 +2816,12 @@
 fi
 
 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
-echo "configure:2822: checking for vprintf" >&5
+echo "configure:2820: checking for vprintf" >&5
 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 2827 "configure"
+#line 2825 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char vprintf(); below.  */
@@ -2846,7 +2844,7 @@
 
 ; return 0; }
 EOF
-if { (eval echo configure:2850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:2848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_func_vprintf=yes"
 else
@@ -2870,12 +2868,12 @@
 
 if test "$ac_cv_func_vprintf" != yes; then
 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
-echo "configure:2874: checking for _doprnt" >&5
+echo "configure:2872: checking for _doprnt" >&5
 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 2879 "configure"
+#line 2877 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char _doprnt(); below.  */
@@ -2898,7 +2896,7 @@
 
 ; return 0; }
 EOF
-if { (eval echo configure:2902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:2900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_func__doprnt=yes"
 else
@@ -2925,12 +2923,12 @@
 for ac_func in strdup strerror setrlimit fchmod getopt_long
 do
 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:2929: checking for $ac_func" >&5
+echo "configure:2927: checking for $ac_func" >&5
 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 2934 "configure"
+#line 2932 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char $ac_func(); below.  */
@@ -2953,7 +2951,7 @@
 
 ; return 0; }
 EOF
-if { (eval echo configure:2957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:2955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_func_$ac_func=yes"
 else
@@ -2980,12 +2978,12 @@
 for ac_func in getopt nice lstat snprintf setresuid setreuid setuid
 do
 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:2984: checking for $ac_func" >&5
+echo "configure:2982: checking for $ac_func" >&5
 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 2989 "configure"
+#line 2987 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char $ac_func(); below.  */
@@ -3008,7 +3006,7 @@
 
 ; return 0; }
 EOF
-if { (eval echo configure:3012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:3010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_func_$ac_func=yes"
 else
@@ -3032,15 +3030,15 @@
 fi
 done
 
-for ac_func in setresgid setregid setgid setgroups
+for ac_func in setresgid setregid setgid setgroups setpgid
 do
 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:3039: checking for $ac_func" >&5
+echo "configure:3037: checking for $ac_func" >&5
 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 3044 "configure"
+#line 3042 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char $ac_func(); below.  */
@@ -3063,7 +3061,7 @@
 
 ; return 0; }
 EOF
-if { (eval echo configure:3067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:3065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_func_$ac_func=yes"
 else
@@ -3090,12 +3088,12 @@
 for ac_func in setjmp longjmp sigaction signal
 do
 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:3094: checking for $ac_func" >&5
+echo "configure:3092: checking for $ac_func" >&5
 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 3099 "configure"
+#line 3097 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char $ac_func(); below.  */
@@ -3118,7 +3116,7 @@
 
 ; return 0; }
 EOF
-if { (eval echo configure:3122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:3120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_func_$ac_func=yes"
 else
@@ -3143,12 +3141,12 @@
 done
 
 echo $ac_n "checking for statfs""... $ac_c" 1>&6
-echo "configure:3147: checking for statfs" >&5
+echo "configure:3145: checking for statfs" >&5
 if eval "test \"`echo '$''{'ac_cv_func_statfs'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 3152 "configure"
+#line 3150 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char statfs(); below.  */
@@ -3171,7 +3169,7 @@
 
 ; return 0; }
 EOF
-if { (eval echo configure:3175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:3173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_func_statfs=yes"
 else
@@ -3195,12 +3193,12 @@
 fi
 
 echo $ac_n "checking for fstatfs""... $ac_c" 1>&6
-echo "configure:3199: checking for fstatfs" >&5
+echo "configure:3197: checking for fstatfs" >&5
 if eval "test \"`echo '$''{'ac_cv_func_fstatfs'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 3204 "configure"
+#line 3202 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char fstatfs(); below.  */
@@ -3223,7 +3221,7 @@
 
 ; return 0; }
 EOF
-if { (eval echo configure:3227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:3225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_func_fstatfs=yes"
 else
@@ -3248,9 +3246,9 @@
 
 
 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
-echo "configure:3252: checking for sigsetjmp" >&5
+echo "configure:3250: checking for sigsetjmp" >&5
 cat > conftest.$ac_ext <<EOF
-#line 3254 "configure"
+#line 3252 "configure"
 #include "confdefs.h"
 #define __USE_POSIX 1
 #include <setjmp.h>
@@ -3258,7 +3256,7 @@
 sigjmp_buf b; sigsetjmp(b, 1)
 ; return 0; }
 EOF
-if { (eval echo configure:3262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:3260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   cat >> confdefs.h <<\EOF
 #define HAVE_SIGSETJMP 1
@@ -3273,9 +3271,9 @@
 rm -f conftest*
 
 echo $ac_n "checking for siglongjmp""... $ac_c" 1>&6
-echo "configure:3277: checking for siglongjmp" >&5
+echo "configure:3275: checking for siglongjmp" >&5
 cat > conftest.$ac_ext <<EOF
-#line 3279 "configure"
+#line 3277 "configure"
 #include "confdefs.h"
 #define _POSIX_SOURCE 1
 #include <setjmp.h>
@@ -3283,7 +3281,7 @@
 sigjmp_buf b; siglongjmp(b, 1)
 ; return 0; }
 EOF
-if { (eval echo configure:3287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:3285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   cat >> confdefs.h <<\EOF
 #define HAVE_SIGLONGJMP 1
@@ -3302,12 +3300,12 @@
   got="no"
   tr_func=HAVE_`echo $func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
   echo $ac_n "checking for $func""... $ac_c" 1>&6
-echo "configure:3306: checking for $func" >&5
+echo "configure:3304: checking for $func" >&5
 if eval "test \"`echo '$''{'ac_cv_func_$func'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 3311 "configure"
+#line 3309 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char $func(); below.  */
@@ -3330,7 +3328,7 @@
 
 ; return 0; }
 EOF
-if { (eval echo configure:3334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:3332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_func_$func=yes"
 else
@@ -3355,7 +3353,7 @@
   for lib in posix; do
     if test "$got" = "no"; then
       echo $ac_n "checking for $func in -l$lib""... $ac_c" 1>&6
-echo "configure:3359: checking for $func in -l$lib" >&5
+echo "configure:3357: checking for $func in -l$lib" >&5
 ac_lib_var=`echo $lib'_'$func | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -3363,7 +3361,7 @@
   ac_save_LIBS="$LIBS"
 LIBS="-l$lib  $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 3367 "configure"
+#line 3365 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
@@ -3374,7 +3372,7 @@
 $func()
 ; return 0; }
 EOF
-if { (eval echo configure:3378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:3376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -3405,12 +3403,12 @@
   fi
 done
 echo $ac_n "checking open supports my requirements""... $ac_c" 1>&6
-echo "configure:3409: checking open supports my requirements" >&5
+echo "configure:3407: checking open supports my requirements" >&5
 if eval "test \"`echo '$''{'cps_cv_open_works'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 3414 "configure"
+#line 3412 "configure"
 #include "confdefs.h"
 #ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
@@ -3431,7 +3429,7 @@
 b=open("bar", O_RDONLY);
 ; return 0; }
 EOF
-if { (eval echo configure:3435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:3433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   cps_cv_open_works="yes"
 else
@@ -3448,12 +3446,12 @@
    { echo "configure: error: Your system can not cope with my use of open(2)" 1>&2; exit 1; }
 fi
 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
-echo "configure:3452: checking for getopt_long" >&5
+echo "configure:3450: checking for getopt_long" >&5
 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 3457 "configure"
+#line 3455 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char getopt_long(); below.  */
@@ -3476,7 +3474,7 @@
 
 ; return 0; }
 EOF
-if { (eval echo configure:3480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:3478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_func_getopt_long=yes"
 else
@@ -3508,12 +3506,12 @@
 for ac_func in symlink
 do
 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:3512: checking for $ac_func" >&5
+echo "configure:3510: checking for $ac_func" >&5
 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 3517 "configure"
+#line 3515 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char $ac_func(); below.  */
@@ -3536,7 +3534,7 @@
 
 ; return 0; }
 EOF
-if { (eval echo configure:3540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:3538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_func_$ac_func=yes"
 else
@@ -3568,12 +3566,12 @@
 for ac_func in vsnprintf
 do
 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:3572: checking for $ac_func" >&5
+echo "configure:3570: checking for $ac_func" >&5
 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 3577 "configure"
+#line 3575 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char $ac_func(); below.  */
@@ -3596,7 +3594,7 @@
 
 ; return 0; }
 EOF
-if { (eval echo configure:3600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:3598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_func_$ac_func=yes"
 else
@@ -3626,12 +3624,12 @@
 if test "${statfs}" = "yes"; then
    
 echo $ac_n "checking for struct statfs""... $ac_c" 1>&6
-echo "configure:3630: checking for struct statfs" >&5
+echo "configure:3628: checking for struct statfs" >&5
 if eval "test \"`echo '$''{'cps_cv_have_struct_statfs'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 3635 "configure"
+#line 3633 "configure"
 #include "confdefs.h"
 #include <stdio.h>
 #ifdef HAVE_STDLIB_H
@@ -3648,7 +3646,7 @@
 struct statfs st; st.f_type=42
 ; return 0; }
 EOF
-if { (eval echo configure:3652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:3650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   cps_cv_have_struct_statfs="yes"
 else
@@ -3670,7 +3668,7 @@
 EOF
 
 echo $ac_n "checking fs id of proc filing system""... $ac_c" 1>&6
-echo "configure:3674: checking fs id of proc filing system" >&5
+echo "configure:3672: checking fs id of proc filing system" >&5
 if eval "test \"`echo '$''{'cps_cv_proc_fstype'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -3678,7 +3676,7 @@
    { echo "configure: error: Can not probe non-portable values when cross compiling" 1>&2; exit 1; }
 fi
 cat > conftest.$ac_ext <<EOF
-#line 3682 "configure"
+#line 3680 "configure"
 #include "confdefs.h"
 
 #include <stdio.h>
@@ -3712,7 +3710,7 @@
 } 
 
 EOF
-if { (eval echo configure:3716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && cps_cv_proc_fstype=`(./conftest 2>/dev/null)`
+if { (eval echo configure:3714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && cps_cv_proc_fstype=`(./conftest 2>/dev/null)`
 then
 :
 else
@@ -3746,7 +3744,7 @@
 fi
 
 echo $ac_n "checking device number for /dev/null""... $ac_c" 1>&6
-echo "configure:3750: checking device number for /dev/null" >&5
+echo "configure:3748: checking device number for /dev/null" >&5
 
 
 
@@ -3757,7 +3755,7 @@
    { echo "configure: error: Can not probe non-portable values when cross compiling" 1>&2; exit 1; }
 fi
 cat > conftest.$ac_ext <<EOF
-#line 3761 "configure"
+#line 3759 "configure"
 #include "confdefs.h"
 
 #ifdef HAVE_STDIO_H
@@ -3795,7 +3793,7 @@
 exit(0);
 }
 EOF
-if { (eval echo configure:3799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && cps_cv_dev_null=`(./conftest 2>/dev/null)`
+if { (eval echo configure:3797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && cps_cv_dev_null=`(./conftest 2>/dev/null)`
 then
 :
 else
@@ -3817,7 +3815,7 @@
 esac
 
 echo $ac_n "checking whether snprintf ignores n""... $ac_c" 1>&6
-echo "configure:3821: checking whether snprintf ignores n" >&5
+echo "configure:3819: checking whether snprintf ignores n" >&5
 if eval "test \"`echo '$''{'cps_cv_snprintf_bug'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -3825,7 +3823,7 @@
   cps_cv_snprintf_bug=3
 else
   cat > conftest.$ac_ext <<EOF
-#line 3829 "configure"
+#line 3827 "configure"
 #include "confdefs.h"
 #ifdef HAVE_STDIO_H
 #include <stdio.h>
@@ -3864,7 +3862,7 @@
 }  
 
 EOF
-if { (eval echo configure:3868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:3866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   cps_cv_snprintf_bug=`cat conftest.d`
 else
@@ -3901,7 +3899,7 @@
 
 fi; fi; fi
 echo $ac_n "checking whether vsnprintf ignores n""... $ac_c" 1>&6
-echo "configure:3905: checking whether vsnprintf ignores n" >&5
+echo "configure:3903: checking whether vsnprintf ignores n" >&5
 if eval "test \"`echo '$''{'cps_cv_vsnprintf_bug'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -3909,7 +3907,7 @@
   cps_cv_vsnprintf_bug=3
 else
   cat > conftest.$ac_ext <<EOF
-#line 3913 "configure"
+#line 3911 "configure"
 #include "confdefs.h"
 #ifdef HAVE_STDIO_H
 #include <stdio.h>
@@ -3955,7 +3953,7 @@
 } 
 
 EOF
-if { (eval echo configure:3959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:3957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   cps_cv_vsnprintf_bug=`cat conftest.d`
 else
@@ -4002,7 +4000,7 @@
 touch conftest.d/foo/bar/quux
 $cps_chmod 600 conftest.d/foo
 echo $ac_n "checking whether symlinks can reach files in unsearchable directories""... $ac_c" 1>&6
-echo "configure:4006: checking whether symlinks can reach files in unsearchable directories" >&5
+echo "configure:4004: checking whether symlinks can reach files in unsearchable directories" >&5
 ln -s foo/bar conftest.d/bar
 if test -r conftest.d/bar; then
   echo "$ac_t""yes" 1>&6
@@ -4014,7 +4012,7 @@
   echo "$ac_t""no" 1>&6
 fi
 echo $ac_n "checking whether symlinks can reach files in subdirs of no search dirs""... $ac_c" 1>&6
-echo "configure:4018: checking whether symlinks can reach files in subdirs of no search dirs" >&5
+echo "configure:4016: checking whether symlinks can reach files in subdirs of no search dirs" >&5
 ln -s  foo/baz/quux conftest.d/quux
 if test -r conftest.d/quux; then
   echo "$ac_t""yes" 1>&6
@@ -4029,7 +4027,7 @@
 rm -rf conftest.d
   fi
   echo $ac_n "checking security of interaction between symlink and mkdir""... $ac_c" 1>&6
-echo "configure:4033: checking security of interaction between symlink and mkdir" >&5
+echo "configure:4031: checking security of interaction between symlink and mkdir" >&5
 if eval "test \"`echo '$''{'cps_cv_symlink_mkdir_bug'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -4039,7 +4037,7 @@
   cps_cv_symlink_mkdir_bug=3
 else
   cat > conftest.$ac_ext <<EOF
-#line 4043 "configure"
+#line 4041 "configure"
 #include "confdefs.h"
 #include <stdio.h>
 #ifdef HAVE_STDLIB_H
@@ -4066,7 +4064,7 @@
 } 
 
 EOF
-if { (eval echo configure:4070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:4068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   cps_cv_symlink_mkdir_bug=0
 else
@@ -4114,7 +4112,7 @@
    { echo "configure: error: Impossible value of cps_cv_symlink_mkdir_bug" 1>&2; exit 1; } ;;
 esac
   echo $ac_n "checking security of interaction between symlink and open""... $ac_c" 1>&6
-echo "configure:4118: checking security of interaction between symlink and open" >&5
+echo "configure:4116: checking security of interaction between symlink and open" >&5
 if eval "test \"`echo '$''{'cps_cv_symlink_open_bug'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -4123,7 +4121,7 @@
   cps_cv_symlink_open_buf=3
 else
   cat > conftest.$ac_ext <<EOF
-#line 4127 "configure"
+#line 4125 "configure"
 #include "confdefs.h"
 #include <stdio.h>
 #ifdef HAVE_STDLIB_H
@@ -4166,7 +4164,7 @@
 } 
 
 EOF
-if { (eval echo configure:4170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:4168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   cps_cv_symlink_open_bug=0
 else
@@ -4215,7 +4213,7 @@
 esac
 fi
 echo $ac_n "checking for working RLIMIT_NPROC resource limit""... $ac_c" 1>&6
-echo "configure:4219: checking for working RLIMIT_NPROC resource limit" >&5
+echo "configure:4217: checking for working RLIMIT_NPROC resource limit" >&5
 if eval "test \"`echo '$''{'cps_cv_rlimit_nproc'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -4223,7 +4221,7 @@
   cps_cv_rlimit_nproc=2
 else
   cat > conftest.$ac_ext <<EOF
-#line 4227 "configure"
+#line 4225 "configure"
 #include "confdefs.h"
 
 #ifdef HAVE_STDLIB_H
@@ -4256,7 +4254,7 @@
 }  
 
 EOF
-if { (eval echo configure:4260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:4258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   cps_cv_rlimit_nproc=0
 else
@@ -4282,7 +4280,7 @@
   echo "$ac_t""unknown, assuming none" 1>&6
 fi; fi
 echo $ac_n "checking for RLIMIT_MEMLOCK resource limit""... $ac_c" 1>&6
-echo "configure:4286: checking for RLIMIT_MEMLOCK resource limit" >&5
+echo "configure:4284: checking for RLIMIT_MEMLOCK resource limit" >&5
 if eval "test \"`echo '$''{'cps_cv_rlimit_memlock'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -4290,7 +4288,7 @@
   cps_cv_rlimit_memlock=2
 else
   cat > conftest.$ac_ext <<EOF
-#line 4294 "configure"
+#line 4292 "configure"
 #include "confdefs.h"
 
 #ifndef HAVE_STDLIB_H
@@ -4325,7 +4323,7 @@
 }  
 
 EOF
-if { (eval echo configure:4329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:4327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   cps_cv_rlimit_memlock=0
 else
@@ -4379,7 +4377,7 @@
 fi
 
 echo $ac_n "checking host system type""... $ac_c" 1>&6
-echo "configure:4383: checking host system type" >&5
+echo "configure:4381: checking host system type" >&5
 
 host_alias=$host
 case "$host_alias" in
@@ -4400,7 +4398,7 @@
 echo "$ac_t""$host" 1>&6
 
 echo $ac_n "checking target system type""... $ac_c" 1>&6
-echo "configure:4404: checking target system type" >&5
+echo "configure:4402: checking target system type" >&5
 
 target_alias=$target
 case "$target_alias" in
@@ -4418,7 +4416,7 @@
 echo "$ac_t""$target" 1>&6
 
 echo $ac_n "checking build system type""... $ac_c" 1>&6
-echo "configure:4422: checking build system type" >&5
+echo "configure:4420: checking build system type" >&5
 
 build_alias=$build
 case "$build_alias" in
@@ -4445,8 +4443,9 @@
 	target_os=`cat ${target_os}`
 fi
 
+
 echo $ac_n "checking ${target_os} process detail reading code source file""... $ac_c" 1>&6
-echo "configure:4450: checking ${target_os} process detail reading code source file" >&5
+echo "configure:4449: checking ${target_os} process detail reading code source file" >&5
 if test -f ${target_os}/process.c; then
    CPS_SYSTEM=${target_os}/proc.o
    cat >> confdefs.h <<\EOF
@@ -4461,9 +4460,26 @@
 
 
 
+echo $ac_n "checking ${target_os} netstat checking code""... $ac_c" 1>&6
+echo "configure:4465: checking ${target_os} netstat checking code" >&5
+if test -f ${target_os}/netstat.c; then
+   CPS_OS_NETSTAT=${target_os}/netstat.o
+   CPS_OS_NETSTAT=${target_os}/netstat_test.o
+   CPS_OS_NETSTAT_SRC=${target_os}/netstat.c
+   echo "$ac_t""${target_os}/netstat.c" 1>&6
+else
+   CPS_OS_NETSTAT="netstat.o"
+   CPS_OS_NETSTAT_TEST="netstat_test.o"
+   CPS_OS_NETSTAT_SRC="netstat_stub.c"
+   echo "$ac_t""none (netstat scanning not supported)" 1>&6
+fi
+
+
+
+
 
 echo $ac_n "checking ${target_os} kill scaning config file""... $ac_c" 1>&6
-echo "configure:4467: checking ${target_os} kill scaning config file" >&5
+echo "configure:4483: checking ${target_os} kill scaning config file" >&5
 if test -s ${target_os}/killscan.h; then
    kill_scan_cfg=${target_os}/killscan.h
    echo "$ac_t""${target_os}/killscan.h" 1>&6
@@ -4475,11 +4491,11 @@
    pkill_lst=pidlist_pkill.o
 else
    echo "$ac_t""none" 1>&6
-         know_max_pid="no"
+      know_max_pid="no"
    echo $ac_n "checking largest pid value""... $ac_c" 1>&6
-echo "configure:4481: checking largest pid value" >&5
+echo "configure:4497: checking largest pid value" >&5
    echo $ac_n "checking whether I can compute maximum pid""... $ac_c" 1>&6
-echo "configure:4483: checking whether I can compute maximum pid" >&5
+echo "configure:4499: checking whether I can compute maximum pid" >&5
 if eval "test \"`echo '$''{'cps_cv_max_pid'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -4487,7 +4503,7 @@
    { echo "configure: error: Can not probe non-portable values when cross compiling" 1>&2; exit 1; }
 fi
 cat > conftest.$ac_ext <<EOF
-#line 4491 "configure"
+#line 4507 "configure"
 #include "confdefs.h"
 
 #include <stdio.h>
@@ -4551,7 +4567,7 @@
     exit(0);
 } 
 EOF
-if { (eval echo configure:4555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && cps_cv_max_pid=`(./conftest 2>/dev/null)`
+if { (eval echo configure:4571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && cps_cv_max_pid=`(./conftest 2>/dev/null)`
 then
 :
 else
@@ -4694,7 +4710,7 @@
 
 ac_given_srcdir=$srcdir
 
-trap 'rm -fr `echo "Makefile linux/Makefile libdetail/Makefile fake_ps fake_ps_2 cfg_check.h killscan.h gen_killscan.h cfg_prog.h config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
+trap 'rm -fr `echo "Makefile linux/Makefile libdetail/Makefile fake_ps fake_ps_2 fake_netstat cfg_check.h killscan.h gen_killscan.h cfg_prog.h config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
 EOF
 cat >> $CONFIG_STATUS <<EOF
 
@@ -4766,6 +4782,9 @@
 s%@target_os@%$target_os%g
 s%@cps_target@%$cps_target%g
 s%@CPS_SYSTEM@%$CPS_SYSTEM%g
+s%@CPS_OS_NETSTAT@%$CPS_OS_NETSTAT%g
+s%@CPS_OS_NETSTAT_TEST@%$CPS_OS_NETSTAT_TEST%g
+s%@CPS_OS_NETSTAT_SRC@%$CPS_OS_NETSTAT_SRC%g
 s%@cps_pid_max@%$cps_pid_max%g
 s%@kill_scan_cfg@%$kill_scan_cfg%g
 s%@pkill_lst@%$pkill_lst%g
@@ -4810,7 +4829,7 @@
 
 cat >> $CONFIG_STATUS <<EOF
 
-CONFIG_FILES=\${CONFIG_FILES-"Makefile linux/Makefile libdetail/Makefile fake_ps fake_ps_2 cfg_check.h killscan.h gen_killscan.h cfg_prog.h"}
+CONFIG_FILES=\${CONFIG_FILES-"Makefile linux/Makefile libdetail/Makefile fake_ps fake_ps_2 fake_netstat cfg_check.h killscan.h gen_killscan.h cfg_prog.h"}
 EOF
 cat >> $CONFIG_STATUS <<\EOF
 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
@@ -4979,6 +4998,7 @@
 
 chmod a+x fake_ps
 chmod a+x fake_ps_2
+chmod a+x fake_netstat
 echo timestamp >stamp-h
 echo '*** YOU MUST EDIT cfg_smtp.h BEFORE COMPILING check_ps ***'
 exit 0
Index: configure.in
===================================================================
RCS file: /cvsroot/checkps/checkps/configure.in,v
retrieving revision 1.7
diff -u -r1.7 configure.in
--- configure.in	2000/10/10 22:10:43	1.7
+++ configure.in	2001/04/08 21:59:16
@@ -164,7 +164,7 @@
 AC_FUNC_VPRINTF
 AC_CHECK_FUNCS(strdup strerror setrlimit fchmod getopt_long)
 AC_CHECK_FUNCS(getopt nice lstat snprintf setresuid setreuid setuid)
-AC_CHECK_FUNCS(setresgid setregid setgid setgroups)
+AC_CHECK_FUNCS(setresgid setregid setgid setgroups setpgid)
 AC_CHECK_FUNCS(setjmp longjmp sigaction signal)
 AC_CHECK_FUNC(statfs, AC_DEFINE(HAVE_STATFS) statfs="yes",  statfs="no")
 AC_CHECK_FUNC(fstatfs, AC_DEFINE(HAVE_FSTATFS) fstatfs="yes",  fstatfs="no")
@@ -241,7 +241,7 @@
 if test -f ${target_os}/netstat.c; then
    CPS_OS_NETSTAT=${target_os}/netstat.o
    CPS_OS_NETSTAT=${target_os}/netstat_test.o
-   CPS_OS_NETSTAT_SRC=${target_os}/netstat.c)
+   CPS_OS_NETSTAT_SRC=${target_os}/netstat.c
    AC_MSG_RESULT(${target_os}/netstat.c)
 else
    CPS_OS_NETSTAT="netstat.o"
Index: pidlist_pkill.c
===================================================================
RCS file: /cvsroot/checkps/checkps/pidlist_pkill.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 pidlist_pkill.c
--- pidlist_pkill.c	2000/05/04 22:55:53	1.1.1.1
+++ pidlist_pkill.c	2001/04/08 21:59:20
@@ -41,11 +41,25 @@
 {
     if (kill(pid, 0)==-1)
     {
-	if (errno==ESRCH)
-	    return 0;
 	if (errno!=EPERM)
 	    log("Unexpected error number %d check pid %d", errno, pid);
     }
+#ifdef HAVE_SETPGID
+    if (errno==ESRCH)
+    {
+	errno=0;
+	setpgid(0, pid);	/* Another process id test */
+	setpgid(0, 0);	/* Always allowed */
+	if (errno==ESRCH)
+	{
+	    log(
+		"patched : kill(2) and open(2). Real pid %d detected by setpgid(2).\n",
+		pid);
+	}
+    }
+#endif /* HAVE_SETPGID */
+    if (errno==ESRCH)
+	return 0;
     return 1;
 }
 
@@ -115,7 +129,33 @@
     for (scan=1; scan!=MAX_PROC; scan++) /* pid_t might be >16 bits wide */
     {
 	kill(scan, 0);
+	/* I think adore is vulnerable to proc_current_process */
+	if (errno==ESRCH)
+	{
+	    if ( proc_current_process(scan))
+	    {
+		log("patched : kill(2) system call. Real pid %d returned ESRCH,.\n",
+		    scan);
+		errno=0;		/* Real process id */
+	    }
+	    else
+		errno=ESRCH;
+	}	       
+#ifdef HAVE_SETPGID
 	if (errno==ESRCH)
+	{
+	    errno=0;
+	    setpgid(0, scan);	/* Another process id test */
+	    setpgid(0, 0);	/* Always allowed */
+	    if (errno==ESRCH)
+	    {
+		log(
+		    "patched : kill(2) and open(2). Real pid %d detected by setpgid(2).\n",
+		    scan);
+	    }
+	}
+#endif /* HAVE_SETPGID */
+	if (errno==ESRCH)
 	    continue;
 	/* Check for the pid in /proc */
 	if (proc_current_process(scan))
@@ -130,11 +170,63 @@
 	    continue;
 	}
 	kill(scan, 0);
+	/* I think adore is vulnerable to proc_current_process */
 	if (errno==ESRCH)
+	{
+	    if ( proc_current_process(scan))
+	    {
+		log("patched : kill(2) system call. Real pid %d returned ESRCH,.\n",
+		    scan);
+		errno=0;		/* Real process id */
+	    }
+	    else
+		errno=ESRCH;
+	}
+#ifdef HAVE_SETPGID
+	if (errno==ESRCH)
+	{
+	    errno=0;
+	    setpgid(0, scan);	/* Another process id test */
+	    setpgid(0, 0);	/* Always allowed */
+	    if (errno==ESRCH)
+	    {
+		log(
+		    "patched : kill(2) and open(2). Real pid %d detected by setpgid(2).\n",
+		    scan);
+	    }
+	}
+#endif /* HAVE_SETPGID */
+	if (errno==ESRCH)
 	    continue;		/* Just a race */
 	log("pid %d active but not in /proc", scan); /* /proc falsifiation */
 	nuke_proc(scan);
 	kill(scan, 0);
+	/* I think adore is vulnerable to proc_current_process */
+	if (errno==ESRCH)
+	{
+	    if ( proc_current_process(scan))
+	    {
+		log("patched : kill(2) system call. Real pid %d returned ESRCH,.\n",
+		    scan);
+		errno=0;		/* Real process id */
+	    }
+	    else
+		errno=ESRCH;
+	}
+#ifdef HAVE_SETPGID
+	if (errno==ESRCH)
+	{
+	    errno=0;
+	    setpgid(0, scan);	/* Another process id test */
+	    setpgid(0, 0);	/* Always allowed */
+	    if (errno==ESRCH)
+	    {
+		log(
+		    "patched kill(2) and open(2). Real pid %d detected by setpgid(2).\n",
+		    scan);
+	    }
+	}
+#endif /* HAVE_SETPGID */
 	if (errno!=ESRCH)
 	{
 	    log("Security Alert! pid %d still active", scan);
