Mercurial > mxe-octave
comparison configure.ac @ 4854:990b5e6b1970
use AC_PATH_PROG to check for ccache; use result in ccache-links Makefile rule
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 10 Oct 2018 14:39:43 -0400 |
parents | 2ee6a02e6f28 |
children | 2bffe6abd696 |
comparison
equal
deleted
inserted
replaced
4853:2ee6a02e6f28 | 4854:990b5e6b1970 |
---|---|
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 | 84 if test "$USE_CCACHE" = yes; then |
85 AC_CHECK_PROG(CCACHE, ccache, ccache) | 85 AC_PATH_PROG(CCACHE, ccache) |
86 if test -z "$CCACHE"; then | 86 if test -z "$CCACHE"; then |
87 AC_MSG_WARN([ccache program not found; not using ccache for build]) | 87 AC_MSG_WARN([ccache program not found; not using ccache for build]) |
88 USE_CCACHE=no | 88 USE_CCACHE=no |
89 fi | 89 fi |
90 fi | 90 fi |