summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorJan Djärv <jan.h.d@swipnet.se>2013-12-28 11:37:53 +0100
committerJan Djärv <jan.h.d@swipnet.se>2013-12-28 11:37:53 +0100
commitefe702196ac87ce78d753672013429018e723a9e (patch)
treecc56b15fb667e7f2b6d7979aedbfbca3f39a084e /configure.ac
parent5f27a1b07d3e7e7e38087de96f3e2934e8ed207c (diff)
downloademacs-efe702196ac87ce78d753672013429018e723a9e.tar.gz
* configure.ac: Fix CC detection for xcrun case.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac7
1 files changed, 2 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac
index 5dafb51a5cf..cf4ca9814e6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -654,15 +654,12 @@ fi
#### Choose a compiler.
dnl Sets GCC=yes if using gcc.
+AC_PROG_CC([gcc cc cl clang "$XCRUN gcc" "$XCRUN clang"])
if test -n "$XCRUN"; then
- if test -z "$CC"; then
- AC_PROG_CC([gcc cc cl clang "$XCRUN gcc" "$XCRUN clang"])
- fi
AC_CHECK_PROGS(AR, [ar "$XCRUN ar"])
test -n "$AR" && export AR
-else
- AC_PROG_CC
fi
+
AM_PROG_CC_C_O
if test x$GCC = xyes; then