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

633 Коммитов

Автор SHA1 Сообщение Дата
nobu da8a31bc47 * configure.in (ruby_version): needs runnable CPP.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-24 20:44:45 +00:00
mame 30a4825aea * configure.in: revert the previous commit, which seemed to break make
install.  The files of standard libraries are directly installed to
  $(PREFIX)/lib/ruby instead of $(PREFIX)/lib/ruby/1.9.1

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-24 14:01:57 +00:00
nobu 91e6d01790 * configure.in (LDSHARED, CPP): keep $(CC). [ruby-core:28912]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-24 09:16:13 +00:00
nobu 0edceaa7c7 * configure.in (RMDIRS): use rmdir -p if possible.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-22 09:01:19 +00:00
nobu 43ab72099b * configure.in (RUBY_EXEC_PREFIX): added to config.h.
* ruby.c (ruby_init_loadpath_safe): TMP_RUBY_PREFIX should be
  exec_prefix, not rubylibprefix.  [ruby-core:28718]

* version.c (RUBY_LIB_PREFIX): fallback to RUBY_EXEC_PREFIX.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-17 21:28:36 +00:00
nobu acd2d29f2e * configure.in (RSHIFT): parenthesize the argument of cast instead
of the result.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-16 05:03:30 +00:00
nobu 5b8af7521f * missing/signbit.c: added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-11 03:14:21 +00:00
nobu 9c0119c4bd * configure.in: check if target_archs has changed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-11 02:16:39 +00:00
wanabe e2e46bebcf * configure.in (mingw): do not detect snprintf/vsnprintf.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-01 08:45:18 +00:00
akr d5a16d80be * configure.in (RSHIFT): add parenthesis to supress warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-26 12:30:56 +00:00
muraken a8fcae0858 * confiure.in: new --with-ext and --with-out-ext options for extmk.
* tool/mkconfig.rb: normalizing --with-out-ext to --without-ext.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-18 13:33:25 +00:00
akr 792b3efa62 * file.c (rb_group_member): renamed from group_member.
don't use group_member() in glibc because it's not valgrind clean.
  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=570047


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-16 12:00:24 +00:00
matz 41ec00e019 * configure.in: check pthread_attr_getstack to prevent obsolete
warning for pthread_attr_getstackaddr.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-08 01:32:43 +00:00
naruse 669862a416 * configure.in: FreeBSD, DragonFly BSD and Mac OS X needs
pthread_np.h to use pthread_*_np functions.
  Mac OS X's pthread_*_np also depend sys/signal.h,
  but it is included at signal.h via vm_core.h via thread.c.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-04 01:00:30 +00:00
nobu ec7872aff7 * configure.in: check for non-portable stack attribute functions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-03 13:22:32 +00:00
nobu f9994ada30 * configure.in: some tidy.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-03 13:20:43 +00:00
nobu 9433d94cff * configure.in, win32/Makefile.sub (EXECUTABLE_EXTS): should be
space-separated.  [ruby-core:27912]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-29 05:21:55 +00:00
nobu e8e41b217c * configure.in (mingw): needs $(DEFFILE) for extension libraries.
[ruby-core:27946]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-29 03:59:39 +00:00
akr 96542c3678 * configure.in: test unsetenv returns a value.
unsetenv is void in older BSDs (FreeBSD 6 and OpenBSD 4.5 at least).

* hash.c (ruby_setenv): don't use the result of unsetenv if unsetenv
  doesn't return a value.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-26 12:41:43 +00:00
nobu 57d4faec1b * configure.in (RUBY_ARCHLIB): moved to version.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-25 09:16:14 +00:00
nobu ccf67667b8 * version.c (RUBY_LIB, RUBY_*_LIB): moved from configures.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-25 08:36:14 +00:00
naruse e243aabc0c * configure.in: add missing comma.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-22 05:17:16 +00:00
shyouhei ff575c7eb7 * configure.in: some tidy.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-21 06:10:16 +00:00
nobu bb8f1415e8 * configure.in: use AS_CASE instead of when, to get rid of
an unintentional substitution.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-21 00:38:03 +00:00
nobu 23a4f81625 * configure.in: check for if struct timezone is defined.
* missing.h (struct timezone): define if not defined.

* win32/win32.h (struct timezone): defined in the newer w32api.
  [ruby-core:27515]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-12 21:54:47 +00:00
yugui 295bc2fe25 removes the dtrace support. reverts r26239, r26238 and r26235.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-05 05:59:23 +00:00
naruse 07146f375b * configure.in (DTRACE): clear this when `dtrace -l` fails.
Note that current FreeBSD needs privilege to call it;
  so to use DTrace on FreeBSD, you should run configure as root.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-04 17:08:02 +00:00
yugui 72b199940d * trace.h: new file. wraps tracing mechanisms.
* defs/dtrace.d: new file. defined a dtrace provider "ruby".

* include/ruby/ruby.h (LIKELY): moved from vm.c.
  (UNLIKELY): ditto.
  (OBJSETUP): probe "object-create".
  (RUBY_EVENT_RESCUE): new event.

* vm_exec.c (DEBUG_ENTER_INSN): embeded a probe insn-entry into it.
  (DEBUG_END_INSN): insn-return.

* vm.c (LIKELY): moved into ruby.h.
  (UNLIKELY): ditto.
  (Init_BareVM): embeded a probe "raise" into it.

* variable.c (rb_class2name_without_alloc): new utility function.

* tool/rbinstall.rb (install?(:ext, :arch, :'ext-arch')): installs 
  dtrace.d if necessary.

* thread_pthread.c (add_signal_thread_list): probe "raise".
  (rb_thread_create_timer_thread): ditto.

* thread.c (rb_thread_schedule_rec): probes "thread-enter" and
  "thread-leave",
  (thread_start_func_2): ditto.
  (thread_cleanup_func): probe "thread-term"

* lib/mkmf.rb: supports dtrace postprocessor on making an extension.

* iseq.c (rb_vm_insn_name): new utility function.
  (rb_vm_insn_len): ditto.

* insns.def (hook): probes "method-etnry", "method-return", "line",
  and "rescue".

* compile.c (iseq_compile_each): adds a trace op for "rescue" probe.

* gc.c (garbage_collect): probes "gc-begin" and "gc-end".
  (obj_free): probe "object-free"
  (garbage_collect_with_gvl): probe "raise"
  (negative_size_allocation_error): ditto.
  (rb_memerror): ditto.

* eval.c (rb_rescue2): probe "rescue"
  (rb_longjmp): probe "raise"

* ext/probe/probe.c: new extension for application defined probes.

* ext/probe/extconf.rb: ditto.

* configure.in (--with-tracing-model): new option to choose a tracing
  mechanism.
  (DTRACE): new substitution. name of dtrace(1).
  (RUBY_TRACING_MODEL): new substitution.
  (DTRACE_OBJ): ditto.
  (MINIDTRACE_OBJ): ditto.
  (GOLFDTRACE_OBJ): ditto.
  (LIBRUBY_DTRACE_OBJ): ditto.
  (RUBY_DTRACE_POSTPROCESS): new macro. checks whether the dtrace on 
  the system needs postprocessing.
  (RUBY_DTRACE_BSD_BROKEN): new macro. checks whether the dtrace
  supports USDT.

* Makefile.in: 
  (DTRACE): new variable. name of dtrace(1).
  (TRACING_MODEL): new variable. name of the chosen tracing mechanism.
  (DTRACE_OBJ): same as the one in configure.in.
  (MINIDTRACE_OBJ): ditto.
  (GOLFDTRACE_OBJ): ditto.
  (LIBRUBY_DTRACE_OBJ): ditto.
  (CPPOUTFILE): new substitution. necessary for generating dtrace.d
  (trace_none.h): new target for TRACING_MODEL=none
  (RUBY_H_INCLUDES): appended a header for tracing.
  (distclean-local): also removes preprocessed version of dtrace.d
  ($(LIBRUBY_A)): needs $(LIBRUBY_DTRACE_OBJ) if dtrace needs 
  postprocessing.
  ($(PROGRAM)): ditto.
  (golf): ditto.
  (miniruby): ditto.
  ($(arch_hdrdir)/ruby/dtrace.d): new target. preprocessed verson 
  of defs/dtrace.d. generated if necessary.
  ($(arch_hdrdir)/ruby/trace_dtrace.h): new target.
  definition of probes.
  ($(LIBRUBY_DTRACE_OBJ)): new target. generated if dtrace needs 
  postprocessing.
  ($(DTRACE_OBJ)): ditto.
  ($(MINIDTRACE_OBJ)): ditto.
  ($(GOLFDTRACE_OBJ)): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-03 15:36:17 +00:00
eban db9e8351f3 * configure.in(MINIRUBY): use "$BASERUBY" as a default ruby executable name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-16 02:21:59 +00:00
nobu 276653a6f5 * configure.in: default ac_cv_prog_CC to CC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-05 04:19:31 +00:00
nobu 7b5ea0ec2f * configure.in, win32/Makefile.sub (EXECUTABLE_EXTS): moved from
dln.c:dln_find_1().

* lib/mkmf.rb (def find_executable0): use EXECUTABLE_EXTS, not
  only EXEEXT.  [ruby-core:26821]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-30 07:54:26 +00:00
nobu 85ca612b13 * configure.in (--with-opt-dir): ignore and suppress a warning.
[ruby-dev:39684]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-14 08:09:41 +00:00
nobu 68eb919442 * configure.in (warnflags): add -Wno-long-long.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-09 02:28:31 +00:00
naruse 420c043089 * configure.in (MINIDLNOBJ): set default as dmydln.o.
Now LLVM clang seems to be able to build Ruby 1.9.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-06 03:07:52 +00:00
nobu f6f49eb0b8 * configure.in (RUBY_STACK_GROW_DIRECTION): set return variable always.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-01 08:11:49 +00:00
nobu 2eb5e70de3 * configure.in (rb_cv_stack_grow_dir): fix for universal binary.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-01 07:24:18 +00:00
nobu f6ea31420e * configure.in (sitehdrdir, vendorhdrdir): fixed default values.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-01 07:23:05 +00:00
nobu 32df7768b8 * configure.in (target, target_alias): replace with real cpu.
* mkconfig.rb: build* are not needed in rbconfig.rb.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-23 05:25:56 +00:00
nobu a56b1bc27b * configure.in (warnflags): use -Wextra only when
-Wno-missing-field-initializers is available.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-23 05:22:53 +00:00
nobu 9a8d0e83c0 * configure.in (optflags): removed -fomit-frame-pointer by default.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-23 05:06:12 +00:00
nobu e9af789d35 * configure.in, Makefile.in, win32/Makefile.sub (XRUBY): runnable
ruby without current libraries.

* common.mk (rdoc): use XRUBY.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-22 22:32:39 +00:00
nobu 2e5e8fd895 * configure.in (warnflags): use -Wextra instead of -Wall.
* gc.c (mark_current_machine_context): get rid of warning.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-22 22:28:52 +00:00
nobu 7c669071c4 * configure.in (cflags, cxxflags): remove duplicating options.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-10 09:59:19 +00:00
nobu 66150a89a6 * configure.in, Makefile.in (LIBRUBY_SO), common.mk (ruby.imp),
win32/mkexports.rb (each_export): exclude _threadptr_ functions.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-10 09:19:05 +00:00
nobu 8a99a39592 * configure.in: workaround for regexp metacharacters of expr in
prefix path.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-02 16:01:05 +00:00
nobu e8f007e6b8 * configure.in (THREAD_MODEL): modified message when no thread
model is available.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-29 15:00:32 +00:00
nobu 42f0ea8c61 * configure.in (--enable-pthread): deprecated.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-29 12:21:16 +00:00
nobu 5935818516 * configure.in (optflags): add -fomit-frame-pointer by default.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-27 02:58:24 +00:00
nobu 810775bb20 * configure.in (warnflags): check all flags if each are available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-27 01:21:18 +00:00
nobu 99b41f3858 * configure.in (CAPITARGET): enable iff doxygen is available.
* configure.in (INSTALLDOC): enable if rdoc or doxygen are enabled.

* common.mk (docs): target to make documents.

* Makefile.in, win32/Makefile.sub (install-{all,nodoc}): trigger
  by $(INSTALLDOC) from install.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-16 07:20:19 +00:00