libhashkit_libhashkit_la_CXXFLAGS= -DBUILDING_HASHKIT
-libhashkit_libhashkit_la_LDFLAGS= \
- $(LIBM) \
- -version-info $(HASHKIT_LIBRARY_VERSION)
+libhashkit_libhashkit_la_LIBADD=
+libhashkit_libhashkit_la_LDFLAGS= -version-info $(HASHKIT_LIBRARY_VERSION)
+if TARGET_LINUX
+libhashkit_libhashkit_la_LIBADD+= -lm
+endif
# library used for testing
noinst_LTLIBRARIES+= libhashkit/libhashkitinc.la
libmemcached_libmemcached_la_DEPENDENCIES=
-libmemcached_libmemcached_la_LIBADD= $(LIBM)
+libmemcached_libmemcached_la_LIBADD=
+if TARGET_LINUX
+libmemcached_libmemcached_la_LIBADD+= -lm
+endif
libmemcached_libmemcached_la_LDFLAGS+= -version-info ${MEMCACHED_LIBRARY_VERSION}
libmemcached_libmemcached_la_LIBADD+= $(LTLIBSASL) $(LTLIBSASL2)
TARGET_LINUX="true"
AC_SUBST(TARGET_LINUX)
AC_DEFINE([TARGET_OS_LINUX], [1], [Whether we build for Linux])
+ AM_CONDITIONAL(TARGET_LINUX, [test "x${TARGET_LINUX}" = "xtrue"])
;;
*darwin*)
TARGET_OSX="true"