$OpenBSD$
--- configure.in.orig	Wed Aug 29 10:32:16 2007
+++ configure.in	Sun Sep 23 19:07:23 2007
@@ -111,9 +111,10 @@ BB_ENABLE_DOXYGEN
 #BB_CHECK_PTHREADS
 
 LOG4CPP_CFLAGS="$CXXFLAGS"
-LOG4CPP_LIBS="-llog4cpp"
-LOG4CPP_LIBDEPS="$LIBS"
+LOG4CPP_LIBS="-pthread $LIBS -llog4cpp"
 LOG4CPP_VERSION="$VERSION"
+AC_SUBST(LOG4CPP_CFLAGS)
+AC_SUBST(LOG4CPP_LIBS)
 
 # CXX fine tuning
 case "$host" in
@@ -128,9 +129,6 @@ PETI_PEDANTIC_GCC
 
 # Create files
 # ----------------------------------------------------------------------------
-
-AC_CONFIG_LIBCONFIG_IN([log4cpp])
-AC_CONFIG_PKGCONFIG_IN([log4cpp], [C++ library for flexible logging, modeled after Log4j])
 
 AC_CONFIG_FILES([
 Makefile
