]> xenbits.xensource.com Git - libvirt.git/commitdiff
build: Fix build with old automake
authorJiri Denemark <jdenemar@redhat.com>
Fri, 14 Mar 2014 10:35:46 +0000 (11:35 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Wed, 19 Mar 2014 12:47:14 +0000 (13:47 +0100)
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@redhat.com>
src/Makefile.am

index 2eb7840db7ff61f9ccc6159431236017c9510b3b..5ff178bc12903e678c16ba5bdc283030223db609 100644 (file)
 ## 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.