Sha256: eb99d20e59e33d23ef0bb0252ada6b6721abf6a73dc92399045a2e368738fe37

Contents?: true

Size: 618 Bytes

Versions: 2

Compression:

Stored size: 618 Bytes

Contents

require 'mkmf'

$CFLAGS.gsub! /-O\d/, ''

if ENV['DEBUG']
  puts "setting debug flags"
  $CFLAGS << " -O0 -ggdb -DHAVE_DEBUG"
else
  $CFLAGS << " -O3"
end

find_library(*['sphinxclient', 'sphinx_create', '/opt/sphinx/lib'].compact) or
find_library(*['sphinxclient', 'sphinx_create', dir_config('libsphinxclient').last].compact) or
  raise "shared library 'libsphinxclient' not found"

find_header(*['sphinxclient.h', '/opt/sphinx/include'].compact) or
find_header(*['sphinxclient.h', dir_config('libsphinxclient').first].compact) or
  raise "header file 'sphinxclient.h' not found"

create_makefile 'rlibsphinxclient'

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
kpumuk-rlibsphinxclient-0.2.1 ext/extconf.rb
rlibsphinxclient-0.2.2 ext/extconf.rb