Re: [PATCH] build: Fix build with old automake

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 14.3.2014 11:43, Jiri Denemark wrote:
Ancient automake (such as from RHEL5) does not provide abs_srcdir and
abs_builddir variables which are used by a recent commit of mine
(e562e82).

Signed-off-by: Jiri Denemark <jdenemar@xxxxxxxxxx>
---
  src/Makefile.am | 4 ++++
  1 file changed, 4 insertions(+)

diff --git a/src/Makefile.am b/src/Makefile.am
index d4d7b2b..fce9056 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -16,6 +16,10 @@
  ## License along with this library.  If not, see
  ## <http://www.gnu.org/licenses/>.

+# old automake does not provide abs_{src,build}dir variables
+abs_builddir = $(shell pwd)
+abs_srcdir = $(shell cd $(srcdir) && pwd)
+
  # No libraries with the exception of LIBXML should be listed
  # here. List them against the individual XXX_la_CFLAGS targets
  # that actually use them. Also keep GETTEXT_CPPFLAGS at the end.


Tested on RHEL-5 and it works, ACK

Pavel

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]