# This file was created by mkconfig.rb when ruby was built. Any # changes made to this file will be lost the next time ruby is built. module Config RUBY_VERSION == "1.8.7" or raise "ruby lib version (1.8.7) doesn't match executable version (#{RUBY_VERSION})" TOPDIR = File.dirname(__FILE__).chomp!("/lib/ruby/1.8/i386-mingw32") DESTDIR = '' unless defined? DESTDIR CONFIG = {} CONFIG["DESTDIR"] = DESTDIR CONFIG["INSTALL"] = '/usr/bin/install -c' CONFIG["EXEEXT"] = ".exe" CONFIG["prefix"] = (TOPDIR || DESTDIR + "/home/kou/.rake-compiler/ruby/ruby-1.8.7-p302") CONFIG["ruby_install_name"] = "ruby" CONFIG["RUBY_INSTALL_NAME"] = "ruby" CONFIG["RUBY_SO_NAME"] = "msvcrt-ruby18" CONFIG["MANTYPE"] = "doc" CONFIG["NROFF"] = "/usr/bin/nroff" CONFIG["configure_args"] = " '--target=i386-mingw32' '--host=i586-mingw32msvc' '--build=i686-linux' '--enable-shared' '--disable-install-doc' '--without-tk' '--without-tcl' '--prefix=/home/kou/.rake-compiler/ruby/ruby-1.8.7-p302' 'build_alias=i686-linux' 'host_alias=i586-mingw32msvc' 'target_alias=i386-mingw32'" CONFIG["vendordir"] = "$(libdir)/ruby/vendor_ruby" CONFIG["sitedir"] = "$(libdir)/ruby/site_ruby" CONFIG["sitearch"] = "i386-msvcrt" CONFIG["arch"] = "i386-mingw32" CONFIG["MAKEFILES"] = "Makefile GNUmakefile" CONFIG["EXPORT_PREFIX"] = "" CONFIG["COMMON_HEADERS"] = "windows.h winsock.h" CONFIG["COMMON_MACROS"] = "" CONFIG["COMMON_LIBS"] = "m" CONFIG["MAINLIBS"] = "" CONFIG["ENABLE_SHARED"] = "yes" CONFIG["DLDLIBS"] = "" CONFIG["SOLIBS"] = "$(LIBS)" CONFIG["LIBRUBYARG_SHARED"] = "-l$(RUBY_SO_NAME)" CONFIG["LIBRUBYARG_STATIC"] = "-l$(RUBY_SO_NAME)-static" CONFIG["LIBRUBYARG"] = "$(LIBRUBYARG_SHARED)" CONFIG["LIBRUBY"] = "lib$(LIBRUBY_SO).a" CONFIG["LIBRUBY_ALIASES"] = "" CONFIG["LIBRUBY_SO"] = "$(RUBY_SO_NAME).dll" CONFIG["LIBRUBY_A"] = "lib$(RUBY_SO_NAME)-static.a" CONFIG["RUBYW_INSTALL_NAME"] = "rubyw" CONFIG["rubyw_install_name"] = "rubyw" CONFIG["LIBRUBY_DLDFLAGS"] = " -Wl,--enable-auto-image-base,--enable-auto-import,--export-all -Wl,--out-implib=$(LIBRUBY)" CONFIG["LIBRUBY_LDSHARED"] = "i586-mingw32msvc-gcc -shared -s" CONFIG["debugflags"] = "" CONFIG["optflags"] = "" CONFIG["cflags"] = "$(optflags) $(debugflags)" CONFIG["cppflags"] = "" CONFIG["RDOCTARGET"] = "" CONFIG["ARCHFILE"] = "" CONFIG["EXTOUT"] = ".ext" CONFIG["PREP"] = "fake.rb" CONFIG["setup"] = "Setup" CONFIG["EXTSTATIC"] = "" CONFIG["STRIP"] = "strip" CONFIG["TRY_LINK"] = "" CONFIG["LIBPATHENV"] = "" CONFIG["RPATHFLAG"] = "" CONFIG["LIBPATHFLAG"] = " -L%s" CONFIG["LINK_SO"] = "" CONFIG["LIBEXT"] = "a" CONFIG["DLEXT2"] = "dll" CONFIG["DLEXT"] = "so" CONFIG["LDSHARED"] = "i586-mingw32msvc-gcc -shared -s" CONFIG["CCDLFLAGS"] = "" CONFIG["STATIC"] = "" CONFIG["ARCH_FLAG"] = "" CONFIG["DLDFLAGS"] = " -Wl,--enable-auto-image-base,--enable-auto-import,--export-all" CONFIG["ALLOCA"] = "" CONFIG["MAKEDIRS"] = "mkdir -p" CONFIG["CP"] = "cp" CONFIG["RM"] = "rm -f" CONFIG["INSTALL_DATA"] = "$(INSTALL) -m 644" CONFIG["INSTALL_SCRIPT"] = "$(INSTALL)" CONFIG["INSTALL_PROGRAM"] = "$(INSTALL)" CONFIG["SET_MAKE"] = "" CONFIG["LN_S"] = "ln -s" CONFIG["OBJDUMP"] = "i586-mingw32msvc-objdump" CONFIG["DLLWRAP"] = "i586-mingw32msvc-dllwrap" CONFIG["WINDRES"] = "i586-mingw32msvc-windres" CONFIG["NM"] = "i586-mingw32msvc-nm" CONFIG["ASFLAGS"] = "" CONFIG["AS"] = "i586-mingw32msvc-as" CONFIG["AR"] = "i586-mingw32msvc-ar" CONFIG["RANLIB"] = "i586-mingw32msvc-ranlib" CONFIG["YFLAGS"] = "" CONFIG["YACC"] = "bison -y" CONFIG["OUTFLAG"] = "-o " CONFIG["CPPOUTFILE"] = "-o conftest.i" CONFIG["GNU_LD"] = "yes" CONFIG["EGREP"] = "/bin/grep -E" CONFIG["GREP"] = "/bin/grep" CONFIG["CPP"] = "i586-mingw32msvc-gcc -E" CONFIG["OBJEXT"] = "o" CONFIG["CPPFLAGS"] = " $(DEFS) $(cppflags)" CONFIG["LDFLAGS"] = "-L. " CONFIG["CFLAGS"] = "-g -O2 $(cflags)" CONFIG["CC"] = "i586-mingw32msvc-gcc" CONFIG["target_os"] = "mingw32" CONFIG["target_vendor"] = "pc" CONFIG["target_cpu"] = "i386" CONFIG["target"] = "i386-pc-mingw32" CONFIG["host_os"] = "mingw32msvc" CONFIG["host_vendor"] = "pc" CONFIG["host_cpu"] = "i586" CONFIG["host"] = "i586-pc-mingw32msvc" CONFIG["build_os"] = "linux" CONFIG["build_vendor"] = "pc" CONFIG["build_cpu"] = "i686" CONFIG["build"] = "i686-pc-linux" CONFIG["TEENY"] = "7" CONFIG["MINOR"] = "8" CONFIG["MAJOR"] = "1" CONFIG["target_alias"] = "i386-mingw32" CONFIG["host_alias"] = "i586-mingw32msvc" CONFIG["build_alias"] = "i686-linux" CONFIG["LIBS"] = "-lshell32 -lwsock32 " CONFIG["ECHO_T"] = "" CONFIG["ECHO_N"] = "-n" CONFIG["ECHO_C"] = "" CONFIG["DEFS"] = "" CONFIG["mandir"] = "$(datarootdir)/man" CONFIG["localedir"] = "$(datarootdir)/locale" CONFIG["libdir"] = "$(exec_prefix)/lib" CONFIG["psdir"] = "$(docdir)" CONFIG["pdfdir"] = "$(docdir)" CONFIG["dvidir"] = "$(docdir)" CONFIG["htmldir"] = "$(docdir)" CONFIG["infodir"] = "$(datarootdir)/info" CONFIG["docdir"] = "$(datarootdir)/doc/$(PACKAGE)" CONFIG["oldincludedir"] = "/usr/include" CONFIG["includedir"] = "$(prefix)/include" CONFIG["localstatedir"] = "$(prefix)/var" CONFIG["sharedstatedir"] = "$(prefix)/com" CONFIG["sysconfdir"] = "$(prefix)/etc" CONFIG["datadir"] = "$(datarootdir)" CONFIG["datarootdir"] = "$(prefix)/share" CONFIG["libexecdir"] = "$(exec_prefix)/libexec" CONFIG["sbindir"] = "$(exec_prefix)/sbin" CONFIG["bindir"] = "$(exec_prefix)/bin" CONFIG["exec_prefix"] = "$(prefix)" CONFIG["PACKAGE_URL"] = "" CONFIG["PACKAGE_BUGREPORT"] = "" CONFIG["PACKAGE_STRING"] = "" CONFIG["PACKAGE_VERSION"] = "" CONFIG["PACKAGE_TARNAME"] = "" CONFIG["PACKAGE_NAME"] = "" CONFIG["PATH_SEPARATOR"] = ":" CONFIG["SHELL"] = "/bin/bash" CONFIG["ruby_version"] = "$(MAJOR).$(MINOR)" CONFIG["rubylibdir"] = "$(libdir)/ruby/$(ruby_version)" CONFIG["archdir"] = "$(rubylibdir)/$(arch)" CONFIG["sitelibdir"] = "$(sitedir)/$(ruby_version)" CONFIG["sitearchdir"] = "$(sitelibdir)/$(sitearch)" CONFIG["vendorlibdir"] = "$(vendordir)/$(ruby_version)" CONFIG["vendorarchdir"] = "$(vendorlibdir)/$(sitearch)" CONFIG["topdir"] = File.dirname(__FILE__) MAKEFILE_CONFIG = {} CONFIG.each{|k,v| MAKEFILE_CONFIG[k] = v.dup} def Config::expand(val, config = CONFIG) val.gsub!(/\$\$|\$\(([^()]+)\)|\$\{([^{}]+)\}/) do |var| if !(v = $1 || $2) '$' elsif key = config[v = v[/\A[^:]+(?=(?::(.*?)=(.*))?\z)/]] pat, sub = $1, $2 config[v] = false Config::expand(key, config) config[v] = key key = key.gsub(/#{Regexp.quote(pat)}(?=\s|\z)/n) {sub} if pat key else var end end val end CONFIG.each_value do |val| Config::expand(val) end end RbConfig = Config # compatibility for ruby-1.9 CROSS_COMPILING = nil unless defined? CROSS_COMPILING