From 96a48437e800d2ca35ae72df3d84c6765a8a869e Mon Sep 17 00:00:00 2001 From: Hilko Bengen Date: Tue, 22 Jan 2019 18:10:47 +0100 Subject: [PATCH] configure: Introduce CLANG variable Gbp-Pq: Name configure-clang-variable.patch --- configure.ac | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/configure.ac b/configure.ac index ba36ef90..a8e7dcdf 100644 --- a/configure.ac +++ b/configure.ac @@ -38,6 +38,15 @@ AC_SUBST([CLANG]) + AC_ARG_WITH([clang], + [CLANG compiler], + [CLANG="$withval"], + [AS_IF([test "$compiler" = clang], + [CLANG="$CC"], + [AC_PATH_PROG([CLANG],[clang])])]) + + AC_SUBST([CLANG]) + case "$compiler" in clang) CLANG_CFLAGS="-Wextra -Werror-implicit-function-declaration -Wno-error=unused-command-line-argument" -- 2.30.2