summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-03-07 08:37:59 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-03-07 08:37:59 +0000
commit4d215cd9d3e0c4ea8ba802aa87773d6578c45a15 (patch)
tree0726d5ac3dbee381503921a9a6016c6dea786115 /configure.in
parent73d2362580ad40c267419a31cc1fd1bf550760c8 (diff)
2000-03-07
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in16
1 files changed, 7 insertions, 9 deletions
diff --git a/configure.in b/configure.in
index 7eae4b2..e577954 100644
--- a/configure.in
+++ b/configure.in
@@ -323,20 +323,18 @@ else
fi
dnl default value for $KANJI
-AC_SUBST(DEFAULT_KCODE)
+DEFAULT_KCODE="KCODE_NONE"
+
AC_ARG_WITH(default-kcode,
[--with-default-kcode=CODE specify default value for \$KCODE (utf8|euc|sjis|none)],
[case $withval in
- utf8) AC_DEFINE(DEFAULT_KCODE, KCODE_UTF8)
- DEFAULT_KCODE="KCODE_UTF8";;
- euc) AC_DEFINE(DEFAULT_KCODE, KCODE_EUC)
- DEFAULT_KCODE="KCODE_EUC";;
- sjis) AC_DEFINE(DEFAULT_KCODE, KCODE_SJIS)
- DEFAULT_KCODE="KCODE_SJIS";;
- none) AC_DEFINE(DEFAULT_KCODE, KCODE_NONE)
- DEFAULT_KCODE="KCODE_NONE";;
+ utf8) DEFAULT_KCODE="KCODE_UTF8";;
+ euc) DEFAULT_KCODE="KCODE_EUC";;
+ sjis) DEFAULT_KCODE="KCODE_SJIS";;
+ none) DEFAULT_KCODE="KCODE_NONE";;
*) AC_MSG_WARN($withval is not valid kcode; ignored);;
esac])
+AC_DEFINE_UNQUOTED(DEFAULT_KCODE, $DEFAULT_KCODE)
dnl wheather use dln_a_out ot not
AC_ARG_WITH(dln-a-out,