]> git.donarmstrong.com Git - debhelper.git/blobdiff - Debian/Debhelper/Buildsystem/autoconf.pm
Implement source directory switching support (Closes: #530597).
[debhelper.git] / Debian / Debhelper / Buildsystem / autoconf.pm
index d7018bb253156db22d659483269420afc0420e2d..5a5537260a6f2dc4ae5dba8555ad9fe5d194a7e7 100644 (file)
@@ -7,8 +7,6 @@
 package Debian::Debhelper::Buildsystem::autoconf;
 
 use strict;
-use File::Spec;
-use Debian::Debhelper::Dh_Lib;
 use base 'Debian::Debhelper::Buildsystem::makefile';
 
 sub DESCRIPTION {
@@ -21,7 +19,7 @@ sub check_auto_buildable {
 
        # Handle configure; the rest - next class
        if ($step eq "configure") {
-               return -x "configure";
+               return -x $this->get_sourcepath("configure");
        }
        return 0;
 }
@@ -50,7 +48,7 @@ sub configure {
        }
 
        $this->mkdir_builddir();
-       $this->doit_in_builddir($this->get_rel2builddir_path("configure"), @opts, @_);
+       $this->doit_in_builddir($this->get_source_rel2builddir("configure"), @opts, @_);
 }
 
 1;