$OpenBSD: patch-configure,v 1.2 2005/08/07 10:48:01 sturm Exp $
--- configure.orig	Wed Aug  3 01:58:24 2005
+++ configure	Wed Aug  3 12:38:09 2005
@@ -371,7 +371,7 @@ EOF
     ac_prev=sysconfdir ;;
   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
-    sysconfdir="$ac_optarg" ;;
+    sysconfdir="$ac_optarg/nagios" ;;
 
   -target | --target | --targe | --targ | --tar | --ta | --t)
     ac_prev=target ;;
@@ -1834,14 +1834,14 @@ if test $ac_cv_lib_cma_pthread_create = 
 	have_pthreads="yes"
 fi
 
-echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
-echo "configure:1839: checking for pthread_create in -lpthread" >&5
+echo $ac_n "checking for pthread_create in -pthread""... $ac_c" 1>&6
+echo "configure:1839: checking for pthread_create in -pthread" >&5
 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   ac_save_LIBS="$LIBS"
-LIBS="-lpthread  $LIBS"
+LIBS="-pthread  $LIBS"
 cat > conftest.$ac_ext <<EOF
 #line 1847 "configure"
 #include "confdefs.h"
@@ -1869,7 +1869,7 @@ LIBS="$ac_save_LIBS"
 fi
 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
   echo "$ac_t""yes" 1>&6
-  THREADLIBS="$THREADLIBS -lpthread"
+  THREADLIBS="$THREADLIBS -pthread"
 else
   echo "$ac_t""no" 1>&6
 fi
@@ -2151,7 +2151,7 @@ cat >> confdefs.h <<EOF
 #define DEFAULT_NAGIOS_GROUP "$nagios_grp"
 EOF
 
-INSTALL_OPTS="-o $nagios_user -g $nagios_grp"
+INSTALL_OPTS=""
 
 
 # Check whether --with-command_user or --without-command_user was given.
