$OpenBSD: patch-configure,v 1.9 2012/01/05 08:44:35 ajacoutot Exp $
--- configure.orig	Mon Nov 28 13:46:08 2011
+++ configure	Thu Jan  5 09:33:19 2012
@@ -3633,9 +3633,9 @@ fi
 
       if test "${HAS_OPENH323_VERSIONFILE:-unset}" != "unset"; then
         OPENH323_VERSION_FILE=${OPENH323MAKEDIR}/../../include/openh323/openh323buildopts.h
-        OPENH323_MAJOR_VERSION=`cat ${OPENH323_VERSION_FILE} | grep OPENH323_MAJOR | cut -f2 -d' '`
-        OPENH323_MINOR_VERSION=`cat ${OPENH323_VERSION_FILE} | grep OPENH323_MINOR | cut -f2 -d' '`
-        OPENH323_BUILD_NUMBER=`cat ${OPENH323_VERSION_FILE} | grep "OPENH323_BUILD " | cut -f2 -d' '`
+        OPENH323_MAJOR_VERSION=`cat ${OPENH323_VERSION_FILE} | grep OPENH323_MAJOR | cut -f3 -d' '`
+        OPENH323_MINOR_VERSION=`cat ${OPENH323_VERSION_FILE} | grep OPENH323_MINOR | cut -f3 -d' '`
+        OPENH323_BUILD_NUMBER=`cat ${OPENH323_VERSION_FILE} | grep "OPENH323_BUILD " | cut -f3 -d' '`
       fi
     fi
   fi
@@ -3689,7 +3689,7 @@ else
 fi
 
 
-H460SUPPORT=`cat ${OPENH323DIR}/include/openh323buildopts.h | grep 'define H323_H460'`
+H460SUPPORT=`cat !!LOCALBASE!!/include/openh323/openh323buildopts.h | grep 'define H323_H460'`
 if test "${H460SUPPORT:-unset}" = "unset" ; then
 	if test "x${h46018}" != "xno" ; then
 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: No H.460 support available" >&5
@@ -3721,7 +3721,7 @@ else
 fi
 
 
-H460SUPPORT=`cat ${OPENH323DIR}/include/openh323buildopts.h | grep 'define H323_H460'`
+H460SUPPORT=`cat !!LOCALBASE!!/include/openh323/openh323buildopts.h | grep 'define H323_H460'`
 if test "${H460SUPPORT:-unset}" = "unset" ; then
 	if test "x${h46023}" != "xno" ; then
 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: No H.460 support available" >&5
@@ -4514,7 +4514,7 @@ $as_echo_n "checking for ssh_handle_key_exchange()/ssh
 
 		for try in /usr/lib /usr/local/lib $libssh_lib_dir; do
 			if test -d $try; then
-				LIBS="$old_LIBS -lssh -lcrypto -lz -lrt"
+				LIBS="$old_LIBS -lssh -lcrypto -lz"
 				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 extern ssh_handle_key_exchange(); extern ssh_blocking_flush();
