Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nettle
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Wim Lewis
nettle
Commits
360dfd98
Commit
360dfd98
authored
Apr 11, 2014
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Skip GMP tests if public key support is disabled.
parent
f8aa12d5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
23 deletions
+29
-23
ChangeLog
ChangeLog
+2
-0
configure.ac
configure.ac
+27
-23
No files found.
ChangeLog
View file @
360dfd98
2014-04-11 Niels Möller <nisse@lysator.liu.se>
2014-04-11 Niels Möller <nisse@lysator.liu.se>
* configure.ac: Skip GMP tests if public key support is disabled.
* eax.c (block16_xor): Fixed bug effecting 32-bit platforms.
* eax.c (block16_xor): Fixed bug effecting 32-bit platforms.
* Makefile.in (DISTFILES): Deleted memxor.c, already included via
* Makefile.in (DISTFILES): Deleted memxor.c, already included via
...
...
configure.ac
View file @
360dfd98
...
@@ -673,31 +673,35 @@ if test "x$nettle_cv_fcntl_locking" = "xyes" ; then
...
@@ -673,31 +673,35 @@ if test "x$nettle_cv_fcntl_locking" = "xyes" ; then
fi
fi
# Checks for libraries
# Checks for libraries
AC_CHECK_LIB(gmp, __gmpz_getlimbn,,
if test "x$enable_public_key" = "xyes" ; then
[AC_MSG_WARN(
AC_CHECK_LIB(gmp, __gmpz_getlimbn,,
[GNU MP not found, or not 3.1 or up, see http://gmplib.org/.
[AC_MSG_WARN(
Support for public key algorithms will be unavailable.])]
[GNU MP not found, or not 3.1 or up, see http://gmplib.org/.
enable_public_key=no)
Support for public key algorithms will be unavailable.])]
enable_public_key=no)
# Add -R flags needed to run programs linked with gmp
LSH_RPATH_FIX
# Add -R flags needed to run programs linked with gmp
LSH_RPATH_FIX
# Check for gmp limb size
nettle_cv_gmp_numb_bits=0
if test "$enable_public_key" = yes; then
AC_MSG_CHECKING([for GMP limb size])
AC_COMPUTE_INT(nettle_cv_gmp_numb_bits, [GMP_NUMB_BITS],
[#include <gmp.h>],
[AC_MSG_FAILURE([cannot find value of GMP_NUMB_BITS])])
AC_MSG_RESULT([$nettle_cv_gmp_numb_bits bits])
fi
fi
GMP_NUMB_BITS="$nettle_cv_gmp_numb_bits"
if test "x$enable_public_key" = "xyes" ; then
AC_SUBST([GMP_NUMB_BITS])
# Check for gmp limb size
nettle_cv_gmp_numb_bits=0
AH_TEMPLATE([HAVE_MPZ_POWM_SEC], [Define if mpz_powm_sec is available (appeared in GMP-5)])
if test "$enable_public_key" = yes; then
AC_CHECK_FUNC(__gmpz_powm_sec, [AC_DEFINE(HAVE_MPZ_POWM_SEC)])
AC_MSG_CHECKING([for GMP limb size])
AC_COMPUTE_INT(nettle_cv_gmp_numb_bits, [GMP_NUMB_BITS],
[#include <gmp.h>],
[AC_MSG_FAILURE([cannot find value of GMP_NUMB_BITS])])
AC_MSG_RESULT([$nettle_cv_gmp_numb_bits bits])
fi
GMP_NUMB_BITS="$nettle_cv_gmp_numb_bits"
AC_SUBST([GMP_NUMB_BITS])
AH_TEMPLATE([HAVE_MPZ_POWM_SEC], [Define if mpz_powm_sec is available (appeared in GMP-5)])
AC_CHECK_FUNC(__gmpz_powm_sec, [AC_DEFINE(HAVE_MPZ_POWM_SEC)])
fi
AH_TEMPLATE([WITH_HOGWEED], [Defined if public key features are enabled])
AH_TEMPLATE([WITH_HOGWEED], [Defined if public key features are enabled])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment