1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Prefer positive condition to double negative

Autoconf 2.70 seems to omit the check for the given CC,
`AC_COMPILE_IFELSE` does not know which is the cause of the
failure.
This commit is contained in:
Nobuyoshi Nakada 2021-04-17 19:08:53 +09:00
parent ed9ac03917
commit 17c3014bb7
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -486,11 +486,10 @@ done
AC_MSG_CHECKING([whether it is Android])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
@%:@ifdef __ANDROID__
@%:@error android
@%:@ifndef __ANDROID__
@%:@error Not android
@%:@endif
]], [[]])],
[AC_MSG_RESULT(no)],
[
AC_MSG_RESULT(yes)
target_os=${target_os}-android
@ -501,7 +500,8 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
AC_MSG_RESULT($rb_android_api)
RUBY_APPEND_OPTIONS(CPPFLAGS, -D__ANDROID_API__=$rb_android_api -Wno-macro-redefined)
])
])
],
[AC_MSG_RESULT(no)])
AC_SUBST(RM, ['rm -f'])
AC_SUBST(CP, ['cp'])