summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-02-07 01:43:43 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-02-07 01:43:43 +0000
commit18142f73434def2fb865a6dd897501c9cfc28293 (patch)
tree966d984fadcafb2d9046a161b1e170d99904a592 /configure.in
parent6fc52fe215b00ed7e908b73564525bee08b00f0f (diff)
downloadruby-18142f73434def2fb865a6dd897501c9cfc28293.tar.gz
ruby-18142f73434def2fb865a6dd897501c9cfc28293.tar.xz
ruby-18142f73434def2fb865a6dd897501c9cfc28293.zip
* math.c (math_gamma): new method Math.gamma.
(math_lgamma): new method Math.lgamma. * include/ruby/missing.h (tgamma): declared unless HAVE_TGAMMA. (lgamma_r): declared unless HAVE_LGAMMA_R. * configure.in (tgamma): check for replacement funtions. (lgamma_r): ditto. * missing/tgamma.c: new file. based on gamma.c from "C-gengo niyoru saishin algorithm jiten" (New Algorithm handbook in C language) (Gijyutsu hyouron sha, Tokyo, 1991) by Haruhiko Okumura. * missing/lgamma_r.c: ditto. * LEGAL (missing/tgamma.c): describe as public domain. (missing/lgamma_r.c): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index d490f8776..28e85f39e 100644
--- a/configure.in
+++ b/configure.in
@@ -649,7 +649,8 @@ esac
AC_FUNC_MEMCMP
AC_REPLACE_FUNCS(dup2 memmove strerror strftime\
strchr strstr crypt flock vsnprintf\
- isnan finite isinf hypot acosh erf strlcpy strlcat)
+ isnan finite isinf hypot acosh erf tgamma lgamma_r \
+ strlcpy strlcat)
AC_CHECK_FUNCS(fmod killpg wait4 waitpid fork spawnv syscall chroot fsync getcwd eaccess\
truncate chsize times utimes utimensat fcntl lockf lstat\
link symlink readlink\