From: Jan Djärv Date: Sat, 28 Dec 2013 10:37:53 +0000 (+0100) Subject: * configure.ac: Fix CC detection for xcrun case. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~143 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=efe702196ac87ce78d753672013429018e723a9e;p=emacs.git * configure.ac: Fix CC detection for xcrun case. --- 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