Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Correct --prefix option for the various ./configure commands

  • Loading branch information...
commit c299649c5eeb06a19a1fb73b6e07a2de8efd2585 1 parent 46aee92
Jason Smith jhs authored
2  tasks/couchdb.rake
View
@@ -66,7 +66,7 @@ namespace :couchdb do
Dir.mktmpdir 'couchdb-build' do |dir|
Dir.chdir dir do
show_file("config.log") do
- sh(configure_cmd(source, :prefix => true))
+ sh(configure_cmd(source, :prefix => :couch))
end
gmake
2  tasks/curl.rake
View
@@ -15,7 +15,7 @@ namespace :curl do
Dir.mktmpdir 'curl-build' do |dir|
Dir.chdir dir do
show_file("config.log") do
- sh(configure_cmd(source, :prefix => true))
+ sh(configure_cmd(source, :prefix => :deps))
end
gmake
2  tasks/environment.rake
View
@@ -40,7 +40,7 @@ namespace :environment do
puts "export PATH=\"#{BUILD}/bin:$PATH\""
end
puts "export DYLD_LIBRARY_PATH=\"#{BUILD}/lib:$DYLD_LIBRARY_PATH\"" if DISTRO[0] == :osx
- puts(configure_cmd(".", :prefix => false))
+ puts(configure_cmd(".", :prefix => nil))
end
end
7 tasks/lib.rb
View
@@ -302,7 +302,12 @@ def configure_cmd(source, opts={})
ldflags += ' -llber' if DISTRO[0] == :solaris
env = "LDFLAGS='#{ldflags}' CFLAGS='-I#{BUILD}/include/js'"
- prefix = (opts[:prefix].nil? || opts[:prefix]) ? "--prefix=#{COUCH_BUILD}" : ""
+
+ # Determine whether to use a --prefix parameter. Default is to use it.
+ prefix = ""
+ prefix = "--prefix='#{COUCH_BUILD}'" if prefix == :couch
+ prefix = "--prefix='#{BUILD}'" if prefix == :deps
+
return "env #{env} #{source}/configure #{prefix} --with-erlang=#{BUILD}/lib/erlang/usr/include"
end
Please sign in to comment.
Something went wrong with that request. Please try again.