Better handling of Groonga repository
Detect Ubuntu more smartly
Install groonga-devel instead of libgroonga-dev.

libgroonga-dev is for Debian.
Use logical name for a flag