1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-23 20:15:19 -07:00

CurveCP is optional

This commit is contained in:
Frank Denis 2013-02-18 15:28:43 -08:00
parent 926803f996
commit f5af42f48d
3 changed files with 17 additions and 17 deletions

View File

@ -43,6 +43,9 @@ then follow the ritual:
./configure
make && make check && make install
[CurveCP](http://curvecp.org/) tools can be installed as well,
provided that `--enable-curvecp` has been given to the `./configure` command.
## Comparison with vanilla NaCl
Sodium does not ship C++ bindings. These might be part of a distinct

View File

@ -179,22 +179,15 @@ AC_ARG_ENABLE(blocking-random,
[AS_HELP_STRING(--enable-blocking-random,Use /dev/random instead of /dev/urandom)],
[AC_DEFINE([USE_BLOCKING_RANDOM], [], [Use blocking random])])
AC_ARG_ENABLE(debug,
[AS_HELP_STRING(--enable-debug,For maintainers only - please do not use)],
[
AS_IF([test "x$LX_CFLAGS" = "xNONE"], [
nxflags=""
for flag in `echo $CFLAGS`; do
case "$flag" in
-O*) ;;
-g*) ;;
*) AS_VAR_APPEND([nxflags], [" $flag"]) ;;
esac
done
CFLAGS="$nxflags -O0 -g3"
])
CPPFLAGS="$CPPFLAGS -DDEBUG=1"
])
AC_ARG_ENABLE(blocking-random,
[AS_HELP_STRING(--enable-blocking-random,Use /dev/random instead of /dev/urandom)],
[AC_DEFINE([USE_BLOCKING_RANDOM], [], [Use blocking random])])
curvecp=disabled
AC_ARG_ENABLE(curvecp,
[AS_HELP_STRING(--enable-curvecp,Compile and install curvecp tools)],
[curvecp=enabled])
AM_CONDITIONAL(CURVECP, test x$curvecp = xenabled)
AC_ARG_WITH(safecode,
[AS_HELP_STRING(--with-safecode,For maintainers only - please do not use)],

View File

@ -1,4 +1,8 @@
SUBDIRS = \
libsodium \
libsodium
if CURVECP
SUBDIRS += \
curvecp
endif