From 97c0a2878457ed0c0f15f07767799031bfb38434 Mon Sep 17 00:00:00 2001 From: Francesco Chemolli Date: Sun, 3 Jan 2016 11:45:27 +0100 Subject: [PATCH] Fix libatomic detection in configure.ac --- configure.ac | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 4d9a23887e..b322830b61 100644 --- a/configure.ac +++ b/configure.ac @@ -458,7 +458,10 @@ if test "x$with_dl" = "xyes"; then fi ## check for atomics library before anything that might need it -AC_SEARCH_LIBS([__atomic_load_8],[atomic],[ATOMICLIB="-latomic"],[]) +AC_SEARCH_LIBS([__atomic_load_8],[atomic]) +if test "x$ac_cv_search___atomic_load_8" = "-latomic"; then + ATOMICLIB="-latomic" +fi AC_SUBST(ATOMICLIB) AC_SEARCH_LIBS([shm_open], [rt]) -- 2.39.2