]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - src/modules/extra/pgsql_config.pl
Also return for 7.x series > 7.3.15, this still wants testing :p (which versions...
[user/henk/code/inspircd.git] / src / modules / extra / pgsql_config.pl
1 #!/usr/bin/perl
2
3 my $s = `pg_config --version`;
4 $s = shift;
5 $s =~ /^.*?(\d+)\.(\d+)\.(\d+).*?$/;
6 my $v = hex(sprintf("0x%02x%02x%02x", $1, $2, $3));
7 print "-D PGSQL_HAS_ESCAPECONN" if(($v >= 0x080104) or (($v >= 0x07030F) and ($v < 0x080000)));