From: Hilko Bengen Date: Tue, 22 Jan 2019 17:10:47 +0000 (+0100) Subject: configure: Introduce CLANG variable X-Git-Tag: archive/raspbian/1%6.0.6-1+rpi1^2~7 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b6907959731deec14b25d9fbda412e425b98364d;p=suricata.git configure: Introduce CLANG variable Gbp-Pq: Name configure-clang-variable.patch --- 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"