para_gui: $(gui_objs)
@[ -z "$(Q)" ] || echo 'LD $@'
- $(Q) $(CC) $(LDFLAGS) -o $@ $(gui_objs) -lcurses
+ $(Q) $(CC) $(LDFLAGS) -o $@ $(gui_objs) @gui_ldflags@
para_audiod: $(audiod_objs)
@[ -z "$(Q)" ] || echo 'LD $@'
have_curses="no"
])
if test "$have_curses" = "yes"; then
+ gui_ldflags="$curses_libs -lcurses"
AC_SUBST(curses_cppflags)
AC_DEFINE(HAVE_NCURSES, 1, [define to 1 to turn on curses support])
extras="$extras gui"
objlist_to_errlist($audioc_errlist_objs), errors used by para_audioc)
AC_SUBST(gui_objs, add_dot_o($gui_objs))
+AC_SUBST(gui_ldflags, $gui_ldflags)
AC_DEFINE_UNQUOTED(INIT_GUI_ERRLISTS,
objlist_to_errlist($gui_errlist_objs), errors used by para_gui)