diff options
author | Bruce Momjian <bruce@momjian.us> | 2004-05-17 19:14:47 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2004-05-17 19:14:47 +0000 |
commit | 4307ca2a4073229a1d323edb53d56c049f952fce (patch) | |
tree | a035137d04be85470e0fd63298e3866386b7b277 /configure.in | |
parent | d14db1321bee5fe07ed6e16c4368894e00e2b00d (diff) |
Improve configure win32 link test to run from config.status.
Andrew Dunstan
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/configure.in b/configure.in index 2158d5ab6a1..72f3e2675ae 100644 --- a/configure.in +++ b/configure.in @@ -1,5 +1,5 @@ dnl Process this file with autoconf to produce a configure script. -dnl $PostgreSQL: pgsql/configure.in,v 1.348 2004/05/13 22:59:14 momjian Exp $ +dnl $PostgreSQL: pgsql/configure.in,v 1.349 2004/05/17 19:14:47 momjian Exp $ dnl dnl Developers, please strive to achieve this order: dnl @@ -1236,22 +1236,26 @@ AC_CONFIG_LINKS([ src/Makefile.port:src/makefiles/Makefile.${template} ]) -AC_CONFIG_HEADERS([src/include/pg_config.h], -[ -# Update timestamp for pg_config.h (see Makefile.global) -echo >src/include/stamp-h -]) - -AC_OUTPUT - +case $host_os in mingw*) +AC_OUTPUT_COMMANDS([ # Links sometimes fail undetected on Mingw - # so here we detect it and warn the user -case $host_os in mingw*) for FILE in "$CONFIG_LINKS" do # test -e works for symlinks in the MinGW console - test -e `expr "$FILE" : '\([^:]*\)'` || AC_MSG_WARN([*** link for $FILE - please fix by hand]) + # We can't call AC_MSG_WARN from here, so we expand it + test -e `expr "$FILE" : '\(^:*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE - please fix by hand" >&5 +echo "$as_me: WARNING: *** link for $FILE - please fix by hand" >&2;} done +]) ;; esac +AC_CONFIG_HEADERS([src/include/pg_config.h], +[ +# Update timestamp for pg_config.h (see Makefile.global) +echo >src/include/stamp-h +]) + +AC_OUTPUT + |