Mercurial > hg > xemacs-beta
diff configure @ 5895:b2709239b1f6
Update Postgresql module for 2015 and MacPorts reality.
author | Stephen J. Turnbull <stephen@xemacs.org> |
---|---|
date | Mon, 04 May 2015 14:32:22 +0900 |
parents | 6eca500211f4 |
children | 2aeaf9bc7175 |
line wrap: on
line diff
--- a/configure Mon Apr 20 15:09:11 2015 -0600 +++ b/configure Mon May 04 14:32:22 2015 +0900 @@ -1917,7 +1917,11 @@ or a comma-separated list of one or more of `berkdb' and either `dbm' or `gdbm'. --with-ldap Support the LDAP protocol. - --with-postgresql Support the PostgreSQL RDBMS. + --with-postgresql Support the PostgreSQL RDBMS. Optional argument + should be the basename of the subdirectory + containing `libpq-fe.h'. The first subdirectory + found on the -I path will be used. Currently + autodetect must be used --with-modules. Mail options ------------ @@ -15600,15 +15604,27 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } - for header_dir in "" "pgsql/" "postgresql/"; do - as_ac_Header=`$as_echo "ac_cv_header_${header_dir}libpq-fe.h" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "${header_dir}libpq-fe.h" "$as_ac_Header" "$ac_includes_default" + case "$with_postgresql" in + "" | "yes" | "no" | "true" | "false" | "auto") + pg_header_dir="" ;; + *) + pg_header_dir="$with_postgresql" ;; + esac + + libpq_fe_h_file="" + for header_dir in $pg_header_dir "" "pgsql" "postgresql" "postgresql94" "postgresql-9.4" "postgresql84" "postgresql-8.4"; do + as_ac_Header=`$as_echo "ac_cv_header_${header_dir}/libpq-fe.h" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "${header_dir}/libpq-fe.h" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - libpq_fe_h_file=${header_dir}libpq-fe.h; break -fi - - - done + libpq_fe_h_file=${header_dir}/libpq-fe.h; break +fi + + + done + + if test -n "$pg_header_dir" -a "$header_dir" != "$pg_header_dir"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-postgresql=\"$pg_header_dir\" specified but not found; using \"$libpq_fe_h_file\"" >&5 +$as_echo "$as_me: WARNING: --with-postgresql=\"$pg_header_dir\" specified but not found; using \"$libpq_fe_h_file\"" >&2;} pq_libs= extra_libs=