Comparison

configure @ 7187:3d2c2f0809ee

util.crand: C binding to one of OpenSSL, Linux getrandom() or OpenBSD arc4random() CSPRNG
author Kim Alvefur <zash@zash.se>
date Mon, 22 Feb 2016 18:44:43 +0100
parent 6886:27f5a76e3fa5
child 7548:69d8e1477c43
comparison
equal deleted inserted replaced
7186:9c3930bcbb72 7187:3d2c2f0809ee
17 CC=gcc 17 CC=gcc
18 CXX=g++ 18 CXX=g++
19 LD=gcc 19 LD=gcc
20 RUNWITH=lua 20 RUNWITH=lua
21 EXCERTS=yes 21 EXCERTS=yes
22 PRNG=
23 PRNGLIBS=
22 24
23 CFLAGS="-fPIC -Wall" 25 CFLAGS="-fPIC -Wall"
24 LDFLAGS="-shared" 26 LDFLAGS="-shared"
25 27
26 IDN_LIBRARY=idn 28 IDN_LIBRARY=idn
56 --idn-library=(idn|icu) Select library to use for IDNA functionality. 58 --idn-library=(idn|icu) Select library to use for IDNA functionality.
57 idn: use GNU libidn (default) 59 idn: use GNU libidn (default)
58 icu: use ICU from IBM 60 icu: use ICU from IBM
59 --with-ssl=LIB The name of the SSL to link with. 61 --with-ssl=LIB The name of the SSL to link with.
60 Default is $OPENSSL_LIB 62 Default is $OPENSSL_LIB
63 --with-random=METHOD CSPRNG backend to use. One of
64 getrandom: Linux kernel
65 arc4random: OpenBSD kernel
66 openssl: OpenSSL RAND method
67 Default is to use /dev/urandom
61 --cflags=FLAGS Flags to pass to the compiler 68 --cflags=FLAGS Flags to pass to the compiler
62 Default is $CFLAGS 69 Default is $CFLAGS
63 --ldflags=FLAGS Flags to pass to the linker 70 --ldflags=FLAGS Flags to pass to the linker
64 Default is $LDFLAGS 71 Default is $LDFLAGS
65 --c-compiler=CC The C compiler to use when building modules. 72 --c-compiler=CC The C compiler to use when building modules.
172 IDN_LIBRARY="$value" 179 IDN_LIBRARY="$value"
173 ;; 180 ;;
174 --with-ssl=*) 181 --with-ssl=*)
175 OPENSSL_LIB="$value" 182 OPENSSL_LIB="$value"
176 ;; 183 ;;
184 --with-random=getrandom)
185 PRNG=GETRANDOM
186 ;;
187 --with-random=openssl)
188 PRNG=OPENSSL
189 PRNGLIBS=-lcrypto
190 ;;
191 --with-random=arc4random)
192 PRNG=ARC4RANDOM
193 ;;
177 --cflags=*) 194 --cflags=*)
178 CFLAGS="$value" 195 CFLAGS="$value"
179 ;; 196 ;;
180 --ldflags=*) 197 --ldflags=*)
181 LDFLAGS="$value" 198 LDFLAGS="$value"
370 CC=$CC 387 CC=$CC
371 CXX=$CXX 388 CXX=$CXX
372 LD=$LD 389 LD=$LD
373 RUNWITH=$RUNWITH 390 RUNWITH=$RUNWITH
374 EXCERTS=$EXCERTS 391 EXCERTS=$EXCERTS
392 RANDOM=$PRNG
393 RANDOM_LIBS=$PRNGLIBS
394
375 395
376 EOF 396 EOF
377 397
378 echo "Installation prefix: $PREFIX" 398 echo "Installation prefix: $PREFIX"
379 echo "Prosody configuration directory: $SYSCONFDIR" 399 echo "Prosody configuration directory: $SYSCONFDIR"