Граф коммитов

421 Коммитов

Автор SHA1 Сообщение Дата
nobu b5490da26b * configure.in (VENDOR_DIR): use LIBDIR instead of PREFIX as well as
SITE_DIR.  a patch from Richard Brown <rbrown AT exherbo.org> in
  [ruby-core:17129].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-07 13:15:04 +00:00
nobu 126abc5c47 * configure.in (CFLAGS, CXXFLAGS): append default flags.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-07 07:06:19 +00:00
nobu a76288cfc7 * configure.in (CFLAGS, CXXFLAGS): include additional flags to
CFLAGS and CXXFLAGS while configuration.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-04 04:07:01 +00:00
nobu ccaed588cc * Makefile.in, configure.in (warnflags): defaulted to -Wall
-Wno-parentheses with gcc.  [ruby-dev:34810]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-31 06:58:11 +00:00
nobu 121ae83741 * configure.in (MINIRUBY): should not include extension library path.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-11 08:57:40 +00:00
nobu f3ad9bf9b3 * configure.in (MINIRUBY), common.mk (RUBYOPT): add purelib.rb.
[ruby-core:16642]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16331 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-08 07:41:23 +00:00
shyouhei 31049a6fd6 * configure.in: use AC_USE_SYSTEM_EXTENSIONS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-22 07:03:32 +00:00
nobu df5b0f317b * configure.in (struct timespec): needs time.h according to POSIX.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-22 06:25:05 +00:00
nobu b0c77fe85b * Makefile.in, common.mk, configure.in, {win32,bcc32}/Makefile.sub
(MINIOBJS, ARCHMINIOBJS): separated.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-03 03:56:07 +00:00
nobu 4820648521 * configure.in (cflags): expand at compile time.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-02 21:18:59 +00:00
nobu 05da1ec22d * configure.in: get rid of empty expansion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-01 05:43:40 +00:00
nobu 6b808e66af * configure.in: quoted.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-01 04:07:25 +00:00
nobu 54e792ee6f * configure.in: _setjmp is available but _longjmp is not on mingw.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-01 02:36:21 +00:00
nobu dc8359969e * configure.in: __builtin_setjmp cannot handle a variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-31 18:20:42 +00:00
nobu b39676f6a9 * configure.in (RUBY_SETJMP, RUBY_LONGJMP, RUBY_JMP_BUF): prefers
__builtin_setjmp, _setjmp over setjmp and sigsetjmp.
  [ruby-core:16023], [ruby-core:16086]

* configure.in (--with-setjmp-type): new option to override the
  default rule in the above.

* eval_intern.h (ruby_setjmp, ruby_longjmp), gc.c (rb_setjmp),
  vm_core.h (rb_jmpbuf_t): use RUBY_SETJMP, RUBY_LONGJMP and
  RUBY_JMP_BUF.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-31 17:58:41 +00:00
nobu 9a421e5b7e * configure.in: check for ssize_t. [ruby-dev:34184]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15864 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-31 09:42:44 +00:00
akr 0ef84dcefc * io.c: IO.copy_stream implemented. [ruby-dev:33843]
* thread.c (rb_fd_select): new function.

* configure.in (sys/sendfile.h): check the header file.
  (sendfile): check the function.
  (pread): check the function.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-30 06:38:05 +00:00
nobu 1b6572295a * configure.in: sitearch should use target_cpu. [ruby-core:15986]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-24 01:25:56 +00:00
nobu a4394e3f49 * configure.in: unset GREP_OPTIONS. [ruby-core:15918]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-17 07:41:12 +00:00
tadf 6125552c27 both complex and rational are now builtin classes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-16 00:23:43 +00:00
nobu 7476940582 * configure.in (RUBY_LIB_PREFIX): fix for prefix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-14 07:59:25 +00:00
nobu e5fb40c4fa * configure.in (RUBY_LIB_PREFIX): use libdir.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-14 06:49:08 +00:00
naruse 668af7e99d * configure.in (int8_t, uint8_t, int16_t, uint16_t int32_t,
uint32_t int64_t, uint64_t, int128_t, uint128_t,
  intptr_t, uintptr_t): check if defined.

* win32/Makefile.sub: follow configure.in.

* ext/digest/defs.h: remove checks for uint8_t, uint32_t and uint64_t.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-14 01:47:02 +00:00
nobu 4b31c84dae * configure.in (RUBY_CHECK_VARTYPE): should not indent preprocessor
directives.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-14 01:12:32 +00:00
nobu fab87736fd * trunk/configure.in (AC_CHECK_HEADERS): stdint.h is not needed to check.
* trunk/configure.in (rb_cv_type_uint32_t): unqouted.  [ruby-dev:34030]

* trunk/string.c (hash): use inttypes.h instead of stdint.h.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-13 05:14:21 +00:00
nobu db49143cda * configure.in (stdint.h): check if presence.
* configure.in (uint32_t): check if defined.

* string.c (hash): fix for portability.  [ruby-dev:34020]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-12 16:45:28 +00:00
nobu e16fddf1a9 * configure.in (RPATHFLAG): -R option of HP-UX ld is not for runtime
load path.  [ruby-list:44600]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-20 15:01:36 +00:00
nobu 4804658649 * configure.in (ftruncate): check if available.
* file.c (rb_file_truncate): check if ftruncate instead of truncate.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-14 17:42:27 +00:00
nobu 82f631ac57 * configure.in (sigsetmask): check when signal semantics is not POSIX.
* signal.c (USE_TRAP_MASK): set true if sigprocmask or sigsetmask is
  available.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-14 17:40:56 +00:00
akr b160d23c68 * math.c (math_cbrt): new method Math.cbrt.
* configure.in (cbrt): check for replacement functions.

* missing/cbrt.c: new file.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-09 09:36:03 +00:00
akr 14373fc4db * 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@15388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-07 01:43:43 +00:00
nobu b00bc5f2a8 * configure.in (darwin): NSIG is not defined if _XOPEN_SOURCE > 500L.
[ruby-dev:33584]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-04 07:44:26 +00:00
nobu 3940857f2b * configure.in (darwin): disabled fat-binary support which confuses
configure much, since ``universal'' implies hidden cross-compiling.
  TODO: ruby and libruby.bundle might be possible to bound with `lipo'
  after builds for each archs.  Anyway, config.h and rbconfig.rb must
  be separated definitely at least.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-02 00:53:41 +00:00
nobu cb355eebf0 * configure.in (darwin): ucontext on PowerPC MacOS X 10.5 is broken.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-01 12:42:40 +00:00
nobu 3fb0815d8c * configure.in (darwin): _XOPEN_SOURCE is necessary to make ucontext_t
consistent with the library implementation of MacOS X 10.5.
  [ruby-dev:33461]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-01 03:43:48 +00:00
naruse 1a65f34057 * configure.in, common.mk: fix rule for dmytranscode.o.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-29 10:40:34 +00:00
matz 65a8185eb2 * configure.in (MINIRUBY): remove -I$(EXTOUT)/$(arch) from
MINIRUBY since miniruby might not be able to load DLL.

* test/ruby/test_m17n.rb: move tests from bootstrap test.

* encoding.c (enc_find): should check name if ASCII compatible.

* string.c (rb_str_end_with): should check character boundary.

* encoding.c (rb_enc_compatible): encoding must be ASCII
  compatible before checking ENC_CODERANGE_7BIT.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-22 03:59:53 +00:00
nobu df28713ee3 * configure.in (sigsetjmp): check if available.
* eval.c, gc.c (setjmp): do not use _setjmp if sigsetjmp is available.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-19 02:21:55 +00:00
nobu 4239bc0501 * configure.in: Remove wrong assumptions about Cygwin. a patch from
Corinna Vinschen in [ruby-Bugs-17018].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-19 02:10:14 +00:00
nobu 2e8965863d * common.mk (OBJS): moved encoding.o from COMMONOBJS.
* common.mk (dmyencoding.o): added.  [ruby-dev:33099]

* configure.in, {win,bcc}32/Makefile.sub (MINIOBJS): added
  dmyencoding.o.

* dmyencoding.c (rb_locale_charmap): returns nil for miniruby.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-14 16:19:02 +00:00
matz 7d8c42297e * configure.in (setup): add -I$(EXTOUT)/$(arch) to MINIRUBY.
* bootstraptest/runner.rb (main): expand -I directory path.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-14 14:32:46 +00:00
nobu 825bfef2ea * configure.in: AC_TRY_CPP has no FUNCTION-BODY while AC_TRY_COMPILE
has.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-11 03:35:59 +00:00
nobu 1af31107c9 * configure.in: moved broken syscall checks from process.c etc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-11 03:27:46 +00:00
akr 0352d32f05 * util.c (ruby_strtoul): locale independent strtoul is implemented to
avoid "i".to_i(36) cause 0 under tr_TR locale.
  This is newly implemented, not a copy of missing/strtoul.c.

* include/ruby/ruby.h (ruby_strtoul): declared.
  (STRTOUL): defined to use ruby_strtoul.

* bignum.c, pack.c, ext/socket/socket.c: use STRTOUL.

* configure.in (strtoul): don't check.

* missing/strtoul.c: removed.

* include/ruby/missing.h (strtoul): removed.

* common.mk (strtoul.o): removed.

* LEGAL (missing/strtoul.c): removed.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-02 06:24:27 +00:00
akr 7e2fdd4cc8 * missing/strcasecmp.c: removed. Ruby don't use locale dependent
strcasecmp.

* missing/strncasecmp.c: ditto.

* configure.in: don't check strcasecmp and strncasecmp.

* LEGAL: missing/strcasecmp.c and missing/strncasecmp.c removed.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-02 02:36:58 +00:00
nobu 74dd31fadf * trunk/common.mk: not use -I$(srcdir)/lib with $(MINIRUBY) for cross
compiling.

* configure.in, {win,bcc}32/Makefile.sub (MINIRUBY): -I$(srcdir)/lib
  moved.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-30 21:50:40 +00:00
naruse 6c2849dd46 * configure.in: rm largefile.h.
* common.mk: clean golf, conf*, preludes, and so on.

* enc/depend: silent and ignore error for rm.

* enc/Makefile.in: should define prefix and exec_prefix.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-30 02:00:59 +00:00
matz 5458a384ea * ext/socket/socket.c: a patch to support IRIX from Andrew
Thompson <andrew@hijacked.us> in [ruby-core:14447].

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-27 01:47:11 +00:00
nobu d70a20a510 * configure.in (TIMEZONE_VOID): typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-25 13:55:45 +00:00
nobu d7f9d3bfa6 * configure.in (BASERUBY): delayed error until BASERUBY is used.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-25 03:07:55 +00:00