All Makefiles in extra folder were using gcc instead of $(CC), fix this
to allow cross-compilation
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Previously extras relied on ../../src which only exists in the end user
distributable. It's better to run tools/configure.py because the extras
will then work both from the main repo and the distributable. Also the
configure.py will be more apparent and maybe picked up by the user.
* Tolerate Proxy setup errors in case Proxy throws (= disabled).
* Fix bug in JX encoding error handling. Incorrect quote marks caused
value to be number coerced (+v) rather than string coerced (''+v).
* Fix typo in type name (duk_int -> duk_int_t)
* Fix value stack index usage for safe call, was using positive indices
* Add exitcode to test.c so that 'make test' errors out
* Add exitcode to other extras too where applicable