mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
add patch from Matthew Vanecek <mevanecek@yahoo.com> for pg_config
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5830 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
11
configure.in
11
configure.in
@@ -209,9 +209,15 @@ AC_ARG_ENABLE( profile,
|
||||
AC_ARG_ENABLE( sql,
|
||||
[ --enable-sql compile with sql support],
|
||||
[
|
||||
PG_CONFIG=`which pg_config`
|
||||
|
||||
if test "x$PG_CONFIG" = "x" ; then
|
||||
PG_CONFIG="/usr/lib/postgresql/bin/pg_config"
|
||||
fi
|
||||
|
||||
if test "x$enableval" != "xno" ; then
|
||||
|
||||
PGSQL_CFLAGS=`/usr/lib/postgresql/bin/pg_config --includedir`
|
||||
PGSQL_CFLAGS=`${PG_CONFIG} --includedir`
|
||||
if test "x$PGSQL_CFLAGS" != x; then
|
||||
CFLAGS="${CFLAGS} -I${PGSQL_CFLAGS}"
|
||||
fi
|
||||
@@ -238,7 +244,8 @@ AC_ARG_ENABLE( sql,
|
||||
fi
|
||||
|
||||
saved_LIBS="$LIBS"
|
||||
PGSQL_LIBS=`/usr/lib/postgresql/bin/pg_config --libdir`
|
||||
|
||||
PGSQL_LIBS=`${PG_CONFIG} --libdir`
|
||||
if test "x$PGSQL_LIBS" != x; then
|
||||
LIBS="-L${PGSQL_LIBS} -lpq $LIBS"
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user