mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
ext/tk/extconf.rb: add newline
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e6c88132a5
commit
21791dd97f
1 changed files with 18 additions and 9 deletions
|
@ -131,9 +131,14 @@ if defined?(Logging.quiet) and Logging.quiet
|
||||||
def progress(s)
|
def progress(s)
|
||||||
print(s)
|
print(s)
|
||||||
end
|
end
|
||||||
|
def newline
|
||||||
|
end
|
||||||
else
|
else
|
||||||
def progress(s)
|
def progress(s)
|
||||||
end
|
end
|
||||||
|
def newline
|
||||||
|
puts
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def check_tcltk_version(version)
|
def check_tcltk_version(version)
|
||||||
|
@ -1342,7 +1347,7 @@ def find_tcltk_library(tcllib, tklib, stubs, tclversion, tkversion,
|
||||||
st,path,lib,libs,*inc = find_tcl(tcllib, stubs, tclversion, *tcl_opt_paths)
|
st,path,lib,libs,*inc = find_tcl(tcllib, stubs, tclversion, *tcl_opt_paths)
|
||||||
end
|
end
|
||||||
unless st
|
unless st
|
||||||
puts("Warning:: cannot find Tcl library. tcltklib will not be compiled (tcltklib is disabled on your Ruby. That is, Ruby/Tk will not work). Please check configure options.")
|
puts("\n""Warning:: cannot find Tcl library. tcltklib will not be compiled (tcltklib is disabled on your Ruby. That is, Ruby/Tk will not work). Please check configure options.")
|
||||||
return false
|
return false
|
||||||
else
|
else
|
||||||
($LIBPATH ||= []; $LIBPATH |= [path]) if path
|
($LIBPATH ||= []; $LIBPATH |= [path]) if path
|
||||||
|
@ -1358,7 +1363,7 @@ def find_tcltk_library(tcllib, tklib, stubs, tclversion, tkversion,
|
||||||
st,path,lib,libs,*inc = find_tk(tklib, stubs, tkversion, *tk_opt_paths)
|
st,path,lib,libs,*inc = find_tk(tklib, stubs, tkversion, *tk_opt_paths)
|
||||||
end
|
end
|
||||||
unless st
|
unless st
|
||||||
puts("Warning:: cannot find Tk library. tcltklib will not be compiled (tcltklib is disabled on your Ruby. That is, Ruby/Tk will not work). Please check configure options.")
|
puts("\n""Warning:: cannot find Tk library. tcltklib will not be compiled (tcltklib is disabled on your Ruby. That is, Ruby/Tk will not work). Please check configure options.")
|
||||||
return false
|
return false
|
||||||
else
|
else
|
||||||
($LIBPATH ||= []; $LIBPATH |= [path]) if path
|
($LIBPATH ||= []; $LIBPATH |= [path]) if path
|
||||||
|
@ -1404,7 +1409,8 @@ def find_tcltk_header(tclver, tkver)
|
||||||
# already checked existence of tcl headers based on tclConfig.sh
|
# already checked existence of tcl headers based on tclConfig.sh
|
||||||
have_tcl_h = true
|
have_tcl_h = true
|
||||||
else
|
else
|
||||||
print "\nSearch tcl.h"
|
print "Search tcl.h"
|
||||||
|
newline
|
||||||
if enable_config("tcl-h-ver-check", true) &&
|
if enable_config("tcl-h-ver-check", true) &&
|
||||||
tclver && tclver =~ /^\D*(\d)\.?(\d)/
|
tclver && tclver =~ /^\D*(\d)\.?(\d)/
|
||||||
major = $1; minor = $2
|
major = $1; minor = $2
|
||||||
|
@ -1464,6 +1470,7 @@ def find_tcltk_header(tclver, tkver)
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
progress("\n")
|
||||||
end
|
end
|
||||||
|
|
||||||
# tk.h
|
# tk.h
|
||||||
|
@ -1471,7 +1478,8 @@ def find_tcltk_header(tclver, tkver)
|
||||||
# already checked existence of tk headers based on tkConfig.sh
|
# already checked existence of tk headers based on tkConfig.sh
|
||||||
have_tk_h = true
|
have_tk_h = true
|
||||||
else
|
else
|
||||||
print "\nSearch tk.h"
|
print "Search tk.h"
|
||||||
|
newline
|
||||||
if enable_config("tk-h-ver-check", true) &&
|
if enable_config("tk-h-ver-check", true) &&
|
||||||
tkver && tkver =~ /^\D*(\d)\.?(\d)/
|
tkver && tkver =~ /^\D*(\d)\.?(\d)/
|
||||||
major = $1; minor = $2
|
major = $1; minor = $2
|
||||||
|
@ -1531,6 +1539,7 @@ def find_tcltk_header(tclver, tkver)
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
progress("\n")
|
||||||
end
|
end
|
||||||
|
|
||||||
puts "Can't find \"tcl.h\"." unless have_tcl_h
|
puts "Can't find \"tcl.h\"." unless have_tcl_h
|
||||||
|
@ -1591,7 +1600,7 @@ def find_X11(*opt_paths)
|
||||||
defaults.compact.each{|path| paths.concat(Dir.glob(path.strip.chomp('/'), File::FNM_CASEFOLD))}
|
defaults.compact.each{|path| paths.concat(Dir.glob(path.strip.chomp('/'), File::FNM_CASEFOLD))}
|
||||||
st = find_library("X11", "XOpenDisplay", *paths)
|
st = find_library("X11", "XOpenDisplay", *paths)
|
||||||
unless st
|
unless st
|
||||||
puts("Warning:: cannot find X11 library. tcltklib will not be compiled (tcltklib is disabled on your Ruby. That is, Ruby/Tk will not work). Please check configure options. If your Tcl/Tk don't require X11, please try --without-X11.")
|
puts("\n""Warning:: cannot find X11 library. tcltklib will not be compiled (tcltklib is disabled on your Ruby. That is, Ruby/Tk will not work). Please check configure options. If your Tcl/Tk don't require X11, please try --without-X11.")
|
||||||
end
|
end
|
||||||
st
|
st
|
||||||
end
|
end
|
||||||
|
@ -1656,9 +1665,9 @@ def pthread_check()
|
||||||
|
|
||||||
if TclConfig_Info['config_file_path']
|
if TclConfig_Info['config_file_path']
|
||||||
if tcl_enable_thread == true
|
if tcl_enable_thread == true
|
||||||
puts("Warning: definition of tclConfig.sh is ignored, because --enable-tcl-thread option is given.")
|
puts("\n""Warning: definition of tclConfig.sh is ignored, because --enable-tcl-thread option is given.")
|
||||||
elsif tcl_enable_thread == false
|
elsif tcl_enable_thread == false
|
||||||
puts("Warning: definition of tclConfig.sh is ignored, because --disable-tcl-thread option is given.")
|
puts("\n""Warning: definition of tclConfig.sh is ignored, because --disable-tcl-thread option is given.")
|
||||||
else
|
else
|
||||||
# tcl-thread is unknown and tclConfig.sh is given
|
# tcl-thread is unknown and tclConfig.sh is given
|
||||||
if TclConfig_Info['TCL_THREADS']
|
if TclConfig_Info['TCL_THREADS']
|
||||||
|
@ -1674,9 +1683,9 @@ def pthread_check()
|
||||||
if tcl_enable_thread == nil
|
if tcl_enable_thread == nil
|
||||||
# cannot find definition
|
# cannot find definition
|
||||||
if tcl_major_ver
|
if tcl_major_ver
|
||||||
puts("Warning: '#{TclConfig_Info['config_file_path']}' doesn't include TCL_THREADS definition.")
|
puts("\n""Warning: '#{TclConfig_Info['config_file_path']}' doesn't include TCL_THREADS definition.")
|
||||||
else
|
else
|
||||||
puts("Warning: '#{TclConfig_Info['config_file_path']}' may not be a tclConfig file.")
|
puts("\n""Warning: '#{TclConfig_Info['config_file_path']}' may not be a tclConfig file.")
|
||||||
end
|
end
|
||||||
#tclConfig = false
|
#tclConfig = false
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue