Check if mmap(2) works, not just the presence of MAP_ANON
In particular, mmap(2) doesn't return an aligner pointer on Emscripten.
AC_FUNC_MMAP assumes that mmap(2) is not available when cross-compiling
except on GNU systems. Just check for function presence instead.
Include the test pre.js script only for tests.
Don't expect signals to work in Javascript
Make 'make check' actually run the tests on Emscripten.
Ignore *.mem
If -fno-strict-overflow is available, don't add -fwrapv
Remove unused and shadowed global
Add extra assert() in tests allocating memory on the heap.
Always generate libsodium.pc
Thanks @jlouis for ENaCl
Emscripten: update the list of exported functions
sodium_utils2 and sodium_utils3 cannot work in Javascript; this is expected.
Remove obsolete, undocumented compatibility layer with Sodium 0.5
Exporting crypto_box and crypto_secretbox doesn't make sense in Javascript.
Ship android-armv7.sh
The node binary was renamed nodejs on Ubuntu.
Make sodium_free() callable even if protection is PROT_NONE.
Reported by @stouset, thanks!
We can still directly call _mprotect_readwrite() instead of the high-level function.