citusdata/pg_shard — pull request #45 by jasonmp85 (2014-12-27 00:15:46+00:00)
Title: Add conditional to detect in-tree build

Other modules in contrib have a block like this. Because pg_shard uses libpq, it is listed as a prereq that needs to be built first (for an in-tree build this is important): postgres_fdw does the same.

See citusdata/postgres@2e335bd for how this is used.

Resolves #44