mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 12:34:21 +00:00
Set DESTDIR if relative loading
When relative loading, `prefix` makes no sense actually. Use the given (or default) path as `DESTDIR` instead. This change affects only when the relative loading is enabled and the destdir is not given, and does not change the final installation path, but makes the configuration options simpler a little.
This commit is contained in:
parent
806e554cc0
commit
d7cfd275f8
Notes:
git
2025-11-30 06:09:30 +00:00
@ -4753,6 +4753,11 @@ AC_ARG_WITH(destdir,
|
||||
[DESTDIR="$withval"])
|
||||
AC_SUBST(DESTDIR)
|
||||
|
||||
AS_IF([test "x$load_relative:$DESTDIR" = xyes:], [
|
||||
AS_IF([test "x$prefix" = xNONE], [DESTDIR="$ac_default_prefix"], [DESTDIR="$prefix"])
|
||||
prefix=/.
|
||||
])
|
||||
|
||||
AC_OUTPUT
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user