diff options
author | Bruce Momjian <bruce@momjian.us> | 2004-05-13 01:45:02 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2004-05-13 01:45:02 +0000 |
commit | 550fbc6a985d77f80b52e26f219ea9c3ad334ba5 (patch) | |
tree | 70b672b9de1cfdfe14e3eb34855f09a75fe92cc8 /configure.in | |
parent | 4d924bdb462106f152b28ab7d66fcf5e5253e587 (diff) | |
download | postgresql-550fbc6a985d77f80b52e26f219ea9c3ad334ba5.tar.gz |
Warn when MinGW fails to create symlinks during configure. Report
already made to MinGW maintainers.
Andrew Dunstan
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 8947a81583..b198162ede 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.346 2004/05/11 21:57:13 momjian Exp $ +dnl $PostgreSQL: pgsql/configure.in,v 1.347 2004/05/13 01:45:02 momjian Exp $ dnl dnl Developers, please strive to achieve this order: dnl @@ -1236,6 +1236,24 @@ AC_CONFIG_LINKS([ src/Makefile.port:src/makefiles/Makefile.${template} ]) +# Links sometimes fail undetected on Mingw - +# so here we detect it and warn the user +case $host_os in mingw*) + for linktarget in \ + src/backend/port/tas.s \ + src/backend/port/dynloader.c \ + src/backend/port/pg_sema.c \ + src/backend/port/pg_shmem.c \ + src/include/dynloader.h \ + src/include/pg_config_os.h \ + src/Makefile.port + do + # test -e works for symlinks in the MinGW console + test -e $linktarget || AC_MSG_WARN([*** link for $linktarget failed - please fix by hand]) + done + ;; +esac + AC_CONFIG_HEADERS([src/include/pg_config.h], [ # Update timestamp for pg_config.h (see Makefile.global) |