summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-09-16 20:36:16 +0000
committerEric Christopher <echristo@apple.com>2011-09-16 20:36:16 +0000
commit42634836e999dfcb59f1f5ea50dfd33442be4b9a (patch)
tree607631ee5cc429f2087830d846db12d929bf3e89 /configure
parent3335029b1f4cd663411277aa2f93b4eaa7a0289e (diff)
downloadllvm-42634836e999dfcb59f1f5ea50dfd33442be4b9a.tar.gz
llvm-42634836e999dfcb59f1f5ea50dfd33442be4b9a.tar.bz2
llvm-42634836e999dfcb59f1f5ea50dfd33442be4b9a.tar.xz
Have the llvm configure process look for clang, then llvm-gcc, and then gcc
on all platforms. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139934 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 4 insertions, 4 deletions
diff --git a/configure b/configure
index e049b5bd62..18b7d6da43 100755
--- a/configure
+++ b/configure
@@ -5817,7 +5817,7 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test -n "$ac_tool_prefix"; then
- for ac_prog in gcc
+ for ac_prog in clang llvm-gcc gcc
do
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
@@ -5861,7 +5861,7 @@ fi
fi
if test -z "$CC"; then
ac_ct_CC=$CC
- for ac_prog in gcc
+ for ac_prog in clang llvm-gcc gcc
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
@@ -6386,7 +6386,7 @@ if test -z "$CXX"; then
CXX=$CCC
else
if test -n "$ac_tool_prefix"; then
- for ac_prog in g++
+ for ac_prog in clang++ llvm-g++ g++
do
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
@@ -6430,7 +6430,7 @@ fi
fi
if test -z "$CXX"; then
ac_ct_CXX=$CXX
- for ac_prog in g++
+ for ac_prog in clang++ llvm-g++ g++
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2