- git grep -w -l AC_CHECK_FUNCS modules && \
- { echo use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/ 1>&2; \
- exit 1; } || :
+ if test -d .git; then \
+ git grep -w -l AC_CHECK_FUNCS modules \
+ && { echo use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS \
+ in modules/ 1>&2; exit 1; } || : \
+ else :; fi