From c7d00e9a6db525fe3dc707902493655d3a7dfb18 Mon Sep 17 00:00:00 2001 From: Alexandre Esse Date: Sat, 17 Jun 2017 00:03:46 +0200 Subject: [PATCH] Change some configure.ac library searching order. ./configure --with-cryptopp failed while cross-compiling for an ARM target and this fixed it. --- configure.ac | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index 1a8b4f1c..2050da83 100644 --- a/configure.ac +++ b/configure.ac @@ -56,6 +56,10 @@ AM_CONDITIONAL([HAVE_SSE2], [test x"$flag_sse2" = x"true"]) KVZ_CFLAGS="-Wall -Wtype-limits -Wvla -I$srcdir/src -I$srcdir/src/extras -ftree-vectorize -fvisibility=hidden" CFLAGS="$KVZ_CFLAGS $CFLAGS" +AC_SEARCH_LIBS([log], [m c], [], [exit 1]) +AC_SEARCH_LIBS([pow], [m c], [], [exit 1]) +AC_SEARCH_LIBS([sqrt], [m c], [], [exit 1]) + AC_ARG_WITH([cryptopp], AS_HELP_STRING([--with-cryptopp], [Build with cryptopp Enables selective encryption.])) @@ -77,11 +81,6 @@ LIBS="$LIBS $cryptopp_LIBS" CPPFLAGS="-DKVZ_DLL_EXPORTS $CPPFLAGS" -AC_SEARCH_LIBS([log], [m c], [], [exit 1]) -AC_SEARCH_LIBS([pow], [m c], [], [exit 1]) -AC_SEARCH_LIBS([sqrt], [m c], [], [exit 1]) - - # This does workarounds for pthreads on various compilers. AX_PTHREAD