Mercurial > mxe-octave
changeset 4853:2ee6a02e6f28
check for ccache; don't attempt to use ccache if it is missing (bug #54746)
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 10 Oct 2018 14:31:19 -0400 |
parents | 376a01935f66 |
children | 990b5e6b1970 |
files | configure.ac |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/configure.ac Mon Oct 08 09:13:55 2018 -0400 +++ b/configure.ac Wed Oct 10 14:31:19 2018 -0400 @@ -81,6 +81,13 @@ yes) USE_CCACHE=yes ;; *) AC_MSG_ERROR([bad value "$enableval" for --with-ccache]) ;; esac], [USE_CCACHE=no]) +if test "$USE_CCACHE" = yes; then + AC_CHECK_PROG(CCACHE, ccache, ccache) + if test -z "$CCACHE"; then + AC_MSG_WARN([ccache program not found; not using ccache for build]) + USE_CCACHE=no + fi +fi AC_SUBST(USE_CCACHE) AC_ARG_WITH([msys2],