From fcdf75d9460c933670a03b5d88de17838db23ee2 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Fri, 23 Sep 2016 17:05:54 +0200 Subject: [PATCH] Makefile.in: check JAVA_HOME/bin, not JAVA_HOME/include On Mac OS X 10.8, the directory contains "bin" but not "include", so it re-runs autogen.sh all the time. JAVA_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Change-Id: I9065c8daef47df535f60267fc2c3e7cb23fc3910 --- Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index 15bbf4b9e873..4a16e462b357 100644 --- a/Makefile.in +++ b/Makefile.in @@ -47,7 +47,7 @@ $(BUILDDIR)/config_host.mk : $(wildcard \ $(BUILDDIR)/autogen.sh \ ) \ $(shell . $(SRCDIR)/bin/get_config_variables JAVA_HOME && \ - if test -n "$${JAVA_HOME}" -a ! -d "$${JAVA_HOME}/include"; then echo force-restart; fi) + if test -n "$${JAVA_HOME}" -a ! -d "$${JAVA_HOME}/bin"; then echo force-restart; fi) sh -c $(SRCDIR)/autogen.sh else # MAKE_RESTARTS