From e3b2bb78e19b155a46379b64dcc13699399a32cc Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sun, 30 May 2021 18:06:35 +0200 Subject: fixed Clang builds `-fno-optimize-strlen` is not supported on Clang and there is no way to ignore unknown arguments. --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 38d33bf..cca1cd3 100644 --- a/configure.ac +++ b/configure.ac @@ -56,6 +56,7 @@ AC_PROG_CC # FIXME: We want -std=gnu11 AC_PROG_CC_C99 AC_PROG_SED +AC_PROG_GREP AC_PROG_INSTALL # Mainly because of Scintilla, which depends on @@ -75,6 +76,9 @@ AC_PROG_CXX AX_CXX_COMPILE_STDCXX(11, noext, mandatory) AC_CHECK_TOOL(AR, ar) +# Whether $CC is Clang +AM_CONDITIONAL(CLANG, [$CC --version | $GREP -i clang >/dev/null]) + # Check for Windows resource compiler and define # WIN32 conditional case $host in -- cgit v1.2.3