diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2012-06-27 21:21:18 +0300 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2012-06-27 21:22:41 +0300 |
commit | f7867154129781ee1522344bef50890c01f2b47a (patch) | |
tree | 220d4c78f48ca136e25b856fb894362529bd8fb6 | |
parent | a8f97b39c70e831ced842eb7e41f810bee63e431 (diff) | |
download | postgresql-f7867154129781ee1522344bef50890c01f2b47a.tar.gz postgresql-f7867154129781ee1522344bef50890c01f2b47a.zip |
Fix install program detection
configure handles INSTALL as a substitution variable specially, and
apparently it gets confused when it's set to empty. Use INSTALL_
instead as a workaround to avoid the issue.
-rwxr-xr-x | configure | 5 | ||||
-rw-r--r-- | configure.in | 4 | ||||
-rw-r--r-- | src/Makefile.global.in | 2 |
3 files changed, 8 insertions, 3 deletions
diff --git a/configure b/configure index fd297702051..1661be7d29f 100755 --- a/configure +++ b/configure @@ -693,6 +693,7 @@ MKDIR_P AWK LN_S TAR +INSTALL_ INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM @@ -6955,9 +6956,11 @@ test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' # a relative path to it in each makefile where it subsitutes it. This clashes # with our Makefile.global concept. This workaround helps. case $INSTALL in - *install-sh*) INSTALL='';; + *install-sh*) INSTALL_='';; + *) INSTALL_=$INSTALL;; esac + # Extract the first word of "tar", so it can be a program name with args. set dummy tar; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 diff --git a/configure.in b/configure.in index 01869305b91..5e5318b9b7e 100644 --- a/configure.in +++ b/configure.in @@ -814,8 +814,10 @@ AC_PROG_INSTALL # a relative path to it in each makefile where it subsitutes it. This clashes # with our Makefile.global concept. This workaround helps. case $INSTALL in - *install-sh*) INSTALL='';; + *install-sh*) INSTALL_='';; + *) INSTALL_=$INSTALL;; esac +AC_SUBST(INSTALL_) AC_PATH_PROG(TAR, tar) AC_PROG_LN_S diff --git a/src/Makefile.global.in b/src/Makefile.global.in index 97dea8a0581..1e61e73b0df 100644 --- a/src/Makefile.global.in +++ b/src/Makefile.global.in @@ -290,7 +290,7 @@ BZIP2 = bzip2 # Installation. 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),$(or @INSTALL_@,$(install_sh))) INSTALL_SCRIPT_MODE = 755 INSTALL_DATA_MODE = 644 |