diff options
author | Niels Möller <nisse@lysator.liu.se> | 2019-12-05 09:02:15 +0100 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2019-12-05 09:02:15 +0100 |
commit | 9f4180d6f41889c8b42a70fc5b6a73c6055006fb (patch) | |
tree | 0367ae173efbf9f3823e125d614be8761b3bec3d /configure.ac | |
parent | c8a90a350cf4641e6f6862e1b4dfd69ff79fdbb3 (diff) | |
download | nettle-9f4180d6f41889c8b42a70fc5b6a73c6055006fb.tar.gz |
Fix configure check for __builtin_bswap64.
* configure.ac: Use AC_TRY_LINK rather than AC_TRY_COMPILE to
check for __builtin_bswap64. Since calling an non-existing
function typically results in a warning only at compile time, but
fails at link time. Patch contributed by by George Koehler.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 3547cae4..7ac84f2e 100644 --- a/configure.ac +++ b/configure.ac @@ -213,7 +213,7 @@ AC_C_BIGENDIAN([AC_DEFINE([WORDS_BIGENDIAN], 1) AC_CACHE_CHECK([for __builtin_bswap64], nettle_cv_c_builtin_bswap64, -[AC_TRY_COMPILE([ +[AC_TRY_LINK([ #include <stdint.h> ],[ uint64_t x = 17; |