Index: PoPy/ChangeLog diff -u PoPy/ChangeLog:1.27 PoPy/ChangeLog:1.28 --- PoPy/ChangeLog:1.27 Thu Aug 3 12:16:25 2000 +++ PoPy/ChangeLog Sat Aug 5 10:21:06 2000 @@ -1,3 +1,9 @@ +2000-08-05 Federico Di Gregorio + + * configure.in: fixed bug in --with-postgres-libraries switch. now + the library path is correctly added to LDFLAGS *before* checking + for libpq. + 2000-08-03 Federico Di Gregorio * Makefile.pre.in: defines VERSION from POPY_VERSION in Index: PoPy/configure.in diff -u PoPy/configure.in:1.10 PoPy/configure.in:1.11 --- PoPy/configure.in:1.10 Thu Aug 3 12:07:14 2000 +++ PoPy/configure.in Sat Aug 5 10:21:06 2000 @@ -8,11 +8,13 @@ dnl postgresql headers and libraries (by default in /usr/lib and dnl /usr/include/postgresql, can be changed with --with-postgres-* options) -AC_ARG_WITH(postgres-libraries, [ --with-postgres-libraries=DIR PostgreSQL libs in DIR [/usr/lib]], PGSQLLIBS="-L $withval", PGSQLLIBS="") +AC_ARG_WITH(postgres-libraries, [ --with-postgres-libraries=DIR PostgreSQL libs in DIR [/usr/lib]], PGSQLLIBS="-L$withval", PGSQLLIBS="") AC_ARG_WITH(postgres-includes, [ --with-postgres-includes=DIR PostgreSQL includes in DIR [/usr/include/postgresql]], PGSQLFLAGS="-I$withval", PGSQLFLAGS="-I/usr/include/postgresql") +LDFLAGS="$PGSQLLIBS $LDFLAGS" + AC_CHECK_LIB(pq, PQconnectStart, PGSQLLIBS="$PGSQLLIBS -lpq", - AC_MSG_ERROR(can't build without PostgreSQL libraries)) + AC_MSG_ERROR(can't build without PostgreSQL libraries), -lcrypt) AC_SUBST(PGSQLFLAGS) AC_SUBST(PGSQLLIBS)