diff options
author | Tobias Brunner <tobias@strongswan.org> | 2017-05-31 14:33:43 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2017-08-15 10:35:20 +0200 |
commit | 17840fa18ee1439e136ee555a637b623c6bfbda1 (patch) | |
tree | b964d5cd9628a5a360fe365cbc4cd7deae68c89b | |
parent | 7421884da1b07d5e4f408156f1d88a9204c7036a (diff) | |
download | strongswan-17840fa18ee1439e136ee555a637b623c6bfbda1.tar.bz2 strongswan-17840fa18ee1439e136ee555a637b623c6bfbda1.tar.xz |
configure: Detect mpz_powm_sec() when built with -Werror
-rw-r--r-- | configure.ac | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index a3ab56fa4..ea09855ec 100644 --- a/configure.ac +++ b/configure.ac @@ -919,9 +919,9 @@ if test x$gmp = xtrue; then AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[#include "gmp.h"]], - [[void *x = mpz_powm_sec;]])], + [[void *x __attribute__((unused)); x = mpz_powm_sec;]])], [AC_MSG_RESULT([yes]); - AC_DEFINE([HAVE_MPZ_POWM_SEC], [], [have mpz_mown_sec()])], + AC_DEFINE([HAVE_MPZ_POWM_SEC], [], [have mpz_powm_sec()])], [AC_MSG_RESULT([no])] ) else |