+dnl Use autoconf 2.53
+dnl (Things tend to break across versions, they're neither upwards nor
+dnl downward compatible. Blame GNU.)
+
AC_INIT(dgamelaunch, [1.4.6])
-AC_PREREQ(2.50)
+AC_PREREQ(2.53)
AC_CONFIG_HEADER(config.h)
fi
AC_PROG_INSTALL
-AC_SEARCH_LIBS(initscr, [ncurses curses termcap])
+AC_SEARCH_LIBS(initscr, [curses ncurses])
AC_ARG_ENABLE(enable-virus,
-[AS_HELP_STRING([--enable-virus], [Use the 'virus' vi clone instead of the friendly ee editor.])],
+[AC_HELP_STRING([--enable-virus], [Use the 'virus' vi clone instead of the friendly ee editor.])],
[AC_SUBST(EDITOR, virus.c)], [AC_SUBST(EDITOR, ee.c)])
AC_ARG_WITH(config-file,
-[AS_HELP_STRING([--with-config-file=PATH], [Define the path to the default configuration file.])],
+[AC_HELP_STRING([--with-config-file=PATH], [Define the path to the default configuration file.])],
[configfile=$withval], [configfile="/etc/dgamelaunch.conf"])
AC_DEFINE_UNQUOTED(DEFCONFIG, "$configfile", [Path to the default config file.])