elif test -r $i/include/postgresql/libpq-fe.h; then
POSTGRESQL_DIR=$i
POSTGRESQL_INC_DIR=$i/include/postgresql
elif test -r $i/include/postgresql/pgsql/libpq-fe.h; then
POSTGRESQL_INC_DIR=$i/include/postgresql/pgsql
fi
done