AC_CONFIG_FILES([Makefile])
AC_DEFUN([add_dot_o],[$(for i in $@; do printf "$i.o "; done)])
AC_DEFUN([add_cmdline],[$(for i in $@; do printf "${i}.cmdline "; done)])
-AC_DEFUN([objlist_to_errlist],[$(for i in $@; do printf "DEFINE_ERRLIST($(echo $i| tr 'a-z' 'A-Z'));"; done) [const char **para_errlist[[]]] = {$(for i in $@; do printf "PARA_ERRLIST($(echo $i | tr 'a-z' 'A-Z')), "; done) }])
+AC_DEFUN([make_errlist_defines], \
+ $(for i in $@; do \
+ printf "DEFINE_ERRLIST($(echo $i | tr 'a-z' 'A-Z'));"; \
+ done) \
+)
+AC_DEFUN([make_para_errlists], \
+ $(for i in $@; do \
+ printf "PARA_ERRLIST($(echo $i | tr 'a-z' 'A-Z')), "; \
+ done) \
+)
+AC_DEFUN([objlist_to_errlist],[ \
+ make_errlist_defines($@) \
+ [const char **para_errlist[[]]] = {make_para_errlists($@)} \
+])
+
AC_PATH_PROG(UNAMEPATH, uname, no)
if test "$UNAMEPATH" = "no"; then
AC_MSG_ERROR(unable to determine system type)
AC_MSG_WARN([readline/readline.h not found, $msg])
])
-if test "$have_curses" != "yes"; then
- have_readline="no"
- AC_MSG_WARN([interactive cli support depends on curses,])
- AC_MSG_WARN([but no curses lib was detected, $msg])
-fi
-
if test "$have_readline" = "yes"; then
readline_ldflags="$readline_libs -lreadline"
AC_SEARCH_LIBS([rl_free_keymap], [readline], [], [have_readline="no"])