osl_ldflags := @osl_ldflags@
openssl_ldflags := @openssl_ldflags@
gcrypt_ldflags := @gcrypt_ldflags@
+socket_ldflags := @socket_ldflags@
build_date := $(shell date)
uname_s := $(shell uname -s 2>/dev/null || echo "UNKNOWN_OS")
$(faad_ldflags) \
$(flac_ldflags)
+para_server \
+para_client \
+para_audioc \
+para_audiod \
+para_recv \
+: LDFLAGS += \
+ $(socket_ldflags)
+
para_recv: $(recv_objs)
@[ -z "$(Q)" ] || echo 'LD $@'
$(Q) $(CC) $(recv_objs) -o $@ @recv_ldflags@ $(LDFLAGS)
fi
########################################################################### libsocket
AC_CHECK_LIB([c], [socket],
- [socket_lib=],
- [socket_lib="-lsocket"]
+ [socket_ldlflags=],
+ [socket_ldflags="-lsocket"]
)
-server_ldflags="$server_ldflags $socket_lib"
-client_ldflags="$client_ldflags $socket_lib"
-audioc_ldflags="$audioc_ldflags $socket_lib"
-audiod_ldflags="$audiod_ldflags $socket_lib"
-recv_ldflags="$recv_ldflags $socket_lib"
-AC_SEARCH_LIBS([connect],[socket],[],[
- AC_MSG_ERROR([Fatal: Did not find connect().])
-],[])
+AC_SUBST(socket_ldflags)
########################################################################### libnsl
AC_CHECK_LIB([c], [gethostbyname],
[nsl_lib=],