Top Level Namespace

Defined Under Namespace

Modules: DataObject, SWIG Classes: swig_runtime_data

Instance Method Summary collapse

Instance Method Details

#config_value(type) ⇒ Object



5
6
7
# File 'ext/extconf.rb', line 5

def config_value(type)
  ENV["POSTGRES_#{type.upcase}"] || pg_config(type)
end

#have_build_envObject



13
14
15
# File 'ext/extconf.rb', line 13

def have_build_env
  have_library('pq') && have_header('libpq-fe.h') && have_header('libpq/libpq-fs.h')
end

#pg_config(type) ⇒ Object



9
10
11
# File 'ext/extconf.rb', line 9

def pg_config(type)
  IO.popen("pg_config --#{type}dir").readline.chomp rescue nil
end