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