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

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.
This commit is contained in:
Peter Eisentraut
2012-06-27 21:21:18 +03:00
parent a8f97b39c7
commit f786715412
3 changed files with 8 additions and 3 deletions

5
configure vendored
View File

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