mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
configure.in: remove unnecessary qualifier
* configure.in (RUBY_DEFINT): remove unnecessary unsigned qualifier from preprocessing symbols. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0c3a54e63b
commit
aedfee0142
1 changed files with 20 additions and 0 deletions
20
configure.in
20
configure.in
|
@ -2014,6 +2014,9 @@ fi
|
|||
|
||||
dnl RUBY_DEFINT TYPENAME, SIZE, [SIGNED-OR-UNSIGNED], [INCLUDES = DEFAULT-INCLUDES]
|
||||
AC_DEFUN([RUBY_DEFINT], [dnl
|
||||
AS_VAR_PUSHDEF([cond], [rb_defint_cond])dnl
|
||||
AS_VAR_PUSHDEF([t], [rb_defint_type])dnl
|
||||
AS_VAR_PUSHDEF([s], [rb_defint_size])dnl
|
||||
AC_CACHE_CHECK([for $1], [rb_cv_type_$1],
|
||||
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT([$4])
|
||||
typedef $1 t; int s = sizeof(t) == 42;])],
|
||||
|
@ -2028,6 +2031,17 @@ typedef $1 t; int s = sizeof(t) == 42;])],
|
|||
["$ac_cv_sizeof___int128"], [ rb_cv_type_$1="m4_if([$3], [], [], [$3 ])__int128"],
|
||||
[ rb_cv_type_$1=no])])])
|
||||
if test "${rb_cv_type_$1}" != no; then
|
||||
AS_CASE([" ${rb_cv_type_$1}"],
|
||||
[yes], [t=],
|
||||
[*" "*], [
|
||||
t=`expr " ${rb_cv_type_$1}" : ".* \(.*\)"`;
|
||||
t=AS_TR_SH($t)
|
||||
])
|
||||
cond=
|
||||
AS_CASE([$t], [__int*], [
|
||||
cond="defined HAVE_"AS_TR_CPP($t)
|
||||
echo "@%:@if $cond" >> confdefs.h
|
||||
])
|
||||
AC_DEFINE([HAVE_]AS_TR_CPP($1), 1)
|
||||
if test "${rb_cv_type_$1}" = yes; then
|
||||
m4_bmatch([$2], [^[1-9][0-9]*$], [AC_CHECK_SIZEOF([$1], 0, [AC_INCLUDES_DEFAULT([$4])])],
|
||||
|
@ -2036,7 +2050,13 @@ if test "${rb_cv_type_$1}" != no; then
|
|||
AC_DEFINE_UNQUOTED($1, [$rb_cv_type_$1])
|
||||
AC_DEFINE_UNQUOTED([SIZEOF_]AS_TR_CPP($1), [SIZEOF_]AS_TR_CPP([$rb_cv_type_$1]))
|
||||
fi
|
||||
AS_IF([test -n "$cond"], [
|
||||
echo "@%:@endif /* $cond */" >> confdefs.h
|
||||
])
|
||||
fi
|
||||
AS_VAR_POPDEF([cond])dnl
|
||||
AS_VAR_POPDEF([t])dnl
|
||||
AS_VAR_POPDEF([s])dnl
|
||||
])
|
||||
|
||||
RUBY_DEFINT(int8_t, 1)
|
||||
|
|
Loading…
Reference in a new issue