File: extconf.rb

package info (click to toggle)
ruby-mecab 0.99.3-2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 528 kB
  • sloc: cpp: 10,359; ruby: 59; makefile: 2
file content (12 lines) | stat: -rw-r--r-- 306 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
require 'mkmf'

mecab_config = with_config('mecab-config', 'mecab-config')
use_mecab_config = enable_config('mecab-config')

`mecab-config --libs-only-l`.chomp.split.each { | lib |
  have_library(lib)
}

$CFLAGS += ' ' + `#{mecab_config} --cflags`.chomp

have_header('mecab.h') && create_makefile('MeCab')