AC_PROG_LIBTOOL
# Checks for libraries.
+LT_LIB_DLLOAD
+LT_LIB_M
# Checks for header files.
AC_HEADER_STDC
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
-
+AC_CHECK_LIB([socket],[connect])
+AC_CHECK_LIB([pthread],[pthread_create])
# Custom check for os, similar to webkit
# This library depends on 3rd party libraries
libshairplay_la_LIBADD = crypto/libcrypto.la alac/libalac.la
libshairplay_la_LDFLAGS = -version-info 0:0:0
+
+libshairplay_la_LIBADD += $(LIBADD_DLOPEN)
+libshairplay_la_LIBADD += $(LIBM)
+
if OS_WIN32
libshairplay_la_LDFLAGS += -no-undefined -lws2_32 -lwinmm
endif