mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
configure.in: no bare case statement
* configure.in (RUBY_CHECK_SIZEOF): use single test instead of split bare case statement, so that matching parentheses would match. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b78fdf1a82
commit
404cc1ae3f
1 changed files with 3 additions and 6 deletions
|
@ -736,11 +736,8 @@ static ac__type_sizeof_ *rbcv_ptr;
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
}])
|
}])
|
||||||
m4_ifval([$2][$3], [case "${AS_TR_SH(ac_cv_sizeof_$1)}" in
|
m4_ifval([$2][$3],
|
||||||
#(
|
[test "${AS_TR_SH(ac_cv_sizeof_$1)@%:@SIZEOF_}" = "${AS_TR_SH(ac_cv_sizeof_$1)}" && ]){
|
||||||
[SIZEOF_*]);;
|
|
||||||
#(
|
|
||||||
*)])
|
|
||||||
test "$universal_binary" = yes && cross_compiling=yes
|
test "$universal_binary" = yes && cross_compiling=yes
|
||||||
AC_COMPUTE_INT([t], AS_TR_CPP(SIZEOF_$1), [AC_INCLUDES_DEFAULT([$4])]
|
AC_COMPUTE_INT([t], AS_TR_CPP(SIZEOF_$1), [AC_INCLUDES_DEFAULT([$4])]
|
||||||
[${cond+$cond
|
[${cond+$cond
|
||||||
|
@ -754,7 +751,7 @@ ${cond+@%:@endif}
|
||||||
if test ${t-0} != 0; then
|
if test ${t-0} != 0; then
|
||||||
AS_TR_SH(ac_cv_sizeof_$1)="${AS_TR_SH(ac_cv_sizeof_$1)+${AS_TR_SH(ac_cv_sizeof_$1)-} }${t}"
|
AS_TR_SH(ac_cv_sizeof_$1)="${AS_TR_SH(ac_cv_sizeof_$1)+${AS_TR_SH(ac_cv_sizeof_$1)-} }${t}"
|
||||||
fi
|
fi
|
||||||
m4_ifval([$2][$3], [;; esac])
|
}
|
||||||
: ${AS_TR_SH(ac_cv_sizeof_$1)=0}
|
: ${AS_TR_SH(ac_cv_sizeof_$1)=0}
|
||||||
])
|
])
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue