added pg_config support; factored CFLAGS and LIBS as separate steps. #81
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The PostgreSQL installations on Amazon Linux have a variety of annoying issues.
But (fortunately!), pg_config does work just fine... so, the proposed changes in this pull request are:
This solves the problem of screwed-up pkg-config entries more generally for Linux distributions outside just Amazon Linux.
And for Amazon Linux in particular, this solves the annoying installation issues.
(I've also included a separate message for Amazon Linux users since there is no generic postgresql-devel package... instead you must specify the version, e.g. postgresql94-devel.)
I'm open to suggestions for other ways to make pkg-config and pg_config play nicely together in the case where both might be installed on a single system, but the pkg-config entries be erroneous or missing (as is the case for most Amazon Linux users).
Closes #22.