$OpenBSD: patch-configure_in,v 1.4 2006/01/17 15:08:08 naddy Exp $
--- configure.in.orig	Tue Jul 19 21:55:34 2005
+++ configure.in	Tue Sep 20 23:07:48 2005
@@ -845,8 +845,8 @@ dnl ====================================
 if test "$compile_pgsql_plugin" = "yes"; then
   AC_MSG_CHECKING([for PostgreSQL... Step 2 of 4])
   pgsql_libdirs="$ac_pgsql_libdir /usr/lib /usr/local/lib /usr/local/pgsql/lib /opt/postgres/lib"
-  AC_FIND_FILE(libpq.so, $pgsql_libdirs, pgsql_libdir)
-  if test ! -r $pgsql_libdir/libpq.so; then
+  AC_FIND_FILE(libpq.a, $pgsql_libdirs, pgsql_libdir)
+  if test ! -r $pgsql_libdir/libpq.a; then
     compile_pgsql_plugin="no"
     AC_MSG_RESULT([not found])
   else
@@ -880,8 +880,8 @@ dnl ====================================
 if test "$compile_pgsql_plugin" = "yes"; then
   AC_MSG_CHECKING([for PostgreSQL... Step 4 of 4])
   pqxx_libdirs="$ac_pqxx_libdir /usr/lib /usr/local/lib /usr/local/pqxx/lib"
-  AC_FIND_FILE(libpqxx.so, $pqxx_libdirs, pqxx_libdir)
-  if test ! -r $pqxx_libdir/libpqxx.so; then
+  AC_FIND_FILE(libpqxx.so.1.0, $pqxx_libdirs, pqxx_libdir)
+  if test ! -r $pqxx_libdir/libpqxx.so.1.0; then
     compile_pgsql_plugin="no"
     AC_MSG_RESULT([not found])
   else
@@ -918,7 +918,7 @@ AC_CACHE_VAL(ac_cv_have_knewstuff,
 AC_FIND_FILE(knewstuff/downloaddialog.h, $kde_incdirs, knewstuff_incdir)
 ac_knewstuff_includes="$knewstuff_incdir"
 
-AC_FIND_FILE(libknewstuff.so, $kde_libdirs, knewstuff_libdir)
+AC_FIND_FILE(libknewstuff.so.2.0, $kde_libdirs, knewstuff_libdir)
 ac_knewstuff_libraries="$knewstuff_libdir"
 
 if test "$ac_knewstuff_includes" = NO || test "$ac_knewstuff_libraries" = NO; then
@@ -1245,7 +1245,7 @@ dnl FILE: ./lib/kotext/configure.in.in
 dnl =======================================================
 
    AC_LANG_SAVE
-   AC_LANG_C
+   AC_LANG_CPLUSPLUS
    dnl Check for aspell library
    AC_MSG_CHECKING([for kspell2/broker.h (kdelibs>3.2)])
    AC_FIND_FILE(kspell2/broker.h, $kde_includes, ac_kspell2_includes)
