Support --disable-* switches to disable features.

For example, --disable-jpeg unconditionally disables both checks jpeg
support and checks for libjpeg.
Add dummy --enable-* options.

We have a bunch of helper functions which either return --enable-foo or
--disable-foo in Gentoo. If only the latter were supported, those
helpers won't be that helpful, so just add dummy --enable-* :).