summaryrefslogtreecommitdiffstats
path: root/resize
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-06-17 22:59:46 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-06-18 15:32:47 +0100
commit50aa9533e4a505e1c64dbedddb30491bfbb755d6 (patch)
treefeb5d243609ab2b59ce29b6300a21fba36935499 /resize
parentdd216fedbdacfd641c2da4073ae26d3ccb6098a6 (diff)
downloadlibguestfs-50aa9533e4a505e1c64dbedddb30491bfbb755d6.tar.gz
libguestfs-50aa9533e4a505e1c64dbedddb30491bfbb755d6.tar.xz
libguestfs-50aa9533e4a505e1c64dbedddb30491bfbb755d6.zip
build: Define builddir and abs_srcdir when they are missing.
RHEL 5-era autoconf did not define these, so define them manually when they are missing. Define builddir as '.' The scripts require this. It won't work in the srcdir != builddir case, but we don't care about that for RHEL 5. This commit also moves the builddir / abs_srcdir variable setting above the include of subdir-rules.mk, in case that include uses these variables. Useful script: for f in $(find -name Makefile.am | xargs fgrep '$(abs_srcdir)' -l) ; do if ! grep -q '^abs_srcdir' $f; then echo missing in $f fi done
Diffstat (limited to 'resize')
-rw-r--r--resize/Makefile.am6
1 files changed, 6 insertions, 0 deletions
diff --git a/resize/Makefile.am b/resize/Makefile.am
index 00f5e350..8d87ab97 100644
--- a/resize/Makefile.am
+++ b/resize/Makefile.am
@@ -15,6 +15,12 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+# Old RHEL 5 autoconf doesn't have builddir.
+builddir ?= .
+
+# Old RHEL 5 autoconf doesn't have abs_srcdir.
+abs_srcdir ?= $(shell cd $(top_srcdir)/resize && pwd)
+
include $(top_srcdir)/subdir-rules.mk
EXTRA_DIST = \