From b4f52e75fdd10db6148b868920a76934f8d42cb3 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sun, 20 Nov 2016 23:51:28 -0800 Subject: configure: move Darwin check into Makefile. * Makefile (conftest.darwin): New phony target. * configure: Always do Darwin check via make conftest.darwin. --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 9298d6f1..1939ff55 100644 --- a/Makefile +++ b/Makefile @@ -469,6 +469,12 @@ conftest.yacc: conftest.ccver: $(V)$(TXR_CC) --version +.PHONY: conftest.darwin +conftest.darwin: + $(V)if echo | $(CC) -dM -E - | grep -s __APPLE__ > /dev/null 2>&1 ; then \ + echo yes ; \ + fi + .PHONY: conftest.clean conftest.clean: $(V)rm -f conftest$(EXE) conftest.[co] \ -- cgit v1.2.3