* configure.in (signbit): signbit is a macro in C99.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
mrkn 2010-04-14 09:29:29 +00:00
Родитель 8e7a682be0
Коммит 55f7857a77
2 изменённых файлов: 16 добавлений и 1 удалений

Просмотреть файл

@ -1,3 +1,7 @@
Wed Apr 14 18:23:00 2010 Kenta Murata <mrkn@mrkn.jp>
* configure.in (signbit): signbit is a macro in C99.
Wed Apr 14 17:56:06 2010 Nobuyoshi Nakada <nobu@ruby-lang.org> Wed Apr 14 17:56:06 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* io.c (io_shift_cbuf): should terminate. * io.c (io_shift_cbuf): should terminate.

Просмотреть файл

@ -1116,8 +1116,19 @@ AS_CASE([$rb_cv_broken_glibc_ia64_erfc],[yes],[ac_cv_func_erf=no])
AC_REPLACE_FUNCS(dup2 memmove strerror\ AC_REPLACE_FUNCS(dup2 memmove strerror\
strchr strstr crypt flock\ strchr strstr crypt flock\
isnan finite isinf hypot acosh erf tgamma lgamma_r cbrt signbit \ isnan finite isinf hypot acosh erf tgamma lgamma_r cbrt \
strlcpy strlcat) strlcpy strlcat)
AC_CACHE_CHECK(for signbit, rb_cv_have_signbit,
[AC_TRY_COMPILE([
#include <math.h>
], [int v = signbit(-0.0);],
rb_cv_have_signbit=yes,
rb_cv_have_signbit=no)])
if test "$rb_cv_have_signbit" = yes; then
AC_DEFINE(HAVE_SIGNBIT)
else
AC_LIBOBJ([signbit])
fi
AC_CHECK_FUNCS(fmod killpg wait4 waitpid fork spawnv syscall chroot getcwd eaccess\ AC_CHECK_FUNCS(fmod killpg wait4 waitpid fork spawnv syscall chroot getcwd eaccess\
truncate ftruncate chsize times utimes utimensat fcntl lockf lstat\ truncate ftruncate chsize times utimes utimensat fcntl lockf lstat\
link symlink readlink readdir_r fsync fdatasync\ link symlink readlink readdir_r fsync fdatasync\