Description: Use RbConfig module instead of deprecated Config one

Author: David Suárez <david.sephirot@gmail.com>
Last-Update: 2015-08-14


--- a/bdbxml1/extconf.rb
+++ b/bdbxml1/extconf.rb
@@ -1,6 +1,7 @@
 # VERIFY 'myconfig' then comment this line
 
 require 'mkmf'
+require 'rbconfig'
 load './myconfig'
 
 $DLDFLAGS ||= ""
@@ -13,7 +14,7 @@ def addld(key, path, lib)
 	     "-l#{lib}"
 	  end
    if path
-      case Config::CONFIG["arch"]
+      case RbConfig::CONFIG["arch"]
       when /solaris2/
 	 libs = " -L#{path} -R#{path} #{libs}"
       when /linux/
--- a/bdbxml2/extconf.rb
+++ b/bdbxml2/extconf.rb
@@ -1,6 +1,7 @@
 # VERIFY 'myconfig' then comment this line
 
 require 'mkmf'
+require 'rbconfig'
 load './myconfig'
 
 $DLDFLAGS ||= ""
@@ -13,7 +14,7 @@ def addld(key, path, lib)
 	     "-l#{lib}"
 	  end
    if path
-      case Config::CONFIG["arch"]
+      case RbConfig::CONFIG["arch"]
       when /solaris2/
 	 libs = " -L#{path} -R#{path} #{libs}"
       when /linux/
--- a/src/extconf.rb
+++ b/src/extconf.rb
@@ -2,6 +2,7 @@
 ARGV.collect! {|x| x.sub(/^--with-db-prefix=/, "--with-db-dir=") }
 
 require 'mkmf'
+require 'rbconfig'
 
 if ARGV.include?('--help') || ARGV.include?('-h')
    puts <<EOT
@@ -36,16 +37,16 @@ end
 
 if unknown = enable_config("unknown")
    libs = if CONFIG.key?("LIBRUBYARG_STATIC")
-	     Config::expand(CONFIG["LIBRUBYARG_STATIC"].dup).sub(/^-l/, '')
+	     RbConfig::expand(CONFIG["LIBRUBYARG_STATIC"].dup).sub(/^-l/, '')
 	  else
-	     Config::expand(CONFIG["LIBRUBYARG"].dup).sub(/lib([^.]*).*/, '\\1')
+	     RbConfig::expand(CONFIG["LIBRUBYARG"].dup).sub(/lib([^.]*).*/, '\\1')
 	  end
    unknown = find_library(libs, "ruby_init", 
-			  Config::expand(CONFIG["archdir"].dup))
+			  RbConfig::expand(CONFIG["archdir"].dup))
 end
 
 inc_dir, lib_dir = dir_config("db", "/usr/include", "/usr/lib")
-case Config::CONFIG["arch"]
+case RbConfig::CONFIG["arch"]
 when /solaris2/
    $DLDFLAGS ||= ""
    $DLDFLAGS += " -R#{lib_dir}"
