ext/extconf.rb in ferocia-rubywmq-2.0.7 vs ext/extconf.rb in ferocia-rubywmq-2.1.1
- old
+ new
@@ -13,10 +13,11 @@
require 'generate_const'
require 'generate_structs'
include_path = ''
if RUBY_PLATFORM =~ /win|mingw/i
- include_path = 'C:\Program Files\IBM\WebSphere MQ\tools\c\include'
+ x86_path = 'C:\Program Files (x86)\IBM\WebSphere MQ\tools\c\include'
+ include_path = File.directory?(x86_path) ? x86_path : 'C:\Program Files\IBM\WebSphere MQ\tools\c\include'
dir_config('mqm', include_path, '.')
else
include_path = '/opt/mqm/inc'
lib64_path = '/opt/mqm/lib64'
lib_path = File.directory?(lib64_path) ? lib64_path : '/opt/mqm/lib'