diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-11 05:17:34 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-11 05:17:34 +0000 |
commit | 8e295d4c1799d637080bfd10a99d08574a357acf (patch) | |
tree | 019445f960cc81aba78fbfd3fac09d7bd8c93e56 /configure.in | |
parent | 9ad26a3d24d359bb9a07eb8926df933f0a622f99 (diff) | |
download | ruby-8e295d4c1799d637080bfd10a99d08574a357acf.tar.gz |
* configure.in (RUBY_REPLACE_TYPE): define typename to default
type if the latter is found.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.in b/configure.in index bc0a2c0e20..36162dce16 100644 --- a/configure.in +++ b/configure.in @@ -524,7 +524,8 @@ AC_DEFUN([RUBY_REPLACE_TYPE], [dnl t=INT;; esac rb_cv_[$1]_convertible=${u}${t}]) - m4_ifval([$2], AC_DEFINE_UNQUOTED(rb_[$1], $n)) + test "${AS_TR_SH(ac_cv_type_[$1])}" = "yes" && n="$1" + AC_DEFINE_UNQUOTED(rb_[$1], $n) AC_DEFINE_UNQUOTED([$3]2NUM[(v)], [${rb_cv_[$1]_convertible}2NUM(v)]) AC_DEFINE_UNQUOTED(NUM2[$3][(v)], [NUM2${rb_cv_[$1]_convertible}(v)]) AC_DEFINE_UNQUOTED(PRI_[$3]_PREFIX, |