Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions icu4c/source/configure
Original file line number Diff line number Diff line change
Expand Up @@ -4563,6 +4563,9 @@ printf "%s\n" "no" >&6; }
PKG_CONFIG=""
fi
fi
if test -z "$PKG_CONFIG"; then
as_fn_error $? "pkg-config not found" "$LINENO" 5
fi

pkg_failed=no
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for icu-le-hb" >&5
Expand Down Expand Up @@ -4935,12 +4938,12 @@ test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'



# make sure install is relative to srcdir - if a script
if test "$srcdir" = "."; then
# If srcdir isn't just ., then (srcdir) is already prepended.
if test "${ac_install_sh}" = "${INSTALL}"; then
INSTALL="\\\$(top_srcdir)/${ac_install_sh}"
fi
# If using the included install-sh, make INSTALL work from any build dir.
if test "${ac_install_sh}" = "${INSTALL}"; then
case "$srcdir" in
.|./*|../*) INSTALL="\\\$(top_builddir)/${ac_install_sh}" ;;
*) ;;
esac
fi

# TODO(ICU-20301): Remove fallback to Python 2.
Expand Down
12 changes: 6 additions & 6 deletions icu4c/source/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -186,12 +186,12 @@ AC_PROG_INSTALL

AC_SUBST(cross_compiling)

# make sure install is relative to srcdir - if a script
if test "$srcdir" = "."; then
# If srcdir isn't just ., then (srcdir) is already prepended.
if test "${ac_install_sh}" = "${INSTALL}"; then
INSTALL="\\\$(top_srcdir)/${ac_install_sh}"
fi
# If using the included install-sh, make INSTALL work from any build dir.
if test "${ac_install_sh}" = "${INSTALL}"; then

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unchanged guard, and matching an effect in AC_PROG_INSTALL.

case "$srcdir" in
.|./*|../*) INSTALL="\\\$(top_builddir)/${ac_install_sh}" ;;

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Guard based on srcdir, similar to original code. I believe srcdir makes sense because it is used to construct the search path - and thus becomes part of the value - for install-sh.
Now any relative path instead of just ., and now prepending top_builddir instead of top_srcdir.

*) ;;
esac
fi

# TODO(ICU-20301): Remove fallback to Python 2.
Expand Down