aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac3
-rw-r--r--src/util/Makefile.am7
2 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 87a60cb04..745300939 100644
--- a/configure.ac
+++ b/configure.ac
@@ -282,6 +282,7 @@ have_addrinfo_a=0
282AC_CHECK_LIB(anl, getaddrinfo_a, [have_addrinfo_a=1 AC_DEFINE(HAVE_GETADDRINFO_A,1,[getaddrinfo_a supported])]) 282AC_CHECK_LIB(anl, getaddrinfo_a, [have_addrinfo_a=1 AC_DEFINE(HAVE_GETADDRINFO_A,1,[getaddrinfo_a supported])])
283AM_CONDITIONAL(HAVE_GETADDRINFO_A, [test "$have_addrinfo_a" = 1]) 283AM_CONDITIONAL(HAVE_GETADDRINFO_A, [test "$have_addrinfo_a" = 1])
284 284
285
285# tests only run on Windows 286# tests only run on Windows
286if test "x$build_target" = "xmingw" 287if test "x$build_target" = "xmingw"
287then 288then
@@ -676,6 +677,8 @@ else
676 AC_DEFINE([HAVE_LIBCURL],[1],[Have CURL]) 677 AC_DEFINE([HAVE_LIBCURL],[1],[Have CURL])
677fi 678fi
678 679
680AC_SEARCH_LIBS(__atomic_load_8, atomic, [have_libatomic=1 AC_DEFINE(HAVE_LIBATOMIC,1,[external libatomic])])
681AM_CONDITIONAL(HAVE_LIBATOMIC, [test "$have_libatomic" = 1])
679 682
680# restore LIBS & CPPFLAGS 683# restore LIBS & CPPFLAGS
681LIBS=$SAVE_LIBS 684LIBS=$SAVE_LIBS
diff --git a/src/util/Makefile.am b/src/util/Makefile.am
index 0ba06f4bb..5fa6e907e 100644
--- a/src/util/Makefile.am
+++ b/src/util/Makefile.am
@@ -123,6 +123,12 @@ libgnunetutil_la_SOURCES = \
123 speedup.c speedup.h \ 123 speedup.c speedup.h \
124 proc_compat.c 124 proc_compat.c
125 125
126if HAVE_LIBATOMIC
127 LIBATOMIC= -latomic
128else
129 LIBATOMIC=
130endif
131
126if HAVE_LIBIDN 132if HAVE_LIBIDN
127 LIBIDN= -lidn 133 LIBIDN= -lidn
128else 134else
@@ -137,6 +143,7 @@ endif
137 143
138libgnunetutil_la_LIBADD = \ 144libgnunetutil_la_LIBADD = \
139 $(GCLIBADD) $(WINLIB) \ 145 $(GCLIBADD) $(WINLIB) \
146 $(LIBATOMIC) \
140 $(LIBGCRYPT_LIBS) \ 147 $(LIBGCRYPT_LIBS) \
141 $(LTLIBICONV) \ 148 $(LTLIBICONV) \
142 $(LTLIBINTL) \ 149 $(LTLIBINTL) \