@@ -4,6 +4,7 @@
44, withKerberos ? false
55, withGssapiPatches ? withKerberos
66, kerberos
7+, linkOpenssl? true
78}:
89
910assert withKerberos -> kerberos != null;
@@ -54,7 +55,8 @@ stdenv.mkDerivation rec {
5455 (if pam != null then "--with-pam" else "--without-pam")
5556 ] ++ optional (etcDir != null) "--sysconfdir=${etcDir}"
5657 ++ optional withKerberos "--with-kerberos5=${kerberos}"
57− ++ optional stdenv.isDarwin "--disable-libutil";
58+ ++ optional stdenv.isDarwin "--disable-libutil"
59+ ++ optional (!linkOpenssl) "--without-openssl";
5860
5961 preConfigure = ''
6062 configureFlagsArray+=("--with-privsep-path=$out/empty")