PRODUCT=xboard
VERSION=4.2
-PATCHLEVEL=6
+PATCHLEVEL=pre8
if test -z "$CFLAGS" ; then
dnl| Prevent the next macro from setting CFLAGS to -g
AC_CHECK_HEADERS(sys/socket.h lan/socket.h, break)
AC_CHECK_HEADER(stddef.h, [], AC_DEFINE(X_WCHAR, 1))
-AC_EGREP_HEADER(sys_errlist, errno.h, AC_DEFINE(DEFINED_SYS_ERRLIST))
-AC_EGREP_HEADER(sys_errlist, stdio.h, AC_DEFINE(DEFINED_SYS_ERRLIST))
-AC_EGREP_HEADER(sys_errlist, stdlib.h, AC_DEFINE(DEFINED_SYS_ERRLIST))
-
AC_CHECK_FUNCS(_getpty grantpt setitimer usleep)
AC_CHECK_FUNCS(gettimeofday ftime, break)
AC_CHECK_FUNCS(random rand48, break)
AC_CANONICAL_HOST
+AM_GNU_GETTEXT([external])
+
dnl| The following info is mostly gathered from GNU Emacs 19.24. Basically,
dnl| we are trying to find out whether this is a System-V derivative in
dnl| which pipes don't work with select() and if so, whether there is anything
AC_DEFINE_UNQUOTED(USE_PTYS, $USE_PTYS)
AC_ARG_ENABLE(zippy,
-[ --enable-zippy features for interfacing a chess program to ICS],
-[if test "$enableval" = yes; then
+[ --enable-zippy support interfacing a chess program to ICS (default)
+ --disable-zippy do not support interfacing a chess program to ICS],
+[enable_zippy="$enableval"], [enable_zippy="yes"])
+if test "$enable_zippy" = yes; then
AC_DEFINE(ZIPPY, 1)
ZIPPY_O=zippy.o
ZIPPY_H=zippy.h
-fi])
+fi
AC_SUBST(ZIPPY_O)
AC_SUBST(ZIPPY_H)
AC_SUBST(VERSION)
AC_SUBST(PATCHLEVEL)
-AC_OUTPUT(Makefile comment.awk:comment.in cmail xboard.texinfo,
+AC_OUTPUT(Makefile cmail xboard.texinfo po/Makefile.in ,
[test -z "$CONFIG_HEADERS" || date > stamp-h
-chmod 755 comment.awk cmail
+chmod 755 cmail
])