From f448f3ce6b84eac51c73741acd3cb58c6d60e94e Mon Sep 17 00:00:00 2001 From: Zivago Lee Date: Wed, 21 Jan 2015 15:55:02 -0800 Subject: [PATCH] add opt paths --- ext/extconf.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ext/extconf.rb b/ext/extconf.rb index 97c32cc..4105cf0 100644 --- a/ext/extconf.rb +++ b/ext/extconf.rb @@ -1,5 +1,19 @@ require 'mkmf' +HEADER_DIRS = [ + '/opt/flydata/include', + '/usr/local/include', + '/usr/include', +] + +LIB_DIRS = [ + '/opt/flydata/lib', + '/usr/local/lib', + '/usr/lib', +] + +dir_config('replication', HEADER_DIRS, LIB_DIRS) + if have_library('stdc++') and have_library('replication') create_makefile('binlog') end