@@ -4,6 +4,7 @@
4, withKerberos ? false
4, withKerberos ? false
5, withGssapiPatches ? withKerberos
5, withGssapiPatches ? withKerberos
9assert withKerberos -> kerberos != null;
10assert withKerberos -> kerberos != null;
@@ -54,7 +55,8 @@ stdenv.mkDerivation rec {
54 (if pam != null then "--with-pam" else "--without-pam")
55 (if pam != null then "--with-pam" else "--without-pam")
55 ] ++ optional (etcDir != null) "--sysconfdir=${etcDir}"
56 ] ++ optional (etcDir != null) "--sysconfdir=${etcDir}"
56 ++ optional withKerberos "--with-kerberos5=${kerberos}"
57 ++ optional withKerberos "--with-kerberos5=${kerberos}"
57− ++ optional stdenv.isDarwin "--disable-libutil";
58+ ++ optional stdenv.isDarwin "--disable-libutil"
59+ ++ optional (!linkOpenssl) "--without-openssl";
59 preConfigure = ''
61 preConfigure = ''
60 configureFlagsArray+=("--with-privsep-path=$out/empty")
62 configureFlagsArray+=("--with-privsep-path=$out/empty")