Wed, 31 Dec 2014 07:16:47 +0100
Revert simplistic fix pending revisit of Mozilla integration attempt.
michael@0 | 1 | dnl This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | dnl License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | dnl file, You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 4 | |
michael@0 | 5 | dnl ======================================================================= |
michael@0 | 6 | dnl = Enable compiling with various compiler wrappers (distcc, ccache, etc) |
michael@0 | 7 | dnl ======================================================================= |
michael@0 | 8 | AC_DEFUN([MOZ_CHECK_COMPILER_WRAPPER], |
michael@0 | 9 | [ |
michael@0 | 10 | MOZ_ARG_WITH_STRING(compiler_wrapper, |
michael@0 | 11 | [ --with-compiler-wrapper[=path/to/wrapper] |
michael@0 | 12 | Enable compiling with wrappers such as distcc and ccache], |
michael@0 | 13 | COMPILER_WRAPPER=$withval, COMPILER_WRAPPER="no") |
michael@0 | 14 | |
michael@0 | 15 | if test "$COMPILER_WRAPPER" != "no"; then |
michael@0 | 16 | case "$CC" in |
michael@0 | 17 | $COMPILER_WRAPPER\ *) |
michael@0 | 18 | : |
michael@0 | 19 | ;; |
michael@0 | 20 | *) |
michael@0 | 21 | CC="$COMPILER_WRAPPER $CC" |
michael@0 | 22 | CXX="$COMPILER_WRAPPER $CXX" |
michael@0 | 23 | _SUBDIR_CC="$CC" |
michael@0 | 24 | _SUBDIR_CXX="$CXX" |
michael@0 | 25 | ac_cv_prog_CC="$CC" |
michael@0 | 26 | ac_cv_prog_CXX="$CXX" |
michael@0 | 27 | MOZ_USING_COMPILER_WRAPPER=1 |
michael@0 | 28 | ;; |
michael@0 | 29 | esac |
michael@0 | 30 | fi |
michael@0 | 31 | |
michael@0 | 32 | AC_SUBST(MOZ_USING_COMPILER_WRAPPER) |
michael@0 | 33 | ]) |