]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
configure: fix llc detection on recent Debian 5727/head
authorEric Leblond <eric@regit.org>
Tue, 5 Jan 2021 20:40:33 +0000 (21:40 +0100)
committerVictor Julien <victor@inliniac.net>
Thu, 14 Jan 2021 11:49:41 +0000 (12:49 +0100)
Where clang --version was returning:

clang version 9.0.1-15+b1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

Newer version like clang-10 on Debian are returning:

Debian clang version 10.0.1-8+b1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

As a result the parsing was failing to determine which llc was
available on the system.

configure.ac

index cb6c1559bd7d7a97c4fbb407e771456974c8732a..4cbbe7249fdb1dc27822f85551aae86484ae8c20 100644 (file)
           [
             AS_IF([test "$CLANG" != no],
                   [
-                    llc_candidates=$($CLANG --version | \
+                    llc_candidates=$($CLANG --version | sed -e 's/.*clang version/clang version/' | \
                       awk '/^clang version/ {
                              split($3, v, ".");
                              printf("llc-%s.%s llc-%s llc", v[[1]], v[[2]], v[[1]])