$OpenBSD: patch-configure,v 1.18 2014/05/08 04:15:21 ajacoutot Exp $
--- configure.orig	Thu Feb 20 00:32:50 2014
+++ configure	Thu May  8 05:58:42 2014
@@ -3733,7 +3733,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${h46017}" != "xno" ; then
 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: No H.460 support available" >&5
@@ -3765,7 +3765,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
@@ -3797,7 +3797,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
@@ -4591,7 +4591,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 -L$try -lssh -lcrypto -lz $GSSAPI_LIBS -lrt"
+				LIBS="$old_LIBS -L$try -lssh -lcrypto -lz $GSSAPI_LIBS"
 				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 extern ssh_handle_key_exchange(); extern ssh_blocking_flush();
@@ -4823,7 +4823,7 @@ else
 fi
 
 
-PTLIBSNMPSUPPORT=`cat ${PTLIBDIR}/include/ptbuildopts.h | grep 'define P_SNMP'`
+PTLIBSNMPSUPPORT=`cat ${PTLIBDIR}/make/ptbuildopts.mak | grep 'define P_SNMP'`
 if test "${PTLIBSNMPSUPPORT:-unset}" = "unset" ; then
 	if test "x${ptlibsnmp}" != "xno" ; then
 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: No PTLib SNMP support available" >&5
