From: Simon Ruderich Date: Sun, 18 Mar 2012 00:22:18 +0000 (+0100) Subject: Handle another configure false positive. X-Git-Tag: 0.01~93 X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=4a486ed36d77fd9d0f7ce1d3f5141beb582f930d;p=blhc%2Fblhc.git Handle another configure false positive. --- diff --git a/bin/blhc b/bin/blhc index 0b4b681..ee98a89 100755 --- a/bin/blhc +++ b/bin/blhc @@ -335,7 +335,7 @@ while (my $line = <>) { # # `./configure` output. next if not $non_verbose and $line =~ /^checking /; - next if $line =~ /^\s*(?:C|c)ompiler[\s.]*:\s+$cc_regex(?:\s-std=[a-z0-9:+]+)?\s*$/ + next if $line =~ /^\s*(?:C )?(?:C|c)ompiler[\s.]*:\s+$cc_regex(?:\s-std=[a-z0-9:+]+)?\s*$/ or $line =~ /^\s*(?:- )?(?:CC|CXX)\s*=\s*$cc_regex\s*$/ or $line =~ /^\s*-- Check for working (?:C|CXX) compiler: / or $line =~ /^\s*(?:echo )?Using [A-Z_]+\s*=\s*/; diff --git a/t/logs/configure b/t/logs/configure index f8e1a27..ba830e7 100644 --- a/t/logs/configure +++ b/t/logs/configure @@ -6,6 +6,8 @@ Compiler: gcc compiler : gcc -std=gnu99 + C Compiler: gcc -std=gnu99 + - General Compile FLAGS - CC = mpicc - CXX = g++