]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
configure: Detect mpz_powm_sec() when built with -Werror
authorTobias Brunner <tobias@strongswan.org>
Wed, 31 May 2017 12:33:43 +0000 (14:33 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 15 Aug 2017 08:35:20 +0000 (10:35 +0200)
configure.ac

index a3ab56fa41183739b56e08b7764fedf35752b5aa..ea09855ec6513a51c3edbbe68e7b89eac73c46d6 100644 (file)
@@ -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