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.
This commit is contained in:
Nobuyoshi Nakada 2021-12-06 17:53:37 +09:00 committed by GitHub
parent 9c0c66f721
commit 5ce3272e51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
Notes: git 2021-12-06 17:53:59 +09:00
Merged: https://github.com/ruby/ruby/pull/5220

Merged-By: nobu <nobu@ruby-lang.org>
1 changed files with 9 additions and 1 deletions

View File

@ -6,4 +6,12 @@ case "$0" in
*) srcdir="";; *) srcdir="";;
esac 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"}