```ruby
require 'mkmf'

dir_config("superredcloth_scan")
have_library("c", "main")

create_makefile("superredcloth_scan")
```

Fix for OS X Leopard [Johan Sorensen]
user
```ruby
require 'mkmf'

if /darwin9/ =~ RUBY_PLATFORM
  # OSX 10.5 doesn't like the default "-Os"
  $CFLAGS << " -O1 "
end

dir_config("superredcloth_scan")
have_library("c", "main")

create_makefile("superredcloth_scan")
```
assistant