1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
From: Alec Leamas <leamas.alec@gmail.com>
Date: Thu, 30 Dec 2021 13:38:29 +0100
Subject: configure: handle separate -latomic library.
Handle sh4 build errors caused by missing -latomic.
Forwarded: https://sourceforge.net/p/wxsvg/git/merge-requests/4/
---
configure.ac | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/configure.ac b/configure.ac
index b49be99..5150cd8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -137,6 +137,10 @@ LIBS="$LIBS $EXPAT_LIBS"
# check libexif
PKG_CHECK_MODULES(LIBEXIF, libexif, [LIBS="$LIBS $LIBEXIF_LIBS"], [AC_MSG_ERROR([*** missing libexif ***])])
+# check for separate -latomic
+AC_SEARCH_LIBS([__atomic_fetch_add_4], [atomic])
+AC_SEARCH_LIBS([__atomic_load_8], [atomic])
+
# check ffmpeg
AM_CONDITIONAL(USE_LIBAV, [test x$enable_libav = xyes])
if test x$enable_libav = xyes; then
|