summaryrefslogtreecommitdiffstats
path: root/lib/mkmf.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* * lib/mkmf.rb: $hdrdir is $top_srcdir if invoked from extmk.rbeban2002-09-101-2/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb, lib/mkmf.rb ($INCFLAGS): new var for -I$(topdir).eban2002-09-101-8/+13
| | | | | | | | * lib/mkmf.rb: add #define WIN32_LEAN_AND_MEAN to improve compile times. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c (time_free): prototype; struct time_object -> void *.eban2002-09-081-4/+4
| | | | | | | | avoid GCC warnings. * lib/mkmf.rb, ext/extmk.rb ($LINK, $CPP): move to lib/mkmf.rb. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (have_struct_member): moved from ext/socket/extconf.rb.eban2002-09-081-8/+42
| | | | | | | | | * ext/socket/extconf.rb: use macro_defined? instead of egrep_cpp. * ext/etc/extconf.rb: use have_struct_member. * ext/etc/etc.c: add prefix HAVE_ST_ to PW_ macros. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: modify program_prefix only if specifiedeban2002-09-081-22/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | --program-prefix. * configure.in: don't generate ext/extmk.rb. * Makefile.in: execute directly $(srcdir)/ext/extmk.rb. remove -Cext option, "Dir::chdir 'ext'" in ext/extmk.rb. * {win32,bccwin32}/Makefile.sub: ditto. * instruby.rb: ditto. * ext/extmk.rb: renamed from ext/extmk.rb.in. * lib/mkmf.rb (module Logging): create log files (mkmf.log) in each extension module directories. * ext/extmk.rb: ditto. * lib/mkmf.rb (macro_defined?): new method. * ext/.cvsignore: remove extmk.rb. * ext/*/.cvsignore: add "*.def". git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* bcc32/configure.bat : Control of a message.H_Konishi2002-09-081-1/+1
| | | | | | | | | bcc32/makefile.sub : @(sitearch) typo. ext/extmk.rb.in : [bccwin32] libdir is added to a library path. lib/mkmf.rb : ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb ($CC): command to compile C source.nobu2002-09-061-13/+63
| | | | | | | | | | | | | | | | | | * lib/mkmf.rb (try_compile): added. * lib/mkmf.rb (egrep_cpp): use internal grep when pattern is Regexp, otherwise use external egrep command but get rid of pipe of command.com. * lib/mkmf.rb (have_func): local variable should be volatile not to be eliminated by optimization. * lib/mkmf.rb (create_makefile): link with CONFIG["LIBS"]. * lib/mkmf.rb (create_makefile): emit .SUFFIXES:. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (xsystem): mkmf.log.eban2002-09-051-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * extmk.rb (create_makefile): add macro MAKEDIRS, INSTALL_PROG,eban2002-09-041-6/+10
| | | | | | | | | | | INSTALL_DATA. * extmk.rb (create_makefile): support for building to any directory. * extmk.rb (xsystem): move to mkmf.rb. * mkmf.rb (xsystem): support for extmk.rb * mkmf.rb ($CPP): remove '-E' option. add CPPFLAGS. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * extmk.rb: require mkmf.rb. remove duplicate methods.eban2002-09-031-36/+51
| | | | | | | | use Config::CONFIG["FOO"] instead of @FOO@. * mkmf.rb: extmk.rb support. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: RUBY_SO_NAME is msvcrt-rubyXX on mswin32/mingw32.eban2002-08-231-0/+1
| | | | | | | | | * configure.in (sitearch): new var. * mkconfig.rb, lib/mkmf.rb (sitearch): ditto. * win32/Makefile.sub, win32/setup.mak (sitearch): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_thread_cleanup): should not modify the globalmatz2002-08-211-0/+24
| | | | | | | variable curr_thread. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (rb_reg_expr_str): need to process backslashes properly.matz2002-06-281-1/+1
| | | | | | | | | | | | | | | | | | * object.c (rb_any_to_a): declare Object#to_a to be obsolete. * object.c (rb_Array): do not convert nil into [] automagically. * object.c (rb_Integer): use "to_int" instead of "to_i". [experimental] * object.c (nil_to_f): new method. * object.c (rb_Integer): Symbols and nil should cause error. * object.c (rb_Float): nil should cause error. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (create_makefile): get rid of nested string.nobu2002-06-241-1/+1
| | | | | | | * lib/mkmf.rb (install_rb): site-install didn't work properly. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_eval): NODE_EVSTR is no longer used.nobu2002-06-241-3/+3
| | | | | | | | | | | | | | | | | * eval.c (eval): not enforce to make assigned variables dynamic. * parse.y (string): split rules to strings/xstring/regexp to allow arbitrary statements inside string interpolation. * parse.y (here_document): splitted into three phases. * parse.y (literall_append, literal_concat): added. append/concatinate string literals. * sample/test.rb (valid_syntax): adjust line number for BEGIN. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb, lib/mkmf.rb (xsystem): open the log file if xsystem is called.eban2002-06-191-2/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb: typo fix(RUBY_PLAT_FORM -> RUBY_PLATFORM).eban2002-06-131-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* new platform [bccwin32] merged.H_Konishi2002-06-111-20/+71
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb: exclude topdir from the system configurationknu2002-05-041-4/+4
| | | | | | | section and prevent it from being overridden. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb.in, lib/mkmf.rb: use 'do...end' instead of '{}' for Borland make.eban2002-05-021-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_mode_flags): both 'r+b' and 'rb+' should be allowed.matz2002-04-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * io.c (rb_io_mode_modenum): ditto. * gc.c (rb_memerror): rename from mem_error, and exported. * gc.c (Init_GC): pre-allocate NoMemoryError instance. * object.c (convert_type): error message changed from "failed to convert" to "cannot convert", since it does not try to convert if an object does not respond to the converting method. * eval.c (block_pass): convert Method to Proc using rb_check_convert_type(). * object.c (rb_check_convert_type): always convert T_DATA * eval.c (rb_thread_cleanup): should not terminate main_thread by Fatal error. * regex.c (is_in_list): need to not exclude NUL and NEWLINE. * re.c (rb_reg_expr_str): wrong backslash escapement. * re.c (rb_reg_expr_str): do not escape embedded space characters. * marshal.c (w_object): T_DATA process patch from Joel VanderWerf <vjoel@PATH.Berkeley.EDU>. This is temporary hack; it remains undocumented, and it will be removed when marshaling is re-designed. * marshal.c (r_object): ditto. * numeric.c (num_step): Integer#step is moved to Numeric#step; Fixnum#step is merged into this method. * numeric.c (int_dotimes): Fixnum#times is merged. * numeric.c (int_upto): Fixnum#upto is merged. * numeric.c (int_downto): Fixnum#downto is merged. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/stringio/stringio.c (strio_mark): must check if ptr is NULLnobu2002-04-231-1/+2
| | | | | | | | | | first. [ruby-talk:38873] * lib/mkmf.rb (create_makefile): should print depend file when make is other than nmake. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb.in (create_makefile): use `{$(srcdir)}' directive insteadusa2002-04-231-1/+2
| | | | | | | | | | of `$(srcdir)/' when including depend file. * lib/mkmf.rb (create_makefile): add `{$(srcdir)}' when including depend file. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: cleanup for autoconf 2.5x.eban2002-04-191-1/+1
| | | | | | | | * configure.in: use gcc -shared instead of dllwrap on Cygwin/MinGW. * ext/extmk.rb, lib/mkmf.rb: get rid of "--def=". git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (try_link0): need expand macro in command, sync withnobu2002-04-091-3/+3
| | | | | | | | | | | ext/extmk.rb.in. * lib/mkmf.rb (try_cpp): ditto. * lib/mkmf.rb (egrep_cpp): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Makefile.in (CPPFLAGS): remove @includedir@.matz2002-04-021-3/+3
| | | | | | | | | * lib/mkmf.rb (create_makefile): ditto. * ext/extmk.rb.in (create_makefile): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* mkmf.rb: files[0,1] == "." -> files[0,2] == "./"ttate2002-04-011-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lib/mkmf.rb: install any files using $INSTALLFILES. (from [ruby-dev:16683])ttate2002-04-011-50/+87
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2317 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (create_makefile): default FLAGS to empty strings.nobu2002-03-291-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2306 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (arg_config): should use Shellwords::shellwords likenobu2002-03-291-17/+35
| | | | | | | | | | | | | | | ext/extmk.rb.in. * lib/mkmf.rb (enable_config): default had priority over command line options and configure_args. * lib/mkmf.rb: support autoconf 2.53 style variables from environment. * lib/mkmf.rb: add directory options. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2303 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (dir_config): prior --with flag.nobu2002-01-311-18/+7
| | | | | | | | * lib/mkmf.rb (arg_config): avoid special variables for font-lock-mode. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (create_makefile): add -I. to CPPFLAGS.eban2002-01-021-7/+13
| | | | | | | * lib/mkmf.rb (create_makefile): srcdir support(.def and depend file). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb.in, lib/mkmf.rb (have_library): print yes.eban2001-12-291-1/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb.in, lib/mkmf.rb (have_library): accept -lmeban2001-12-291-0/+1
| | | | | | | unconditionally on mswin32/mingw32. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (with_destdir): new.nobu2001-12-201-9/+13
| | | | | | | | | * lib/mkmf.rb: prefix target directories with $(DESTDIR) all. * lib/mkmf.rb: no need to mkdir $(libdir) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1928 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb.in: add -Wl,-R flags to DLDFLAGS on netbsdelf.usa2001-12-061-0/+3
| | | | | | | * lib/mkmf.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (NtCmdGlob): avoid VC++ warning.usa2001-08-151-1/+1
| | | | | | | * lib/mkmf.rb: add -I$(srcdir) to CPPFLAGS. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb.in, lib/mkmf.rb: dig the target subdirectory forknu2001-07-241-2/+5
| | | | | | | lib/* files properly in case of create_makefile("dir/name"). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb.in, lib/mkmf.rb: introduce a couple of new makeknu2001-07-221-2/+2
| | | | | | | | variables: CLEANFILES and DISTCLEANFILES. They'd typically be defined in a file "depend". git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb.in: modify RM macro because command.com/cmd.exe don'tusa2001-07-171-1/+1
| | | | | | | | | recognize single quotation as quote character. * lib/mkmf.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb: use File::split to split a target into a prefix andknu2001-07-131-3/+3
| | | | | | | | | | a module name. This also works around a just found bug of String#rindex. * ext/extmk.rb.in: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb: modify RM macro.eban2001-07-091-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb: distclean should remove mkmf.log as well.knu2001-07-031-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb: target_prefix is only for installation, not forknu2001-06-121-16/+17
| | | | | | | build. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb.in: Use -F and -T for mswin32 because cl.exe doesn't support ↵usa2001-06-091-32/+37
| | | | | | | | | | | -o officially and cl.exe considers that *.cc and *.cxx are OBJs. * lib/mkmf.rb: ditto. * win32/Makefile.sub: Use del instead of rm. All these changes are derived from Nobuyoshi Nakada's patch. Thanks. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1519 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb.in, lib/mkmf.rb (xsystem): write log file.eban2001-06-051-10/+5
| | | | | | | print command line. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (proc_options): unexpected SecurityError happens when -T4.matz2001-05-301-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * regex.c (re_compile_pattern): * \1 .. \9 should be backreferences always. * regex.c (re_match): backreferences corresponding to unclosed/unmatched parentheses should fail always. * string.c (rb_str_cat): use rb_str_buf_cat() if possible. [new] * string.c (rb_str_append): ditto. * string.c (rb_str_buf_cat): remove unnecessary check (type, taint, modify) to gain performance. * string.c (rb_str_buf_append): ditto. * string.c (rb_str_buf_finish): removed. * string.c (rb_str_buf_new): buffering string function. [new] * string.c (rb_str_buf_append): ditto. * string.c (rb_str_buf_cat): ditto. * string.c (rb_str_buf_finish): ditto. * time.c (make_time_t): local time adjustment revised. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (xsystem): make a temporary fix to get $(...) macrosknu2001-05-171-0/+1
| | | | | | | | | properly expanded on a command execution. * ext/extmk.rb.in (xsystem): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb: unbreak "make install". lib/* must be installedknu2001-05-171-2/+2
| | | | | | | under $rubylibdir, not under $libdir. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (bigdivrem): access boundary bug.matz2001-05-111-0/+2
| | | | | | | | | | | | | | | | | | | * marshal.c (w_object): prohibit dumping out singleton classes. * object.c (rb_mod_to_s): distinguish singleton classes. * variable.c (rb_class2name): it's ok to reveal NilClass, TrueClass, FalseClass. * eval.c (rb_yield_0): preserve and restore ruby_cref as well. * eval.c (is_defined): core dumped during instance_eval for special constants. * eval.c (rb_eval): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e