anchor.diff:      ${stdenv.lib.optionalString ldapSupport "--with-ldap"}
     '';
   
  -  propagatedBuildInputs = stdenv.lib.optional ldapSupport openldap;
  +  propagatedBuildInputs = [ makeWrapper apr expat ]
  +    ++ optional sslSupport openssl
  +    ++ optional bdbSupport db4
  +    ++ optional ldapSupport openldap;
  +
  +  # Give apr1 access to sed for runtime invocations
  +  postInstall = ''
  +    wrapProgram $out/bin/apu-1-config --prefix PATH : "${gnused}/bin"
  +  '';
   
     enableParallelBuilding = true;
   
  
positive.code: { stdenv, fetchurl, apr, expat
  , sslSupport ? true, openssl
  , bdbSupport ? false, db4
  , ldapSupport ? true, openldap
  
negative.code: assert sslSupport -> openssl != null;
  assert bdbSupport -> db4 != null;
  assert ldapSupport -> openldap != null;
  
  let
    optional = stdenv.lib.optional;
  in
  
  stdenv.mkDerivation rec {
    name = "apr-util-1.5.3";
  