readline_ldflags := @readline_ldflags@
samplerate_ldflags := @samplerate_ldflags@
osl_ldflags := @osl_ldflags@
-socket_ldflags := @socket_ldflags@
-nsl_ldflags := @nsl_ldflags@
curses_ldflags := @curses_ldflags@
core_audio_ldflags := @core_audio_ldflags@
crypto_ldflags := @crypto_ldflags@
: LDFLAGS += \
$(mp4v2_ldflags)
-para_server \
-para_client \
-para_audioc \
-para_audiod \
-para_recv \
-: LDFLAGS += \
- $(socket_ldflags) $(nsl_ldflags)
-
para_afh para_recv para_server para_play: LDFLAGS += $(iconv_ldflags)
$(foreach exe,$(executables),$(eval para_$(exe): $$($(exe)_objs)))
;;
esac
AC_SUBST(crypto_ldflags)
-########################################################################### libsocket
-AC_CHECK_LIB([c], [socket],
- [socket_ldlflags=],
- [socket_ldflags="-lsocket"]
-)
-AC_SUBST(socket_ldflags)
########################################################################## iconv
STASH_FLAGS
LIBS=
AC_DEFINE_UNQUOTED(ICONV_CAST, $cast, [cast for second arg to iconv()])
AC_MSG_RESULT($msg)
UNSTASH_FLAGS
-########################################################################### libnsl
-AC_CHECK_LIB([c], [gethostbyname],
- [nsl_ldflags=],
- [nsl_ldflags="-lnsl"]
-)
-AC_SUBST(nsl_ldflags)
########################################################################### ucred
AC_MSG_CHECKING(for struct ucred)
AC_LINK_IFELSE([AC_LANG_PROGRAM([[