Skip to content

Commit

Permalink
hopefully fixed install problems on all platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Kaes committed May 15, 2011
1 parent e5ee4b7 commit 1d551ad
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions ext/extconf.rb
@@ -1,15 +1,20 @@
require 'mkmf'

lib="uuid"

if File.exist?(`which uuid-config`.chomp)
lib = `uuid-config --libs`.chomp.gsub(/-l/, '')
$CFLAGS << " -Wall " << `uuid-config --cflags`.chomp
$LDFLAGS << " " << `uuid-config --ldflags`.chomp
end

if !have_library('uuid')
puts "OSSP uuid library required -- not found."
unless have_library(lib, 'uuid_export')
puts "OSSP uuid library '#{lib}' required -- not found."
exit 1
end

create_makefile('uuid4r')

File.open("Makefile", "a") << <<-EOT
check: $(DLLIB)
Expand Down

0 comments on commit 1d551ad

Please sign in to comment.