writers=" file"
default_writer="FILE_WRITE"
-gui_cmdline_objs="gui"
-gui_errlist_objs="
- exec
- signal
- string
- stat
- ringbuffer
- fd
- gui
- gui_theme
- time
- version
- ggo
-"
play_errlist_objs="play fd sched ggo buffer_tree time string net
afh_recv afh_common
wma_afh wma_common mp3_afh
AC_CHECK_HEADER(curses.h, [], [
have_curses="no"
])
-gui_ldflags="$curses_libs"
+curses_ldflags="$curses_libs"
AC_CHECK_LIB([ncursesw], [initscr],
- [gui_ldflags="$curses_libs -lncursesw"], [
+ [curses_ldflags="$curses_libs -lncursesw"], [
AC_CHECK_LIB([curses], [initscr],
- [gui_ldflags="$curses_libs -lcurses"],
+ [curses_ldflags="$curses_libs -lcurses"],
[have_curses="no"]
)
]
)
-if test "$have_curses" = "yes"; then
- AC_SUBST(curses_cppflags)
- build_gui="yes"
- executables="$executables gui"
-else
- build_gui="no"
- AC_MSG_WARN([no curses lib, cannot build para_gui])
-fi
+AC_SUBST(curses_cppflags)
+AC_SUBST(curses_ldflags)
CPPFLAGS="$OLD_CPPFLAGS"
LDFLAGS="$OLD_LDFLAGS"
LIBS="$OLD_LIBS"
-
########################################################################### ip_mreqn
AC_MSG_CHECKING(for struct ip_mreqn (UDPv4 multicast))
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
AC_MSG_WARN([no mixer support])
mixer_summary="para_fade: no"
fi
+########################################################################### gui
+if test "$have_curses" = "yes"; then
+ build_gui="yes"
+ executables="$executables gui"
+ gui_cmdline_objs="gui"
+ gui_errlist_objs="
+ exec
+ signal
+ string
+ stat
+ ringbuffer
+ fd
+ gui
+ gui_theme
+ time
+ version
+ ggo
+ "
+ gui_objs="add_cmdline($gui_cmdline_objs) $gui_errlist_objs"
+else
+ build_gui="no"
+ AC_MSG_WARN([no curses lib, cannot build para_gui])
+fi
############################################################# error2.h
AC_MSG_NOTICE(creating error2.h)
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)