--- httpd-2.2.10/srclib/apr-util/build/apu-conf.m4.org	2008-07-09 00:31:59.000000000 +0200
+++ httpd-2.2.10/srclib/apr-util/build/apu-conf.m4	2009-03-03 08:45:11.000000000 +0100
@@ -268,7 +268,7 @@
       APU_FIND_LDAPLIB($LIBLDAP, "-ldl -lpthread")
     fi
 
-    test ${apu_has_ldap} != "1" && AC_MSG_ERROR(could not find an LDAP library)
+    if test ${apu_has_ldap} = "1"; then
     AC_CHECK_LIB(lber, ber_init)
 
     AC_CHECK_HEADERS(lber.h, lber_h=["#include <lber.h>"])
@@ -350,7 +350,7 @@
         fi
       ])
     fi
-
+    fi
     CPPFLAGS=$save_cppflags
     LDFLAGS=$save_ldflags
     LIBS=$save_libs
