--- mkconfig.rb 2003-08-05 11:27:20.000000000 +0200 +++ mkconfig.rb 2005-03-31 09:18:17.000000000 +0200 @@ -107,7 +107,7 @@ print v_fast, v_others print <<EOS CONFIG["ruby_version"] = "$(MAJOR).$(MINOR)" - CONFIG["rubylibdir"] = "$(libdir)/ruby/$(ruby_version)" + CONFIG["rubylibdir"] = "$(prefix)/lib/ruby/$(ruby_version)" - CONFIG["archdir"] = "$(rubylibdir)/$(arch)" + CONFIG["archdir"] = "$(prefix)/lib/ruby/$(ruby_version)/$(arch)" CONFIG["sitelibdir"] = "$(sitedir)/$(ruby_version)" CONFIG["sitearchdir"] = "$(sitelibdir)/$(sitearch)" --- ext/tk/extconf.rb 2008-04-09 16:15:24.000000000 +0200 +++ ext/tk/extconf.rb 2008-06-08 23:22:59.000000000 +0200 @@ -40,6 +40,11 @@ have_library("m", "log") end +$lib = "lib" +if RUBY_PLATFORM =~ /(x86_64|powerpc64)-linux/ + $lib = "lib64" +end + tk_idir, tk_ldir = dir_config("tk") tcl_idir, tcl_ldir = dir_config("tcl") x11_idir, x11_ldir = dir_config("X11") @@ -95,7 +100,7 @@ end def find_tcl(tcllib, stubs, version, *opt_paths) - default_paths = ["/usr/local/lib", "/usr/pkg/lib", "/usr/lib"] + default_paths = ["/usr/local/#{$lib}", "/usr/pkg/lib", "/usr/#{$lib}"] default_paths << "/Tcl/lib" # default for ActiveTcl if (paths = opt_paths.compact).empty? @@ -138,7 +143,7 @@ end def find_tk(tklib, stubs, version, *opt_paths) - default_paths = ["/usr/local/lib", "/usr/pkg/lib", "/usr/lib"] + default_paths = ["/usr/local/#{$lib}", "/usr/pkg/lib", "/usr/#{$lib}"] default_paths << "/Tcl/lib" # default for ActiveTcl if (paths = opt_paths.compact).empty? @@ -182,7 +187,7 @@ def find_X11(*opt_paths) default_paths = - [ "/usr/X11/lib", "/usr/lib/X11", "/usr/X11R6/lib", "/usr/openwin/lib" ] + [ "/usr/X11/#{$lib}", "/usr/#{$lib}/X11", "/usr/X11R6/#{$lib}", "/usr/openwin/lib" ] paths = opt_paths.compact.concat(default_paths) st = find_library("X11", "XOpenDisplay", *paths) unless st --- configure.in 2008-06-10 11:13:48.000000000 +0200 +++ configure.in 2008-06-10 11:14:35.000000000 +0200 @@ -1685,7 +1685,7 @@ rubyw_install_name="$RUBYW_INSTALL_NAME" ;; esac -RUBY_LIB_PREFIX=`eval echo \\"${libdir}/ruby\\"` +RUBY_LIB_PREFIX=`eval echo \\"${prefix}/lib/ruby\\"` AC_ARG_WITH(sitedir, [ --with-sitedir=DIR site libraries in DIR [[LIBDIR/ruby/site_ruby]]],