mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-23 19:39:53 +08:00
Support --with-extra-version equivalent functionality in MSVC build
Adds a configuration parameter, extraver, that is appended to the version number when built. Michael Paquier, reviewed by Muhammad Asif Naeem
This commit is contained in:
parent
bd409519bd
commit
8d9a0e85bd
@ -164,9 +164,9 @@ sub GenerateFiles
|
|||||||
|| confess "Could not write to pg_config.h\n";
|
|| confess "Could not write to pg_config.h\n";
|
||||||
while (<I>)
|
while (<I>)
|
||||||
{
|
{
|
||||||
s{PG_VERSION "[^"]+"}{PG_VERSION "$self->{strver}"};
|
s{PG_VERSION "[^"]+"}{PG_VERSION "$self->{strver}$self->{options}->{extraver}"};
|
||||||
s{PG_VERSION_NUM \d+}{PG_VERSION_NUM $self->{numver}};
|
s{PG_VERSION_NUM \d+}{PG_VERSION_NUM $self->{numver}};
|
||||||
s{PG_VERSION_STR "[^"]+"}{__STRINGIFY(x) #x\n#define __STRINGIFY2(z) __STRINGIFY(z)\n#define PG_VERSION_STR "PostgreSQL $self->{strver}, compiled by Visual C++ build " __STRINGIFY2(_MSC_VER) ", $bits-bit"};
|
s{PG_VERSION_STR "[^"]+"}{__STRINGIFY(x) #x\n#define __STRINGIFY2(z) __STRINGIFY(z)\n#define PG_VERSION_STR "PostgreSQL $self->{strver}$self->{options}->{extraver}, compiled by Visual C++ build " __STRINGIFY2(_MSC_VER) ", $bits-bit"};
|
||||||
print O;
|
print O;
|
||||||
}
|
}
|
||||||
print O "#define PG_MAJORVERSION \"$self->{majorver}\"\n";
|
print O "#define PG_MAJORVERSION \"$self->{majorver}\"\n";
|
||||||
@ -625,14 +625,15 @@ sub GetFakeConfigure
|
|||||||
$cfg .= ' --enable-nls' if ($self->{options}->{nls});
|
$cfg .= ' --enable-nls' if ($self->{options}->{nls});
|
||||||
$cfg .= ' --with-ldap' if ($self->{options}->{ldap});
|
$cfg .= ' --with-ldap' if ($self->{options}->{ldap});
|
||||||
$cfg .= ' --without-zlib' unless ($self->{options}->{zlib});
|
$cfg .= ' --without-zlib' unless ($self->{options}->{zlib});
|
||||||
$cfg .= ' --with-openssl' if ($self->{options}->{ssl});
|
$cfg .= ' --with-extra-version' if ($self->{options}->{extraver});
|
||||||
$cfg .= ' --with-ossp-uuid' if ($self->{options}->{uuid});
|
$cfg .= ' --with-openssl' if ($self->{options}->{ssl});
|
||||||
$cfg .= ' --with-libxml' if ($self->{options}->{xml});
|
$cfg .= ' --with-ossp-uuid' if ($self->{options}->{uuid});
|
||||||
$cfg .= ' --with-libxslt' if ($self->{options}->{xslt});
|
$cfg .= ' --with-libxml' if ($self->{options}->{xml});
|
||||||
$cfg .= ' --with-gssapi' if ($self->{options}->{gss});
|
$cfg .= ' --with-libxslt' if ($self->{options}->{xslt});
|
||||||
$cfg .= ' --with-tcl' if ($self->{options}->{tcl});
|
$cfg .= ' --with-gssapi' if ($self->{options}->{gss});
|
||||||
$cfg .= ' --with-perl' if ($self->{options}->{perl});
|
$cfg .= ' --with-tcl' if ($self->{options}->{tcl});
|
||||||
$cfg .= ' --with-python' if ($self->{options}->{python});
|
$cfg .= ' --with-perl' if ($self->{options}->{perl});
|
||||||
|
$cfg .= ' --with-python' if ($self->{options}->{python});
|
||||||
|
|
||||||
return $cfg;
|
return $cfg;
|
||||||
}
|
}
|
||||||
|
@ -10,17 +10,18 @@ our $config = {
|
|||||||
# blocksize => 8, # --with-blocksize, 8kB by default
|
# blocksize => 8, # --with-blocksize, 8kB by default
|
||||||
# wal_blocksize => 8, # --with-wal-blocksize, 8kB by default
|
# wal_blocksize => 8, # --with-wal-blocksize, 8kB by default
|
||||||
# wal_segsize => 16, # --with-wal-segsize, 16MB by default
|
# wal_segsize => 16, # --with-wal-segsize, 16MB by default
|
||||||
ldap => 1, # --with-ldap
|
ldap => 1, # --with-ldap
|
||||||
nls => undef, # --enable-nls=<path>
|
extraver => undef, # --with-extra-version=<string>
|
||||||
tcl => undef, # --with-tls=<path>
|
nls => undef, # --enable-nls=<path>
|
||||||
perl => undef, # --with-perl
|
tcl => undef, # --with-tls=<path>
|
||||||
python => undef, # --with-python=<path>
|
perl => undef, # --with-perl
|
||||||
openssl => undef, # --with-ssl=<path>
|
python => undef, # --with-python=<path>
|
||||||
uuid => undef, # --with-ossp-uuid
|
openssl => undef, # --with-ssl=<path>
|
||||||
xml => undef, # --with-libxml=<path>
|
uuid => undef, # --with-ossp-uuid
|
||||||
xslt => undef, # --with-libxslt=<path>
|
xml => undef, # --with-libxml=<path>
|
||||||
iconv => undef, # (not in configure, path to iconv)
|
xslt => undef, # --with-libxslt=<path>
|
||||||
zlib => undef # --with-zlib=<path>
|
iconv => undef, # (not in configure, path to iconv)
|
||||||
|
zlib => undef # --with-zlib=<path>
|
||||||
};
|
};
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
Loading…
Reference in New Issue
Block a user