summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-12-06 17:53:37 +0900
committerGitHub <noreply@github.com>2021-12-06 17:53:37 +0900
commit5ce3272e513e0dafedcc40f121e2d71bef3a3688 (patch)
tree6d1e4ed28d85fccaf58ffdda519fb87c20ba067a /autogen.sh
parent9c0c66f721d707bec88b1690fa12d5b231ae2314 (diff)
autogen.sh: Copy auxiliary files instead of symlinks with `-i`
When accessing from containers, symbolic links may not be able to reach outer file systems.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/5220 Merged-By: nobu <nobu@ruby-lang.org>
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index 44a1922cb0..f8cdf3c0c1 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -6,4 +6,12 @@ case "$0" in
*) srcdir="";;
esac
-exec ${AUTORECONF:-autoreconf} --install --symlink "$@" ${srcdir:+"$srcdir"}
+symlink='--install --symlink'
+case " $* " in
+ *" -i "*|*" --install "*)
+ # reset to copy missing standard auxiliary files, instead of symlinks
+ symlink=
+ ;;
+esac
+
+exec ${AUTORECONF:-autoreconf} ${symlink} "$@" ${srcdir:+"$srcdir"}