Mercurial > mxe-octave
comparison configure.ac @ 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 | 8fd91da9df90 |
children | 990b5e6b1970 |
comparison
equal
deleted
inserted
replaced
4852:376a01935f66 | 4853:2ee6a02e6f28 |
---|---|
79 [case $withval in | 79 [case $withval in |
80 no) USE_CCACHE=no ;; | 80 no) USE_CCACHE=no ;; |
81 yes) USE_CCACHE=yes ;; | 81 yes) USE_CCACHE=yes ;; |
82 *) AC_MSG_ERROR([bad value "$enableval" for --with-ccache]) ;; | 82 *) AC_MSG_ERROR([bad value "$enableval" for --with-ccache]) ;; |
83 esac], [USE_CCACHE=no]) | 83 esac], [USE_CCACHE=no]) |
84 if test "$USE_CCACHE" = yes; then | |
85 AC_CHECK_PROG(CCACHE, ccache, ccache) | |
86 if test -z "$CCACHE"; then | |
87 AC_MSG_WARN([ccache program not found; not using ccache for build]) | |
88 USE_CCACHE=no | |
89 fi | |
90 fi | |
84 AC_SUBST(USE_CCACHE) | 91 AC_SUBST(USE_CCACHE) |
85 | 92 |
86 AC_ARG_WITH([msys2], | 93 AC_ARG_WITH([msys2], |
87 [AS_HELP_STRING([--with-msys2], [use msys2 in windows distribution (default: yes)])], | 94 [AS_HELP_STRING([--with-msys2], [use msys2 in windows distribution (default: yes)])], |
88 [case $withval in | 95 [case $withval in |