#
AC_INIT([lib/snmp.c])
AC_CONFIG_AUX_DIR(config)
-AM_INIT_AUTOMAKE(ap-utils, 1.4.1pre4b)
+AM_INIT_AUTOMAKE(ap-utils, 1.5.1pre3)
AM_CONFIG_HEADER(config.h)
ac_aux_dir=config
AC_TYPE_SIGNAL
AC_CHECK_FUNCS([alarm inet_ntoa socket strtol sysinfo fork malloc free])
-ALL_LINGUAS="uk fr pl ro nl"
+ALL_LINGUAS="uk fr pl ro nl tr rw vi ms fi sv"
AM_GNU_GETTEXT
-AC_CHECK_LIB(ncurses, initscr, , NOCURSES=yes)
+aputils_save_LIBS="$LIBS"
+AC_CHECK_LIB(ncurses, initscr, CURSESLIBS="-lncurses", NOCURSES=yes)
if test "$NOCURSES" = yes; then
- AC_CHECK_LIB(curses, initscr, , AC_MSG_ERROR([ap-utils requires installed ncurses or Sys V curses to build]))
+ AC_CHECK_LIB(curses, initscr, CURSESLIBS="-lcurses", AC_MSG_ERROR([ap-utils requires installed ncurses or Sys V curses to build]))
fi
+LIBS="$aputils_save_LIBS"
# Check for OS and make OS define OS specific variables
case "$host_os" in
esac
])
+AC_SUBST(CURSESLIBS)
+
AC_OUTPUT([Makefile src/Makefile ap-gl/Makefile lib/Makefile po/Makefile.in intl/Makefile Documentation/Makefile])
echo "
- Thank you for using ap-utils.
-
+ Thank you for using ap-utils [http://ap-utils.polesye.net]!
"