diff -Naru libpqxx-2.5.1.org/configure libpqxx-2.5.1/configure --- libpqxx-2.5.1.org/configure 2005-05-06 11:09:52.000000000 +0100 +++ libpqxx-2.5.1/configure 2005-05-09 21:25:38.000000000 +0100 @@ -20183,73 +20183,8 @@ echo "$as_me:$LINENO: result: $cpp_pragma_message" >&5 echo "${ECHO_T}$cpp_pragma_message" >&6 -# Find PostgreSQL includes and libraries -for ac_prog in pg_config -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_path_PG_CONFIG+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $PG_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - - ;; -esac -fi -PG_CONFIG=$ac_cv_path_PG_CONFIG - -if test -n "$PG_CONFIG"; then - echo "$as_me:$LINENO: result: $PG_CONFIG" >&5 -echo "${ECHO_T}$PG_CONFIG" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - - test -n "$PG_CONFIG" && break -done - -if test -z "$PG_CONFIG" || test ! -r "$PG_CONFIG"; then - { { echo "$as_me:$LINENO: error: -PostgreSQL configuration script pg_config not found. Make sure this is in your -command path before configuring. Without it, the configure script has no way to -find the right location for the libpq library and its headers. -" >&5 -echo "$as_me: error: -PostgreSQL configuration script pg_config not found. Make sure this is in your -command path before configuring. Without it, the configure script has no way to -find the right location for the libpq library and its headers. -" >&2;} - { (exit 1); exit 1; }; } -fi -with_postgres_include=`$PG_CONFIG --includedir` -{ echo "$as_me:$LINENO: using PostgreSQL headers at $with_postgres_include" >&5 -echo "$as_me: using PostgreSQL headers at $with_postgres_include" >&6;} -with_postgres_lib=`$PG_CONFIG --libdir` -{ echo "$as_me:$LINENO: using PostgreSQL libraries at $with_postgres_lib" >&5 -echo "$as_me: using PostgreSQL libraries at $with_postgres_lib" >&6;} - - - +with_postgres_include=/usr/include/postgresql +with_postgres_lib=/usr/lib POSTGRES_LIB="-L${with_postgres_lib} -R${with_postgres_lib} -lpq" POSTGRES_INCLUDE="-I${with_postgres_include}"