1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00

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
This commit is contained in:
Peter Eisentraut
2020-03-04 08:05:33 +01:00
parent d677550493
commit 0ad6f848ee
9 changed files with 60 additions and 28 deletions

13
configure vendored
View File

@ -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