diff options
author | Peter Eisentraut | 2020-03-04 07:05:33 +0000 |
---|---|---|
committer | Peter Eisentraut | 2020-03-04 07:22:54 +0000 |
commit | 0ad6f848eef267489d4aee7306c16f96454b7a64 (patch) | |
tree | 225eeb4e2e6162d3b4664b47695f980cc50cf2c5 /configure | |
parent | d67755049388526cd8673aa826dc794b97345eb3 (diff) |
Move pg_upgrade's Windows link() implementation to AC_REPLACE_FUNCS
This way we can make use of it in other components as well, and it
fits better with the rest of the build system.
Discussion: https://www.postgresql.org/message-id/flat/72fff73f-dc9c-4ef4-83e8-d2e60c98df48%402ndquadrant.com
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/configure b/configure index 93ee4a29370..45dbeb4d198 100755 --- a/configure +++ b/configure @@ -15505,6 +15505,19 @@ esac fi +ac_fn_c_check_func "$LINENO" "link" "ac_cv_func_link" +if test "x$ac_cv_func_link" = xyes; then : + $as_echo "#define HAVE_LINK 1" >>confdefs.h + +else + case " $LIBOBJS " in + *" link.$ac_objext "* ) ;; + *) LIBOBJS="$LIBOBJS link.$ac_objext" + ;; +esac + +fi + ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp" if test "x$ac_cv_func_mkdtemp" = xyes; then : $as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h |