OTOH, i find combinations of numbers and `strlen` confusing.  maybe just change the variable name?

    [find ... | grep -q ...]
    no_ycp_modules=$?
    AM_CONDITIONAL([HAS_YCP_MODULES], [test $no_ycp_modules = 0])