]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Makefile: workaround an automake bug for "make check"
authorKefu Chai <kchai@redhat.com>
Fri, 12 Feb 2016 15:52:56 +0000 (23:52 +0800)
committerNathan Cutler <ncutler@suse.com>
Fri, 19 Feb 2016 19:22:35 +0000 (20:22 +0100)
override the automake variable of am__is_gnu_make. it is a workaround
for http://debbugs.gnu.org/cgi/bugreport.cgi?bug=18744. this bug was
fixed in automake 1.15, but automake 1.13 is supported. so we can not
just require 1.15 using `AM_INIT_AUTOMAKE`. this only happens when we
have lots of source files *and* we are using automake v1.14 or lower.

Fixes: #14723
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 19391b71497555c9bcc37b1e063fd4895df605c5)

src/Makefile.am

index 92706c850858e64fdeef89d54f8b68261060abce..100d4bf5b8657e13e2710d2147f5c02f447078d9 100644 (file)
@@ -1,5 +1,20 @@
 include Makefile-env.am
 
+# a workaround for http://debbugs.gnu.org/cgi/bugreport.cgi?bug=18744, this
+# bug was fixed in automake 1.15, but automake 1.13 is supported by us.  so
+# we can not just require 1.15 using `AM_INIT_AUTOMAKE`
+am__is_gnu_make = { \
+  if test -z '$(MAKELEVEL)'; then \
+    false; \
+  elif test -n '$(MAKE_HOST)'; then \
+    true; \
+  elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
+    true; \
+  else \
+    false; \
+  fi; \
+}
+
 SUBDIRS += ocf java
 DIST_SUBDIRS += gmock ocf java