Add ${with_pgsql}include/postgresql/ to include path
Ondřej Surý
7 years ago
0 | From: =?utf-8?q?Ond=C5=99ej_Sur=C3=BD?= <ondrej@sury.org> | |
1 | Date: Tue, 25 Oct 2016 12:33:27 +0200 | |
2 | Subject: Add ${with_pgsql}include/postgresql/ to include path | |
3 | ||
4 | --- | |
5 | configure.ac | 4 +++- | |
6 | 1 file changed, 3 insertions(+), 1 deletion(-) | |
7 | ||
8 | diff --git a/configure.ac b/configure.ac | |
9 | index 7afb96d..3b38803 100644 | |
10 | --- a/configure.ac | |
11 | +++ b/configure.ac | |
12 | @@ -919,7 +919,9 @@ case "$with_pgsql" in | |
13 | LIB_PGSQL_DIR=$LIB_PGSQL | |
14 | LIB_PGSQL="$LIB_PGSQL -lpq" | |
15 | ||
16 | - if test -d ${with_pgsql}/include/pgsql; then | |
17 | + if test -d ${with_pgsql}/include/postgresql/; then | |
18 | + CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/include/postgresql" | |
19 | + elif test -d ${with_pgsql}/include/pgsql; then | |
20 | CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/include/pgsql" | |
21 | elif test -d ${with_pgsql}/pgsql/include; then | |
22 | CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/pgsql/include" |