summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorPeter Eisentraut2012-06-27 10:40:51 +0000
committerPeter Eisentraut2012-06-27 10:40:51 +0000
commit9db7ccae2000524b72a4052352cbb5407fb53b02 (patch)
tree8ef44910b43b12bca21aabfd3278f1c5584e9322 /configure.in
parentc60ca19de9ad777c51243605571d1d7606000f08 (diff)
Use system install program when available and usable
In a3176dac22c4cd14971e35119e245abee7649cb9 we switched to using install-sh unconditionally, because the configure check AC_PROG_INSTALL would pick up any random program named install, which has caused failure reports (http://archives.postgresql.org/pgsql-hackers/2001-03/msg00312.php). Now the configure check is much improved and should avoid false positives. It has also been shown that using a system install program can significantly reduce "make install" times, so it's worth trying.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 30e9c1ba54..01869305b9 100644
--- a/configure.in
+++ b/configure.in
@@ -809,6 +809,14 @@ if test "$PORTNAME" = "win32"; then
AC_CHECK_TOOL(WINDRES, windres, windres)
fi
+AC_PROG_INSTALL
+# When Autoconf chooses install-sh as install program it tries to generate
+# 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='';;
+esac
+
AC_PATH_PROG(TAR, tar)
AC_PROG_LN_S
AC_PROG_AWK