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

480 Коммитов

Автор SHA1 Сообщение Дата
nobu 97de7d1081 * Makefile.in, win32/Makefile.sub (RMDIRS): remove directory and
parents.

* Makefile.in, win32/Makefile.sub (distclean-rdoc): added to remove
  temprary rdoc.

* Makefile.in, win32/Makefile.sub (distclean): removes extout
  directory.

* Makefile.in, win32/Makefile.sub (clean-ext): skips non-existent
  directories.

* common.mk (clean, distclean): cleans rdoc.

* configure.in (RMDIRS, RMALL): added to clean extout.

* lib/fileutils.rb (FileUtils#rmdir): added :parents option.

* lib/mkmf.rb (create_makefile): cleans installed files at clean
  instead of distclean.

* lib/mkmf.rb (create_makefile): added clean-so and clean-rb.

* lib/mkmf.rb (def init_mkmf): added DISTCLEANDIRS.

* lib/un.rb (rmdir): added -p option.

* tool/rmdirs, win32/rmdirs.bat: removes directory and the parents.

* win32/rm.bat: added -r option.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-25 02:06:29 +00:00
nobu 2d03f7274f * Makefile.in (miniruby): renames and then removes, to get rid of
EPERM on cygwin and mingw.

* Makefile.in ($(LIBRUBY_SO)): use wildcard option of objcopy.

* configure.in (DLDFLAGS): do not export all symbols.

* cygwin/GNUmakefile.in (RUBYDEF): rejects symbols prefixex with
  Init_.

* win32/mkexports.rb (Exports::Mingw): includes all symbols except for
  prefixed with Init_ as well as mswin32.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-20 06:32:36 +00:00
nobu 4e6ad7d910 * include/ruby/defines.h (RUBY_ALIAS_FUNCTION_TYPE): added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-19 08:28:28 +00:00
nobu 49e685a0af * include/ruby/defines.h (RUBY_ALIAS_FUNCTION2): added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-19 08:24:10 +00:00
yugui fe011304e7 * configure.in (VCSUP): fixed the cases for git-svn or git.
* win32/Makefile.sub (VCSUP): ditto.

* Makefile.in (up): `cd' is necessary for git and git-svn.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-17 10:40:51 +00:00
nobu 67da4aebc5 * configure.in (darwin): get rid of strange settings issue of
apple gcc port, which searches /usr/local/include always but
  /usr/local/lib not.

* ext/readline/readline.c (Init_readline): suppress warnings with
  libedit.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-17 10:20:07 +00:00
nobu 72aa4a8c46 * configure.in (Makefile): set VCS and VCSUP.
* Makefile.in, win32/Makefile.sub (up): split from common.mk.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-16 08:33:02 +00:00
nobu 5b6a192755 * configure.in (RUBY_REPLACE_TYPE): does not define rb_ prefixed
name if no default type is given.

* configure.in (RUBY_DEFINT): checks size.

* include/ruby/ruby.h (VALUE): use uintptr_t if available.

* include/ruby/ruby.h (PRI_PTRDIFF_PREFIX, PRI_SIZE_PREFIX):
  assumes usable if PRIdPTR is defined.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-16 02:41:26 +00:00
nobu ece0628ebe * configure.in, win32/Makefile.sub (MISSING): added langinfo on mingw
and mswin.

* encoding.c (rb_locale_charmap): use environments on mingw and mswin.

* missing/langinfo.c (nl_langinfo_codeset): MS-Windows Japanese
  environment uses Windows-31J derived from Shift_JIS, not EUC-JP.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-15 04:10:16 +00:00
nobu c6827f709c * configure.in (cygwin): needs properly implemented nl_langinfo().
[ruby-core:21110]

* missing/langinfo.c: added as suggested at [ruby-core:21015], from
  http://www.cl.cam.ac.uk/~mgk25/ucs/langinfo.c.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-05 08:51:44 +00:00
nobu ef7057fe2f * encoding.c (rb_filesystem_encoding, rb_locale_charmap): uses
codepage on cygwin.  [ruby-core:20994]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-04 06:41:43 +00:00
nobu b8e79f34a2 * configure.in (Makefile): removes GNU make specific files on
distclean.

* Makefile.in (distclean-ext): removes extension directories.

* lib/mkmf.rb (try_do): removes conftest.dSYM


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-24 04:45:34 +00:00
nobu d1af8511af * configure.in (HAVE_LONG_LONG, HAVE_OFF_T): revised for autoconf
2.62 or later.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-24 04:33:39 +00:00
nobu 39711b631f * configure.in (OBJDUMP, OBJCOPY): autoconf list is not comma
separated.

* configure.in (AC_HEADER_STDC, AC_CHECK_HEADERS AC_CHECK_FUNCS):
  removed duplicated checks.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-23 21:29:34 +00:00
yugui c09e5abeee * Doxyfile.in: new file. Template of a configuration file for
Doxygen.
  Intorduces C-level API reference generation with Doxygen.

* tool/file2lastrev.rb: wrapper script that abstracts subversion
  and git-svn.

* tool/strip-rdoc.rb: filter for preventing doxygen from processing
  rdoc comments.

* configure.in: (Doxyfile): Doxyfile is generated together with
  Makefile.
  (PACKAGE): configuration $(PACKAGE) is necessary for $(docdir).

* instruby.rb: adds a new install target 'capi'

* common.mk (capi): new target that generates C API documents with
  Doxygen.
  (install-capi): new target.
  (pre-install-capi): ditto.
  (do-install-capi): ditto.
  (post-install-capi): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-22 13:19:08 +00:00
nobu 9f3b77e435 * configure.in (mingw): no longer uses snprintf and vsnprintf of
msvcrt.

* win32/win32.c (rb_w32_vsnprintf, rb_w32_snprintf): removed.

* win32/Makefile.sub (config.h): vsnprintf exists in VC7 or later.

* win32/mkexports.rb (Exports#initialize): aliases
  rb_w32_vsnprintf and rb_w32_snprintf for binary compatibility.

* sprintf.c (rb_str_format): uses snprintf instead of sprintf.

* numeric.c (flo_to_s, rb_num2long, rb_num2ll): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20909 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-22 03:05:20 +00:00
yugui 5c0b21b7b9 * configure.in (OBJDUMP, OBJCOPY):
*BSD's ports and MacPorts prefix GNU binutils with 'g'.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-17 06:37:20 +00:00
nobu fbbfcc52f6 * configure.in (ac_cv_func_daemon): daemon(3) is deprecated on Mac OS
X 10.5 or later.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-16 03:30:58 +00:00
nobu ef1041167e * configure.in (ac_cv_header_ucontext_h): do not use ucontext.h on Mac
OS X 10.5 or later.  merged from MacPorts.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-16 03:26:51 +00:00
tadf 8729368f14 * complex.c (nucomp_canonicalization): renamed.
* ext/math/complex.c: followed the above change.

	* rational.c (nurat_canonicalization): renamed.

	* ext/math/rational.c: followed the above change.

	* configure.in: defines a new macro.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-12 23:40:55 +00:00
nobu 1eeeb00a0a * configure.in (rb_version): greps only the line that defines version.
* version.h (RUBY_VERSION_CODE, RUBY_RELEASE_CODE): removed.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-12 01:28:10 +00:00
nobu a41eedddd3 * configure.in (LIBPATHFLAG): commit miss.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-07 14:54:43 +00:00
nobu f65395f72e * configure.in (LIBPATHFLAG): use numbered specifier if RPATHFLAG
is set.  [ruby-talk:322136]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-07 14:47:39 +00:00
nobu a2a5343033 * Makefile.in (LIBRUBY_SO): localizes non-public symbols.
* configure.in (OBJDUMP, OBJCOPY): for dealing with binary files.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-07 14:17:36 +00:00
matz 68a75f19e9 * signal.c (register_sigaltstack): use alternative stack for
SIGSEGV to avoid uncaught stack overflow. based on a patch from
  Hiro Yoshioka <hyoshiok at miraclelinux.com> in [ruby-dev:37134].
  [ruby-dev:36993]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-11-21 18:27:33 +00:00
nobu 5c759e6b1c * configure.in (LIBRUBYARG_STATIC): fixed for --enable-rpath.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-11-16 17:19:05 +00:00
nobu 1bd83c1fe0 * configure.in (LDSHARED): do not suppress debug info if higher debug
level is given, on cygwin and mingw.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20236 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-11-15 13:24:06 +00:00
kazu e087f9ed6a * configure.in: fix SEGV on Mac OS X 10.5.3 with pthread.
a patch from Wataru Kimura in Bug #193 [ruby-core:17333].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-11-11 11:50:57 +00:00
matz 0042ccef2c * configure.in: detect stdio buffer pointers for uClibc. a patch
from Brian Candler <B.Candler at pobox.com> in [ruby-core:12020].
  [ruby-core:19713]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-11-07 22:10:58 +00:00
knu 6955f6977a * configure.in (rb_cv_lib_xpg4_needed): Drop legacy FreeBSD
support regarding libxpg4.  Those old versions of FreeBSD
  shipped with the library don't have a working pthread library
  anyway.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-29 04:05:15 +00:00
nobu 3cdf3ac9c9 * configure.in (dln-a-out): cannot make shared library nor work with
ELF.  [ruby-core:19571]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-29 02:51:00 +00:00
yugui fe7ce06150 * configure.in ($MANTYPE): followed ruby.1, which had moved.
* instruby.rb (:man): ditto.

* mdoc2man.rb: fixed for the case Xr with 2 arguments.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19939 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-25 17:20:05 +00:00
yugui 5660e09f08 * configure.in (sitedir): considers --program-prefix and
--program-suffix.
  (vendordir): ditto.
  (rubyhdrdir): ditto.

* mkconfig.rb (CONFIG["rubylibdir"]): ditto.

* win32/Makefile.sub: ditto.

* instruby.rb (:rdoc): ditto.

* lib/rdoc/ri/paths.rb (RDoc::RI::Paths): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-24 14:05:49 +00:00
nobu 93e4ba927c * configure.in (uncommon.mk): ignores failures at loading.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-17 09:15:00 +00:00
matz 69b4c69a72 * configure.in: applied OS/2 support patch from Brendan Oakley
<gentux2@gmail.com> in [ruby-core:18707].

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-19 08:43:04 +00:00
matz d7de44a8fc * dln.c: newer BeOS support. a patch from Pete Goodeve
<pete.goodeve at computer.org> in [ruby-core:18712].

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-19 00:33:19 +00:00
nobu 1b2f39fa09 * configure.in (XLDFLAGS): added --enable-auto-import for cygwin and
mingw.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19233 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-07 21:50:32 +00:00
kazu 6bf5c34cf2 * configure.in: Mac OS X's crypt(2) is broken with invalid salt.
[ruby-dev:35899]
* string.c (rb_str_crypt): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-07 08:57:53 +00:00
akr 2c78899641 * configure.in (BUILTIN_TRANSSRCS): defined.
(BUILTIN_TRANSOBJS): defined.

* enc/Makefile.in (BUILTIN_TRANSES): defined.

* enc/make_encmake.rb (BUILTIN_TRANSES): defined.

* enc/depend: don't generate rules for builtin transcoders.

* common.mk (COMMONOBJS): add BUILTIN_TRANSOBJS.
  (enc.mk): pass BUILTIN_TRANSOBJS.
  (newline.c): new rule.
  (newline.$(OBJEXT)): new ru.e
  (srcs): newline.c added.

* Makefile.in (BUILTIN_TRANSSRCS): defined.
  (BUILTIN_TRANSOBJS): defined.

* transcode.c (Init_transcode): call Init_newline.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-24 15:58:43 +00:00
nobu 504ed85dfe * configure.in (gmtime_r): check if reentrant versions are available.
* time.c (IF_HAVE_GMTIME_R, ASCTIME, GMTIME, LOCALTIME): use reentrant
  versions if available.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-22 01:52:42 +00:00
shugo 65337c5b2d * configure.in: always check timezone().
* strftime.c (rb_strftime): prefer timezone/altzone rather than
  gettimeofday().  The second argument to gettimeofday() is ignored
  on Solaris.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-20 17:08:36 +00:00
shugo 99155ccbf2 * configure.in: removed strftime from AC_REPLACE_FUNCS().
* include/ruby/missing.h: removed prototype for strftime().
* missing/strftime.c: removed.
* time.c (time_to_s): use rb_strftime() instead of strftime(3).
  (time_zone): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-20 16:04:11 +00:00
nobu a91845f5b3 * configure.in (gnumake): check for GNU make.
* Makefile.in (uncommon.mk): includes filtered common.mk.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-14 03:01:42 +00:00
nobu 3622cd196c * configure.in (rb_cv_gcc_function_alias): checks alias attribute.
* string.c (alias_func): replaced with RUBY_ALIAS_FUNCTION.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 15:43:55 +00:00
akr 36dd9a2221 * configure.in (rb_cv_broken_glibc_ia64_erfc): renamed from
rb_broken_glibc_ia64_erfc.
  [ruby-core:18228]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-11 06:11:55 +00:00
nobu de0a9f726e * configure.in,parse.y: removed garbage spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-10 03:15:37 +00:00
nobu a64266a728 * configure.in (rb_cv_missing__dtos18, rb_cv_missing_fconvert),
ext/digest/md5/md5.c, ext/openssl/ossl.c (main),
  ext/socket/extconf.rb (ipv6, wide-getaddrinfo): main should be int.

* main.c (main), win32/winmain.c, wince/wincemain.c (WinMain): envp is
  no longer used so long time.  based on a patch from Peter Bowen at
  [ruby-core:18208]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-09 23:15:08 +00:00
nobu cf7ad7e057 * configure.in (rb_cv_rshift_sign, rb_cv_binary_elf): get rid of
AC_TRY_RUN.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18456 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-09 12:10:54 +00:00
nobu 1c22ef1705 * configure.in (shutdown, sched_yield, pthread_attr_setinheritsched):
check for Haiku.

* eval_intern.h, io.c, thread_pthread.c: use autoconfisticated results.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-08 08:03:19 +00:00
naruse 48e21d2051 * eval_intern.h: Add support to Haiku. see [ruby-core:18110]
* include/ruby/defines.h: ditto.

* configure.in: ditto.

* thread_pthread.c: ditto.

* io.c: ditto.

* lib/mkmf.rb: ditto.

* ext/socket/getaddrinfo.c: ditto.

* ext/socket/extconf.rb: ditto.

* ext/socket/socket.c: ditto.

* ext/socket/addrinfo.h: ditto.

* ext/socket/getnameinfo.c: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-06 20:52:44 +00:00