summaryrefslogtreecommitdiff
path: root/src/modules/extra/pgsql_config.pl
blob: 4c56e4cf6680ae352d53df2f7f6112b308bd6914 (plain)
1
2
3
4
5
6
#!/usr/bin/perl

my $v = substr(`pg_config --version`, 11);
my($a, $b, $c) = split(/\./, $v);

print "-D PGSQL_HAS_ESCAPECONN" if(($a >= 8) and ($b >= 1) and ($c >= 4));