executables := @executables@
-audioc_objs := @audioc_objs@
-
speex_cppflags := @speex_cppflags@
opus_cppflags := @opus_cppflags@
vorbis_cppflags := @vorbis_cppflags@
write_objs += alsa_write.o
endif
+audioc_objs := $(addsuffix .o, audioc string lsu net fd time version)
+ifeq ($(HAVE_READLINE),yes)
+ audioc_objs += buffer_tree.o interactive.o sched.o
+endif
# sort removes duplicate words, which is all we need here
all_objs := $(sort $(recv_objs) $(filter_objs) $(client_objs) $(gui_objs) \
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([Makefile])
-AC_DEFUN([add_dot_o],[$(for i in $@; do printf "$i.o "; done)])
AC_DEFUN([LIB_ARG_WITH], [
AC_ARG_WITH($1-headers, [AS_HELP_STRING(--with-$1-headers=dir,
[look for $1 headers in dir])])
executables="$executables gui"
fi
######################################################################## audioc
-audioc_objs="
- audioc
- string
- lsu
- net
- fd
- time
- version
-"
-if test $HAVE_READLINE = yes; then
- audioc_objs="$audioc_objs
- buffer_tree
- interactive
- sched
- "
-fi
-AC_SUBST(audioc_objs, add_dot_o($audioc_objs))
-
AC_SUBST(executables)
AC_OUTPUT