* lib/mkmf.rb: exclude topdir from the system configuration

section and prevent it from being overridden.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
knu 2002-05-04 21:57:32 +00:00
Родитель 1e0830c198
Коммит 323af7e264
2 изменённых файлов: 9 добавлений и 4 удалений

Просмотреть файл

@ -1,3 +1,8 @@
Sun May 5 06:53:45 2002 Akinori MUSHA <knu@iDaemons.org>
* lib/mkmf.rb: exclude topdir from the system configuration
section and prevent it from being overridden.
Fri May 3 20:19:00 2002 WATANABE Hirofumi <eban@ruby-lang.org>
* configure.in: add #include <errno.h> in AC_CHECK_DECLS().

Просмотреть файл

@ -499,12 +499,12 @@ EOMF
if destdir = CONFIG["prefix"].scan(drive)[0] and !destdir.empty?
mfile.print "\nDESTDIR = ", destdir, "\n"
end
CONFIG.select do |key, var|
next if /prefix$/ !~ key
CONFIG.each do |key, var|
next unless /prefix$/ =~ key
mfile.print key, " = ", with_destdir(var.sub(drive, '')), "\n"
end
CONFIG.select do |key, var|
next if key == "srcdir" or /dir$/ !~ key
CONFIG.each do |key, var|
next unless /^(?:src|top|(.*))dir$/ =~ key and $1
mfile.print key, " = ", with_destdir(var.sub(drive, '')), "\n"
end
mfile.print <<EOMF