build: check for fopencookie() in configure
commite843d29eec50dfcad948859b545eaf529731d28e
authorTobias Klauser <tklauser@distanz.ch>
Fri, 20 Oct 2017 12:24:33 +0000 (20 14:24 +0200)
committerTobias Klauser <tklauser@distanz.ch>
Fri, 20 Oct 2017 12:24:33 +0000 (20 14:24 +0200)
treedadb3d06717ddf26a409c10e18013567a99c6c5e
parent443d97581b9b715b8f40ae35fdeaf272caa296a4
build: check for fopencookie() in configure

fopencookie(3) is a non-standard GNU extension and some libc
implementations might not provide it (e.g. musl).

Check for fopencookie in the configure script and disable building
curvetun in case the function is not available, as curvetun is the only
tool using fopencookie.

Fixes #174
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
configure