aboutsummaryrefslogtreecommitdiff
path: root/m4/check-libc.m4 (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add inet_ntop and memmem for ocspcheckkinichiro2017-01-261-2/+3
|
* Move strsep.c to crypto/compat/ and add ocspcheck build to CMakekinichiro2017-01-251-0/+3
|
* add open(2) shim to handle O_BINARY and O_CLOEXECBrent Cook2017-01-161-0/+1
|
* include pipe2/socketpair compat for macOSBrent Cook2017-01-151-1/+3
|
* Fix to use -export-symbols for libcryptokinichiro2017-01-151-0/+70
| | | | - generating platform specific crypto/crypto_portable.sym from crypto.sym
* Sync getentropy() checks with use-builtin-arc4random checksSimone Basso2016-12-101-29/+14
| | | | | Without this, we actually fail to build a library that includes the bultin getentropy when compiling for 10.11 on 10.12.
* m4/check-libc.m4: improve getentropy checkSimone Basso2016-12-091-17/+23
| | | | | | | | | | | | | | | | | - according to man.openbsd.org getentropy() is in unistd.h - according to macOS sierra's man it's in sys/random.h - since sys/random.h is does not exist for iOS and for linux, do not attempt to include it, rather redeclare the prototype - make sure that `./configure`: - uses getentropy() on macOS sierra - does not use getentropy() if compiling for 10.11 - does not use getentropy() if compiling for ios armv7
* configure: fix getentropy() for sierra and iosSimone Basso2016-12-091-1/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This diff changes the logic by which configure detects getentropy() to ensure that we don't use the system wide getentropy - with macOS sierra if the deployment target is lower than sierra as found by tor developers here https://gitweb.torproject.org/tor.git/commit/?id=https://gitweb.torproject.org/tor.git/commit/?id=16fcbd21c963a9a65bf55024680c8323c8b7175d - with iOS unconditionally because an app linking libressl compiled with system wide getentropy has been rejected by the App store as I have documented here https://github.com/measurement-kit/measurement-kit/pull/994 I think something similar could also affect clock_gettime judging from tor's patch, but this diff for now doesn't address that. I do not have macOS < sierra, so I could only verify that configure was not picking up system wide getentropy by compiling libressl using export CFLAGS="-mmacosx-version-min=10.11" As regards iOS, removing the check for getentropy and recompiling (thus using libressl builtin getentropy()) was enough to have another iteration of the app accepted. Otherwise testing should be possible with: export LDFLAGS=-arch armv7 -miphoneos-version-min=7.1 -isysroot `xcrun --show-sdk-path --sdk iphoneos` export CPPFLAGS=-arch armv7 -isysroot `xcrun --show-sdk-path --sdk iphoneos` export CFLAGS=-arch armv7 -miphoneos-version-min=7.1 -isysroot `xcrun --show-sdk-path --sdk iphoneos` Related ticket: https://github.com/libressl-portable/portable/issues/230
* Fix typo in USE_BUILTIN_ARC4RANDOM checkcelan692016-07-191-1/+1
| | | Solaris 11 recently introduced a builtin arc4random in libc which fails the tests in "make check". Found USE_BUILTIN_ARC4RANDOM, but could not get it to work. Apparently, there is a typo in the configure logic rendering USE_BUILTIN_ARC4RANDOM ineffective.
* check linker flags before checking for functionsBrent Cook2016-04-241-2/+4
|
* add things to minimize diffs with OpenNTPD-portableBrent Cook2016-02-151-1/+4
|
* whitelist NetBSD 7.0 native arc4random(3) implementation.Brent Cook2016-01-031-3/+1
| | | | | NetBSD 7 improves arc4random(3) over earlier versions by adding fork detection, stronger assertions on seed failure.
* update check for b64_ntopBrent Cook2015-12-271-1/+1
| | | | typo spotted by Jonas 'Sortie' Termansen
* disable some tests with 32-bit time_t systemsBrent Cook2015-10-171-1/+0
| | | | Also disable use of _mkgmtime, it does not produce correct results.
* include timegm fallbackBrent Cook2015-10-151-0/+3
|
* check for pledge(2)Brent Cook2015-10-121-2/+2
|
* add tame(2) checkBrent Cook2015-10-071-7/+10
|
* add b64_ntop checking and fallback for nc(1)Brent Cook2015-10-011-1/+21
|
* allow nc to build on linux and os xBrent Cook2015-09-131-1/+5
|
* add check for inet_pton, nudge minimum win32 compat to 0x0501Brent Cook2015-07-021-1/+2
|
* refactor configure into separate m4 macrosBrent Cook2015-05-231-0/+65
this allows for some reusability with libtls