2000-08-03 05:50:41 -04:00
|
|
|
#!./miniruby -s
|
1998-01-16 07:19:09 -05:00
|
|
|
|
2003-07-27 08:55:35 -04:00
|
|
|
# avoid warnings with -d.
|
|
|
|
$srcdir ||= nil
|
|
|
|
$install_name ||= nil
|
|
|
|
$so_name ||= nil
|
|
|
|
|
2004-02-14 09:59:19 -05:00
|
|
|
require File.dirname($0)+"/lib/fileutils"
|
2002-10-26 22:09:23 -04:00
|
|
|
mkconfig = File.basename($0)
|
1998-01-16 07:19:09 -05:00
|
|
|
|
|
|
|
rbconfig_rb = ARGV[0] || 'rbconfig.rb'
|
* configure.in (XCFLAGS): CFLAGS to comile ruby itself.
* configure.in (LIBEXT): suffix for static libraries.
* configure.in (LIBPATHFLAG): switch template to specify library
path.
* configure.in (LINK_SO): command to link shared objects.
* configure.in (DEFFILE, ARCHFILE): miscellaneous system dependent
files.
* configure.in (EXPORT_PREFIX): prefix to exported symbols on
Windows.
* configure.in (COMMON_LIBS, COMMON_MACROS, COMMON_HEADERS):
libraries, macros and headers used in common.
* configure.in (RUBYW_INSTALL_NAME, rubyw_install_name): GUI mode
excutable name.
* Makefile.in (CFLAGS): append XCFLAGS.
* Makefile.in (PREP): miscellaneous system dependent files.
* Makefile.in (ruby.imp, ext/extinit.o): moved from ext/extmk.rb.
* Makefile.in (fake.rb): CROSS_COMPILING keeps building platform.
* Makefile.in (MAKEFILES): depend on *.in and config.status.
* Makefile.in (parse.c): replace "y.tab.c" with actual name for
byacc.
* ext/extmk.rb, lib/mkmf.rb: integrated.
* ext/extmk.rb: propagate MFLAGS.
* ext/extmk.rb (extmake): make dummy Makefile to clean even if no
Makefile is made.
* lib/mkmf.rb (older): accept multiple file names and Time
objects.
* lib/mkmf.rb (xsystem): split and qoute.
* lib/mkmf.rb (cpp_include): make include directives.
* lib/mkmf.rb (try_func): try wheather specified function is
available.
* lib/mkmf.rb (install_files): default to site-install.
* lib/mkmf.rb (checking_for): added.
* lib/mkmf.rb (find_executable0): just find executable file with
no message.
* lib/mkmf.rb (create_header): output header file is variable.
* lib/mkmf.rb (create_makefile): separate sections.
* lib/mkmf.rb (init_mkmf): initialize global variables.
* win32/Makefile.sub, bcc32/Makefile.sub (CPP, AR): added.
* bcc32/Makefile.sub (ARCH): fixed to i386.
* win32/Makefile.sub, bcc32/Makefile.sub (miniruby): should not
link EXTOBJS.
* ext/dl/extconf.rb: use try_cpp to cross compile.
* ext/dl/extconf.rb: not modify files in source directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-10-21 10:17:44 -04:00
|
|
|
srcdir = $srcdir || '.'
|
2004-02-14 09:59:19 -05:00
|
|
|
unless File.directory?(dir = File.dirname(rbconfig_rb))
|
2004-02-14 10:12:40 -05:00
|
|
|
FileUtils.makedirs(dir, :verbose => true)
|
2004-02-14 09:59:19 -05:00
|
|
|
end
|
1998-01-16 07:19:09 -05:00
|
|
|
|
2001-05-31 00:40:37 -04:00
|
|
|
version = RUBY_VERSION
|
2002-03-20 05:44:31 -05:00
|
|
|
rbconfig_rb_tmp = rbconfig_rb + '.tmp'
|
|
|
|
config = open(rbconfig_rb_tmp, "w")
|
2002-03-20 08:19:36 -05:00
|
|
|
$orgout = $stdout.dup
|
1998-01-16 07:19:09 -05:00
|
|
|
$stdout.reopen(config)
|
|
|
|
|
2000-08-03 05:50:41 -04:00
|
|
|
fast = {'prefix'=>TRUE, 'ruby_install_name'=>TRUE, 'INSTALL'=>TRUE, 'EXEEXT'=>TRUE}
|
1998-01-16 07:19:09 -05:00
|
|
|
print %[
|
2002-10-26 22:09:23 -04:00
|
|
|
# This file was created by #{mkconfig} when ruby was built. Any
|
|
|
|
# changes made to this file will be lost the next time ruby is built.
|
|
|
|
|
1998-01-16 07:19:09 -05:00
|
|
|
module Config
|
2001-05-31 00:40:37 -04:00
|
|
|
RUBY_VERSION == "#{version}" or
|
|
|
|
raise "ruby lib version (#{version}) doesn't match executable version (\#{RUBY_VERSION})"
|
2002-10-26 22:16:55 -04:00
|
|
|
|
1998-01-16 07:19:09 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
v_fast = []
|
|
|
|
v_others = []
|
1999-08-13 01:45:20 -04:00
|
|
|
has_version = false
|
2000-12-28 00:00:47 -05:00
|
|
|
File.foreach "config.status" do |line|
|
|
|
|
next if /^#/ =~ line
|
2001-08-20 06:56:03 -04:00
|
|
|
if /^s[%,]@program_transform_name@[%,]s,(.*)/ =~ line
|
2000-08-03 05:50:41 -04:00
|
|
|
next if $install_name
|
1999-01-19 23:59:39 -05:00
|
|
|
ptn = $1.sub(/\$\$/, '$').split(/,/) #'
|
2002-07-29 01:59:46 -04:00
|
|
|
v_fast << " CONFIG[\"ruby_install_name\"] = \"" + "ruby".sub(/#{ptn[0]}/,ptn[1]) + "\"\n"
|
2001-01-22 02:37:14 -05:00
|
|
|
elsif /^s[%,]@(\w+)@[%,](.*)[%,]/ =~ line
|
1998-01-16 07:19:09 -05:00
|
|
|
name = $1
|
|
|
|
val = $2 || ""
|
2000-12-28 00:00:47 -05:00
|
|
|
next if /^(INSTALL|DEFS|configure_input|srcdir|top_srcdir)$/ =~ name
|
|
|
|
next if $install_name and /^RUBY_INSTALL_NAME$/ =~ name
|
|
|
|
next if $so_name and /^RUBY_SO_NAME$/ =~ name
|
1998-01-16 07:19:09 -05:00
|
|
|
v = " CONFIG[\"" + name + "\"] = " +
|
2003-08-05 05:27:21 -04:00
|
|
|
val.gsub(/\$(?:\$|\{?(\w+)\}?)/) {$1 ? "$(#{$1})" : $&}.dump + "\n"
|
1998-01-16 07:19:09 -05:00
|
|
|
if fast[name]
|
|
|
|
v_fast << v
|
|
|
|
else
|
|
|
|
v_others << v
|
|
|
|
end
|
1999-08-13 01:45:20 -04:00
|
|
|
has_version = true if name == "MAJOR"
|
2001-05-24 21:33:03 -04:00
|
|
|
elsif /^(?:ac_given_)?srcdir=(.*)/ =~ line
|
2003-07-09 05:27:40 -04:00
|
|
|
srcdir = $1.strip
|
2000-12-28 00:00:47 -05:00
|
|
|
elsif /^ac_given_INSTALL=(.*)/ =~ line
|
1998-01-16 07:19:09 -05:00
|
|
|
v_fast << " CONFIG[\"INSTALL\"] = " + $1 + "\n"
|
|
|
|
end
|
|
|
|
# break if /^CEOF/
|
|
|
|
end
|
|
|
|
|
* configure.in (XCFLAGS): CFLAGS to comile ruby itself.
* configure.in (LIBEXT): suffix for static libraries.
* configure.in (LIBPATHFLAG): switch template to specify library
path.
* configure.in (LINK_SO): command to link shared objects.
* configure.in (DEFFILE, ARCHFILE): miscellaneous system dependent
files.
* configure.in (EXPORT_PREFIX): prefix to exported symbols on
Windows.
* configure.in (COMMON_LIBS, COMMON_MACROS, COMMON_HEADERS):
libraries, macros and headers used in common.
* configure.in (RUBYW_INSTALL_NAME, rubyw_install_name): GUI mode
excutable name.
* Makefile.in (CFLAGS): append XCFLAGS.
* Makefile.in (PREP): miscellaneous system dependent files.
* Makefile.in (ruby.imp, ext/extinit.o): moved from ext/extmk.rb.
* Makefile.in (fake.rb): CROSS_COMPILING keeps building platform.
* Makefile.in (MAKEFILES): depend on *.in and config.status.
* Makefile.in (parse.c): replace "y.tab.c" with actual name for
byacc.
* ext/extmk.rb, lib/mkmf.rb: integrated.
* ext/extmk.rb: propagate MFLAGS.
* ext/extmk.rb (extmake): make dummy Makefile to clean even if no
Makefile is made.
* lib/mkmf.rb (older): accept multiple file names and Time
objects.
* lib/mkmf.rb (xsystem): split and qoute.
* lib/mkmf.rb (cpp_include): make include directives.
* lib/mkmf.rb (try_func): try wheather specified function is
available.
* lib/mkmf.rb (install_files): default to site-install.
* lib/mkmf.rb (checking_for): added.
* lib/mkmf.rb (find_executable0): just find executable file with
no message.
* lib/mkmf.rb (create_header): output header file is variable.
* lib/mkmf.rb (create_makefile): separate sections.
* lib/mkmf.rb (init_mkmf): initialize global variables.
* win32/Makefile.sub, bcc32/Makefile.sub (CPP, AR): added.
* bcc32/Makefile.sub (ARCH): fixed to i386.
* win32/Makefile.sub, bcc32/Makefile.sub (miniruby): should not
link EXTOBJS.
* ext/dl/extconf.rb: use try_cpp to cross compile.
* ext/dl/extconf.rb: not modify files in source directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-10-21 10:17:44 -04:00
|
|
|
srcdir = File.expand_path(srcdir)
|
|
|
|
v_fast.unshift(" CONFIG[\"srcdir\"] = \"" + srcdir + "\"\n")
|
|
|
|
|
|
|
|
v_fast.collect! do |x|
|
|
|
|
if /"prefix"/ === x
|
|
|
|
x.sub(/= (.*)/, '= (TOPDIR || DESTDIR + \1)')
|
|
|
|
else
|
|
|
|
x
|
|
|
|
end
|
2000-08-03 05:50:41 -04:00
|
|
|
end
|
|
|
|
|
* configure.in (XCFLAGS): CFLAGS to comile ruby itself.
* configure.in (LIBEXT): suffix for static libraries.
* configure.in (LIBPATHFLAG): switch template to specify library
path.
* configure.in (LINK_SO): command to link shared objects.
* configure.in (DEFFILE, ARCHFILE): miscellaneous system dependent
files.
* configure.in (EXPORT_PREFIX): prefix to exported symbols on
Windows.
* configure.in (COMMON_LIBS, COMMON_MACROS, COMMON_HEADERS):
libraries, macros and headers used in common.
* configure.in (RUBYW_INSTALL_NAME, rubyw_install_name): GUI mode
excutable name.
* Makefile.in (CFLAGS): append XCFLAGS.
* Makefile.in (PREP): miscellaneous system dependent files.
* Makefile.in (ruby.imp, ext/extinit.o): moved from ext/extmk.rb.
* Makefile.in (fake.rb): CROSS_COMPILING keeps building platform.
* Makefile.in (MAKEFILES): depend on *.in and config.status.
* Makefile.in (parse.c): replace "y.tab.c" with actual name for
byacc.
* ext/extmk.rb, lib/mkmf.rb: integrated.
* ext/extmk.rb: propagate MFLAGS.
* ext/extmk.rb (extmake): make dummy Makefile to clean even if no
Makefile is made.
* lib/mkmf.rb (older): accept multiple file names and Time
objects.
* lib/mkmf.rb (xsystem): split and qoute.
* lib/mkmf.rb (cpp_include): make include directives.
* lib/mkmf.rb (try_func): try wheather specified function is
available.
* lib/mkmf.rb (install_files): default to site-install.
* lib/mkmf.rb (checking_for): added.
* lib/mkmf.rb (find_executable0): just find executable file with
no message.
* lib/mkmf.rb (create_header): output header file is variable.
* lib/mkmf.rb (create_makefile): separate sections.
* lib/mkmf.rb (init_mkmf): initialize global variables.
* win32/Makefile.sub, bcc32/Makefile.sub (CPP, AR): added.
* bcc32/Makefile.sub (ARCH): fixed to i386.
* win32/Makefile.sub, bcc32/Makefile.sub (miniruby): should not
link EXTOBJS.
* ext/dl/extconf.rb: use try_cpp to cross compile.
* ext/dl/extconf.rb: not modify files in source directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-10-21 10:17:44 -04:00
|
|
|
drive = File::PATH_SEPARATOR == ';'
|
|
|
|
|
|
|
|
prefix = Regexp.quote('/lib/ruby/' + RUBY_VERSION.sub(/\.\d+$/, '') + '/' + RUBY_PLATFORM)
|
|
|
|
print " TOPDIR = File.dirname(__FILE__).sub!(%r'#{prefix}\\Z', '')\n"
|
|
|
|
print " DESTDIR = ", (drive ? "TOPDIR && TOPDIR[/\\A[a-z]:/i] || " : ""), "'' unless defined? DESTDIR\n"
|
|
|
|
print " CONFIG = {}\n"
|
|
|
|
print " CONFIG[\"DESTDIR\"] = DESTDIR\n"
|
|
|
|
|
|
|
|
unless has_version
|
2001-05-31 00:40:37 -04:00
|
|
|
RUBY_VERSION.scan(/(\d+)\.(\d+)\.(\d+)/) {
|
1999-08-13 01:45:20 -04:00
|
|
|
print " CONFIG[\"MAJOR\"] = \"" + $1 + "\"\n"
|
|
|
|
print " CONFIG[\"MINOR\"] = \"" + $2 + "\"\n"
|
|
|
|
print " CONFIG[\"TEENY\"] = \"" + $3 + "\"\n"
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|
* configure.in (XCFLAGS): CFLAGS to comile ruby itself.
* configure.in (LIBEXT): suffix for static libraries.
* configure.in (LIBPATHFLAG): switch template to specify library
path.
* configure.in (LINK_SO): command to link shared objects.
* configure.in (DEFFILE, ARCHFILE): miscellaneous system dependent
files.
* configure.in (EXPORT_PREFIX): prefix to exported symbols on
Windows.
* configure.in (COMMON_LIBS, COMMON_MACROS, COMMON_HEADERS):
libraries, macros and headers used in common.
* configure.in (RUBYW_INSTALL_NAME, rubyw_install_name): GUI mode
excutable name.
* Makefile.in (CFLAGS): append XCFLAGS.
* Makefile.in (PREP): miscellaneous system dependent files.
* Makefile.in (ruby.imp, ext/extinit.o): moved from ext/extmk.rb.
* Makefile.in (fake.rb): CROSS_COMPILING keeps building platform.
* Makefile.in (MAKEFILES): depend on *.in and config.status.
* Makefile.in (parse.c): replace "y.tab.c" with actual name for
byacc.
* ext/extmk.rb, lib/mkmf.rb: integrated.
* ext/extmk.rb: propagate MFLAGS.
* ext/extmk.rb (extmake): make dummy Makefile to clean even if no
Makefile is made.
* lib/mkmf.rb (older): accept multiple file names and Time
objects.
* lib/mkmf.rb (xsystem): split and qoute.
* lib/mkmf.rb (cpp_include): make include directives.
* lib/mkmf.rb (try_func): try wheather specified function is
available.
* lib/mkmf.rb (install_files): default to site-install.
* lib/mkmf.rb (checking_for): added.
* lib/mkmf.rb (find_executable0): just find executable file with
no message.
* lib/mkmf.rb (create_header): output header file is variable.
* lib/mkmf.rb (create_makefile): separate sections.
* lib/mkmf.rb (init_mkmf): initialize global variables.
* win32/Makefile.sub, bcc32/Makefile.sub (CPP, AR): added.
* bcc32/Makefile.sub (ARCH): fixed to i386.
* win32/Makefile.sub, bcc32/Makefile.sub (miniruby): should not
link EXTOBJS.
* ext/dl/extconf.rb: use try_cpp to cross compile.
* ext/dl/extconf.rb: not modify files in source directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-10-21 10:17:44 -04:00
|
|
|
dest = drive ? /= \"(?!\$[\(\{])(?:[a-z]:)?/i : /= \"(?!\$[\(\{])/
|
|
|
|
v_others.collect! do |x|
|
2003-04-09 11:45:28 -04:00
|
|
|
if /^\s*CONFIG\["(?!abs_|old)[a-z]+(?:_prefix|dir)"\]/ === x
|
* configure.in (XCFLAGS): CFLAGS to comile ruby itself.
* configure.in (LIBEXT): suffix for static libraries.
* configure.in (LIBPATHFLAG): switch template to specify library
path.
* configure.in (LINK_SO): command to link shared objects.
* configure.in (DEFFILE, ARCHFILE): miscellaneous system dependent
files.
* configure.in (EXPORT_PREFIX): prefix to exported symbols on
Windows.
* configure.in (COMMON_LIBS, COMMON_MACROS, COMMON_HEADERS):
libraries, macros and headers used in common.
* configure.in (RUBYW_INSTALL_NAME, rubyw_install_name): GUI mode
excutable name.
* Makefile.in (CFLAGS): append XCFLAGS.
* Makefile.in (PREP): miscellaneous system dependent files.
* Makefile.in (ruby.imp, ext/extinit.o): moved from ext/extmk.rb.
* Makefile.in (fake.rb): CROSS_COMPILING keeps building platform.
* Makefile.in (MAKEFILES): depend on *.in and config.status.
* Makefile.in (parse.c): replace "y.tab.c" with actual name for
byacc.
* ext/extmk.rb, lib/mkmf.rb: integrated.
* ext/extmk.rb: propagate MFLAGS.
* ext/extmk.rb (extmake): make dummy Makefile to clean even if no
Makefile is made.
* lib/mkmf.rb (older): accept multiple file names and Time
objects.
* lib/mkmf.rb (xsystem): split and qoute.
* lib/mkmf.rb (cpp_include): make include directives.
* lib/mkmf.rb (try_func): try wheather specified function is
available.
* lib/mkmf.rb (install_files): default to site-install.
* lib/mkmf.rb (checking_for): added.
* lib/mkmf.rb (find_executable0): just find executable file with
no message.
* lib/mkmf.rb (create_header): output header file is variable.
* lib/mkmf.rb (create_makefile): separate sections.
* lib/mkmf.rb (init_mkmf): initialize global variables.
* win32/Makefile.sub, bcc32/Makefile.sub (CPP, AR): added.
* bcc32/Makefile.sub (ARCH): fixed to i386.
* win32/Makefile.sub, bcc32/Makefile.sub (miniruby): should not
link EXTOBJS.
* ext/dl/extconf.rb: use try_cpp to cross compile.
* ext/dl/extconf.rb: not modify files in source directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-10-21 10:17:44 -04:00
|
|
|
x.sub(dest, '= "$(DESTDIR)')
|
2000-06-18 23:37:55 -04:00
|
|
|
else
|
|
|
|
x
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2000-08-03 05:50:41 -04:00
|
|
|
if $install_name
|
|
|
|
v_fast << " CONFIG[\"ruby_install_name\"] = \"" + $install_name + "\"\n"
|
|
|
|
v_fast << " CONFIG[\"RUBY_INSTALL_NAME\"] = \"" + $install_name + "\"\n"
|
|
|
|
end
|
|
|
|
if $so_name
|
|
|
|
v_fast << " CONFIG[\"RUBY_SO_NAME\"] = \"" + $so_name + "\"\n"
|
|
|
|
end
|
|
|
|
|
1998-01-16 07:19:09 -05:00
|
|
|
print v_fast, v_others
|
1999-08-13 01:45:20 -04:00
|
|
|
print <<EOS
|
2001-05-07 05:26:29 -04:00
|
|
|
CONFIG["ruby_version"] = "$(MAJOR).$(MINOR)"
|
|
|
|
CONFIG["rubylibdir"] = "$(libdir)/ruby/$(ruby_version)"
|
|
|
|
CONFIG["archdir"] = "$(rubylibdir)/$(arch)"
|
|
|
|
CONFIG["sitelibdir"] = "$(sitedir)/$(ruby_version)"
|
2002-08-23 04:18:19 -04:00
|
|
|
CONFIG["sitearchdir"] = "$(sitelibdir)/$(sitearch)"
|
1999-08-13 01:45:20 -04:00
|
|
|
CONFIG["compile_dir"] = "#{Dir.pwd}"
|
2000-07-31 05:43:14 -04:00
|
|
|
MAKEFILE_CONFIG = {}
|
|
|
|
CONFIG.each{|k,v| MAKEFILE_CONFIG[k] = v.dup}
|
* configure.in (XCFLAGS): CFLAGS to comile ruby itself.
* configure.in (LIBEXT): suffix for static libraries.
* configure.in (LIBPATHFLAG): switch template to specify library
path.
* configure.in (LINK_SO): command to link shared objects.
* configure.in (DEFFILE, ARCHFILE): miscellaneous system dependent
files.
* configure.in (EXPORT_PREFIX): prefix to exported symbols on
Windows.
* configure.in (COMMON_LIBS, COMMON_MACROS, COMMON_HEADERS):
libraries, macros and headers used in common.
* configure.in (RUBYW_INSTALL_NAME, rubyw_install_name): GUI mode
excutable name.
* Makefile.in (CFLAGS): append XCFLAGS.
* Makefile.in (PREP): miscellaneous system dependent files.
* Makefile.in (ruby.imp, ext/extinit.o): moved from ext/extmk.rb.
* Makefile.in (fake.rb): CROSS_COMPILING keeps building platform.
* Makefile.in (MAKEFILES): depend on *.in and config.status.
* Makefile.in (parse.c): replace "y.tab.c" with actual name for
byacc.
* ext/extmk.rb, lib/mkmf.rb: integrated.
* ext/extmk.rb: propagate MFLAGS.
* ext/extmk.rb (extmake): make dummy Makefile to clean even if no
Makefile is made.
* lib/mkmf.rb (older): accept multiple file names and Time
objects.
* lib/mkmf.rb (xsystem): split and qoute.
* lib/mkmf.rb (cpp_include): make include directives.
* lib/mkmf.rb (try_func): try wheather specified function is
available.
* lib/mkmf.rb (install_files): default to site-install.
* lib/mkmf.rb (checking_for): added.
* lib/mkmf.rb (find_executable0): just find executable file with
no message.
* lib/mkmf.rb (create_header): output header file is variable.
* lib/mkmf.rb (create_makefile): separate sections.
* lib/mkmf.rb (init_mkmf): initialize global variables.
* win32/Makefile.sub, bcc32/Makefile.sub (CPP, AR): added.
* bcc32/Makefile.sub (ARCH): fixed to i386.
* win32/Makefile.sub, bcc32/Makefile.sub (miniruby): should not
link EXTOBJS.
* ext/dl/extconf.rb: use try_cpp to cross compile.
* ext/dl/extconf.rb: not modify files in source directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-10-21 10:17:44 -04:00
|
|
|
def Config::expand(val, config = CONFIG)
|
|
|
|
val.gsub!(/\\$\\$|\\$\\(([^()]+)\\)|\\$\\{([^{}]+)\\}/) do |var|
|
|
|
|
if !(v = $1 || $2)
|
|
|
|
'$'
|
|
|
|
elsif key = config[v]
|
|
|
|
config[v] = false
|
|
|
|
Config::expand(key, config)
|
|
|
|
config[v] = key
|
2000-07-31 05:43:14 -04:00
|
|
|
else
|
|
|
|
var
|
|
|
|
end
|
|
|
|
end
|
|
|
|
val
|
|
|
|
end
|
|
|
|
CONFIG.each_value do |val|
|
|
|
|
Config::expand(val)
|
|
|
|
end
|
1999-08-13 01:45:20 -04:00
|
|
|
end
|
2002-12-31 07:31:12 -05:00
|
|
|
CROSS_COMPILING = nil unless defined? CROSS_COMPILING
|
1999-08-13 01:45:20 -04:00
|
|
|
EOS
|
2002-03-20 08:19:36 -05:00
|
|
|
$stdout.flush
|
|
|
|
$stdout.reopen($orgout)
|
1998-01-16 07:19:09 -05:00
|
|
|
config.close
|
2002-03-20 05:44:31 -05:00
|
|
|
File.rename(rbconfig_rb_tmp, rbconfig_rb)
|
1999-08-13 01:45:20 -04:00
|
|
|
|
1998-01-16 07:19:09 -05:00
|
|
|
# vi:set sw=2:
|