diff --git a/lib/rbpkg/repo.rb b/lib/rbpkg/repo.rb
index 085e9df..418771e 100644
--- a/lib/rbpkg/repo.rb
+++ b/lib/rbpkg/repo.rb
@@ -11,6 +11,8 @@ class Rbpkg::Repo
cmd! "cd #{sh_quote(src_dir)} && #{autogen_env} ./autogen"
elsif File.exists?("#{src_dir}/autogen.sh")
cmd! "cd #{sh_quote(src_dir)} && #{autogen_env} sh autogen.sh"
+ elsif File.executable?("#{src_dir}/bootstrap")
+ cmd! "cd #{sh_quote(src_dir)} && #{autogen_env} ./bootstrap"
end
end
@@ -98,7 +100,7 @@ class Rbpkg::Repo
def clean_configure
verbose 3, "repo(#{name.inspect}).clean_configure"
- tag_remove("configure-done")
+ tag_remove("configure-done") if tag_present?("configure-done")
end
def clean_fake
diff --git a/lib/rbpkg/repos/libffi.rb b/lib/rbpkg/repos/libffi.rb
index 6c11f3e..638effd 100644
--- a/lib/rbpkg/repos/libffi.rb
+++ b/lib/rbpkg/repos/libffi.rb
@@ -9,7 +9,7 @@ class Rbpkg::Repos::Libffi < Rbpkg::Repo
end
def autogen_env
- "AUTOCONF_VERSION=2.71"
+ "AUTOCONF_VERSION=2.69"
end
def configure_env