-# A buildsystem plugin for handling autoconf based projects
+# A debhelper build system class for handling Autoconf based projects
#
# Copyright: © 2008 Joey Hess
# © 2008-2009 Modestas Vainius
}
$this->mkdir_builddir();
- $this->doit_in_builddir($this->get_source_rel2builddir("configure"), @opts, @_);
+ eval {
+ $this->doit_in_builddir($this->get_source_rel2builddir("configure"), @opts, @_);
+ };
+ if ($@) {
+ if (-e $this->get_buildpath("config.log")) {
+ $this->doit_in_builddir("tail -v -n +0 config.log");
+ }
+ die $@;
+ }
}
-1;
+1