configure: Build perl bindings only if a perl interpreter is available.