$OpenBSD: patch-configure,v 1.4 2011/12/03 15:01:38 sthen Exp $
--- configure.orig	Wed Nov 30 12:08:58 2011
+++ configure	Wed Nov 30 19:35:06 2011
@@ -4819,20 +4819,20 @@ fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5
 $as_echo "$ac_cv_lib_cma_pthread_create" >&6; }
 if test "x$ac_cv_lib_cma_pthread_create" = xyes; then :
-  THREADLIBS="$THREADLIBS -lpthread"
+  THREADLIBS="$THREADLIBS -pthread"
 fi
 
 if test $ac_cv_lib_cma_pthread_create = yes; then
 	have_pthreads="yes"
 fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
-$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -pthread" >&5
+$as_echo_n "checking for pthread_create in -pthread... " >&6; }
 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lpthread  $LIBS"
+LIBS="-pthread  $LIBS"
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
@@ -4863,7 +4863,7 @@ fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
-  THREADLIBS="$THREADLIBS -lpthread"
+  THREADLIBS="$THREADLIBS -pthread"
 fi
 
 if test $ac_cv_lib_pthread_pthread_create = yes; then
@@ -5154,7 +5154,7 @@ cat >>confdefs.h <<_ACEOF
 #define DEFAULT_NAGIOS_GROUP "$icinga_grp"
 _ACEOF
 
-INSTALL_OPTS="-o $icinga_user -g $icinga_grp"
+INSTALL_OPTS=""
 
 
 
@@ -5175,7 +5175,7 @@ fi
 
 
 
-COMMAND_OPTS="-o $command_user -g $command_grp"
+COMMAND_OPTS=""
 
 
 
@@ -5636,7 +5636,7 @@ $as_echo_n "checking for gdImagePng in -lgd (order 1).
   $as_echo_n "(cached) " >&6
 else
   ac_save_LIBS="$LIBS"
-	LIBS="-lgd -lttf -lpng -ljpeg -lz -lm $LIBS"
+	LIBS="-lgd -lpng -ljpeg -lz -lm $LIBS"
 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 	/* Override any gcc2 internal prototype to avoid an error.  */
@@ -5667,7 +5667,7 @@ fi
 $as_echo "yes" >&6; }
 
 			GDLIBFOUND=yep
-			GDLIBS="-lgd -lttf -lpng -ljpeg -lz -lm"
+			GDLIBS="-lgd -lpng -ljpeg -lz -lm"
 
 	else
 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
@@ -6931,7 +6931,7 @@ $as_echo_n "checking for SSL libraries... " >&6; }
 		found_ssl=no
 		for dir in $ssl_lib_dir $ssl_dir /usr/lib64 /usr/lib /usr/local/lib /usr/lib/ssl /usr/ssl/lib /usr/openssl/lib /usr/pkg/lib  /usr/freeware/lib/openssl; do
 			ssllibdir="$dir"
-			if test -f "$dir/libssl.so"; then
+			if test -f "$dir/libssl.a"; then
 				found_ssl=yes
 			        break
 			fi
