1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

Further fix install program detection

The $(or) make function was introduced in GNU make 3.81, so the
previous coding didn't work in 3.80.  Write it differently, and
improve the variable naming to make more sense in the new coding.
This commit is contained in:
Peter Eisentraut
2012-06-28 20:05:36 +03:00
parent 39715af23a
commit dcd5af6c34
3 changed files with 8 additions and 7 deletions

6
configure vendored
View File

@ -693,7 +693,7 @@ MKDIR_P
AWK AWK
LN_S LN_S
TAR TAR
INSTALL_ install_bin
INSTALL_DATA INSTALL_DATA
INSTALL_SCRIPT INSTALL_SCRIPT
INSTALL_PROGRAM INSTALL_PROGRAM
@ -6956,8 +6956,8 @@ test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
# a relative path to it in each makefile where it subsitutes it. This clashes # a relative path to it in each makefile where it subsitutes it. This clashes
# with our Makefile.global concept. This workaround helps. # with our Makefile.global concept. This workaround helps.
case $INSTALL in case $INSTALL in
*install-sh*) INSTALL_='';; *install-sh*) install_bin='';;
*) INSTALL_=$INSTALL;; *) install_bin=$INSTALL;;
esac esac

View File

@ -814,10 +814,10 @@ AC_PROG_INSTALL
# a relative path to it in each makefile where it subsitutes it. This clashes # a relative path to it in each makefile where it subsitutes it. This clashes
# with our Makefile.global concept. This workaround helps. # with our Makefile.global concept. This workaround helps.
case $INSTALL in case $INSTALL in
*install-sh*) INSTALL_='';; *install-sh*) install_bin='';;
*) INSTALL_=$INSTALL;; *) install_bin=$INSTALL;;
esac esac
AC_SUBST(INSTALL_) AC_SUBST(install_bin)
AC_PATH_PROG(TAR, tar) AC_PATH_PROG(TAR, tar)
AC_PROG_LN_S AC_PROG_LN_S

View File

@ -289,8 +289,9 @@ BZIP2 = bzip2
# Installation. # Installation.
install_bin = @install_bin@
install_sh = $(SHELL) $(top_srcdir)/config/install-sh -c install_sh = $(SHELL) $(top_srcdir)/config/install-sh -c
INSTALL = $(if $(use_install_sh),$(install_sh),$(or @INSTALL_@,$(install_sh))) INSTALL = $(if $(use_install_sh),$(install_sh),$(if $(install_bin),$(install_bin),$(install_sh)))
INSTALL_SCRIPT_MODE = 755 INSTALL_SCRIPT_MODE = 755
INSTALL_DATA_MODE = 644 INSTALL_DATA_MODE = 644