summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-12-21 16:31:43 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-12-24 19:11:10 +0900
commitc87c027f18c005460746a74c07cd80ee355b16e4 (patch)
tree6ba88e4f4c35098004098e2c81c568fdfbc17913
parentacfe2f2655ab25d52c4347783c4de99fa2daaf62 (diff)
configure.in: unexpand exec_prefix in includedir
Replace `exec_prefix` in includedir as well as bindir, libdir, and so on. [Bug #18373]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/5318
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 7177d5bb8e..5a6b074f8a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3297,7 +3297,7 @@ AS_IF([test x"${exec_prefix}" != xNONE], [
RUBY_EXEC_PREFIX=$ac_default_prefix
])
pat=`echo "${RUBY_EXEC_PREFIX}" | tr -c '\012' .`'\(.*\)'
-for var in bindir libdir rubylibprefix; do
+for var in bindir includedir libdir rubylibprefix; do
eval val='"$'$var'"'
AS_CASE(["$val"], ["${RUBY_EXEC_PREFIX}"*], [val='${exec_prefix}'"`expr \"$val\" : \"$pat\"`"])
eval $var='"$val"'