[x264-devel] configure: Fix clang detection with versioned binaries

Henrik Gramner git at videolan.org
Mon Jun 13 23:44:53 CEST 2016


x264 | branch: master | Henrik Gramner <henrik at gramner.com> | Sun Apr 24 13:32:43 2016 +0200| [b6267e0ff770545de88dfb5d3f176ea73f453730] | committer: Henrik Gramner

configure: Fix clang detection with versioned binaries

Correctly detect clang binaries that has the version number appended
as a suffix to the file name, e.g. `clang38`.

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=b6267e0ff770545de88dfb5d3f176ea73f453730
---

 configure |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index 7c01ebc..dcf7765 100755
--- a/configure
+++ b/configure
@@ -558,7 +558,7 @@ else
     fi
 fi
 
-if [[ "$cc_base" = clang || "$cc_base" = clang[\ .]* ]]; then
+if [[ "$cc_base" = clang* ]]; then
     if cc_check '' -Werror=unknown-warning-option ; then
         CHECK_CFLAGS="$CHECK_CFLAGS -Werror=unknown-warning-option"
     fi



More information about the x264-devel mailing list