anchor.diff:          ++ optional postgresqlSupport postgresql
           ++ optional pdo_pgsqlSupport postgresql
           ++ optional pdo_mysqlSupport mysqlBuildInputs
  -        ++ optional mysqlSupport mysqlBuildInputs
           ++ optional mysqliSupport mysqlBuildInputs
           ++ optional gmpSupport gmp
           ++ optional gettextSupport gettext
  
positive.code:   , imapSupport ? config.php.imap or (!stdenv.isDarwin)
    , ldapSupport ? config.php.ldap or true
    , mhashSupport ? config.php.mhash or true
    , mysqlSupport ? (config.php.mysql or true)
    , mysqlndSupport ? config.php.mysqlnd or true
    , mysqliSupport ? config.php.mysqli or true
    , pdo_mysqlSupport ? config.php.pdo_mysql or true
  
negative.code:       ++ optional postgresqlSupport "--with-pgsql=${postgresql}"
        ++ optional pdo_pgsqlSupport "--with-pdo-pgsql=${postgresql}"
        ++ optional pdo_mysqlSupport "--with-pdo-mysql=${if mysqlndSupport then "mysqlnd" else mysql.connector-c}"
        ++ optionals mysqliSupport [
          "--with-mysqli=${if mysqlndSupport then "mysqlnd" else "${mysql.connector-c}/bin/mysql_config"}"
        ]
        ++ optional ( pdo_mysqlSupport || mysqliSupport ) "--with-mysql-sock=/run/mysqld/mysqld.sock"
        ++ optional bcmathSupport "--enable-bcmath"
        # FIXME: Our own gd package doesn't work, see https://bugs.php.net/bug.php?id=60108.
        ++ optionals gdSupport [
  