configure: support auto-conf style options with arguments

Support all the following formats:
-prefix $$PWD, --prefix $$PWD, --prefix=$$PWD

For the following options:
- make & nomake
- prefix, libdir, bindir, headerdir & featuredir
- qmake & spec