This is what we get: $ pg_config --version PostgreSQL 10rc1
The -E flag to specify extended regular expressions apparently is not portable to all platforms, such as CentOS 4.5. Use an uglier but hopefully more portable basic regular expression in Makefiles.