require 'mkmf' begin # for the exception SystemExit $:.unshift File.dirname(__FILE__) require 'type' if( ARGV.include?("--help") ) print < --with-callback= --enable-asm use the embedded assembler for passing arguments. (this option is available for i386 machine now.) --enable-dlstack use a stack emulation for constructing function call. EOF exit(0) end ($CPPFLAGS || $CFLAGS) << " -I." if (Config::CONFIG['CC'] =~ /gcc/) # from Win32API $CFLAGS << " -fno-defer-pop -fno-omit-frame-pointer" end if (Config::CONFIG['CC'] =~ /gcc/) && (Config::CONFIG['arch'] =~ /i.86/) $with_asm = true else $with_asm = false end $with_dlstack = ! $with_asm $with_type_int = try_cpp(<\n") exit(1) end end max_arg ||= 6 max_callback = with_config("callback","10").to_i callback_types = DLTYPE.keys.length $dlconfig_h = <