lib/autobuild/packages/autotools.rb in autobuild-1.5.29 vs lib/autobuild/packages/autotools.rb in autobuild-1.5.30
- old
+ new
@@ -144,10 +144,16 @@
regen_target = create_regen_target
file configurestamp => regen_target
end
+ # If set to true, configure will be called with --no-create and
+ # ./config.status will be started each time before "make"
+ #
+ # In general, you should not need that.
+ attr_accessor :force_config_status
+
private
def autodetect_needed_stages
# Autodetect autoconf/aclocal/automake
#
# Let the user disable the use of autoconf explicitely by using 'false'.
@@ -214,11 +220,15 @@
# Configure the builddir directory before starting make
def configure
super do
Dir.chdir(builddir) do
- command = [ "#{srcdir}/configure", "--no-create", "--prefix=#{prefix}" ]
+ command = [ "#{srcdir}/configure"]
+ if force_config_status
+ command << "--no-create"
+ end
+ command << "--prefix=#{prefix}"
command += Array[*configureflags]
progress "configuring build system for %s"
Subprocess.run(self, 'configure', *command)
end
@@ -227,10 +237,12 @@
# Do the build in builddir
def build
Dir.chdir(builddir) do
progress "building %s [progress not available]"
- Subprocess.run(self, 'build', './config.status')
+ if force_config_status
+ Subprocess.run(self, 'build', './config.status')
+ end
Subprocess.run(self, 'build', Autobuild.tool(:make), "-j#{parallel_build_level}")
end
Autobuild.touch_stamp(buildstamp)
end