Skip to content

Commit

Permalink
Allow the location of lib-oniguruma to be passed in
Browse files Browse the repository at this point in the history
For example, to install via ports on Mac OS X 10.5:
sudo port install oniguruma5
sudo gem install oniguruma -- --with-onig-dir=/opt/local
  • Loading branch information
indirect committed Dec 15, 2008
1 parent 47ec5be commit ea02a11
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions ext/extconf.rb
@@ -1,4 +1,9 @@
require 'mkmf'
have_library("onig")
$CFLAGS='-Wall'
create_makefile( "oregexp" )
dir_config("onig")
if have_library("onig")
$CFLAGS='-Wall'
create_makefile( "oregexp" )
else
puts "Cannot find lib-oniguruma. Set location with e.g. --with-onig-dir=/opt/local"
exit 1
end

0 comments on commit ea02a11

Please sign in to comment.