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)