Skip to content

Commit d7cfd27

Browse files
committed
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.
1 parent 806e554 commit d7cfd27

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

configure.ac

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4753,6 +4753,11 @@ AC_ARG_WITH(destdir,
47534753
[DESTDIR="$withval"])
47544754
AC_SUBST(DESTDIR)
47554755

4756+
AS_IF([test "x$load_relative:$DESTDIR" = xyes:], [
4757+
AS_IF([test "x$prefix" = xNONE], [DESTDIR="$ac_default_prefix"], [DESTDIR="$prefix"])
4758+
prefix=/.
4759+
])
4760+
47564761
AC_OUTPUT
47574762
}
47584763

0 commit comments

Comments
 (0)