[PATCH] configure: Fix the check for CAPI support.