dnl| to regenerate configure. Then submit your changes to be folded into\r
dnl| the standard version of xboard.\r
\r
-AC_INIT([xboard],[4.3])\r
+PRODUCT=xboard\r
+VERSION=4.4 \r
+PATCHLEVEL=0e\r
+\r
+AC_INIT([PRODUCT],[VERSION-PATCHLEVEL])\r
AM_INIT_AUTOMAKE\r
-AC_PROG_CC\r
+\r
AC_CONFIG_HEADERS([config.h])\r
-AC_CONFIG_FILES([\r
-Makefile\r
+AC_CONFIG_FILES([Makefile cmail xboard.texinfo],\r
+[test -z "$CONFIG_HEADERS" || date > stamp-h \r
+chmod 755 cmail\r
])\r
-AC_OUTPUT\r
-PRODUCT=xboard\r
-#VERSION=4.4 # version is already defined\r
-PATCHLEVEL=0e\r
+\r
+dnl | a bunch of templates for defines used below\r
+AH_TEMPLATE([FIRST_PTY_LETTER],[template])\r
+AH_TEMPLATE([HAVE_FCNTL_H],[template])\r
+AH_TEMPLATE([HAVE_GETHOSTNAME],[template])\r
+AH_TEMPLATE([HAVE_GETTIMEOFDAY],[template])\r
+AH_TEMPLATE([HAVE_RANDOM],[template])\r
+AH_TEMPLATE([HAVE_SYS_SOCKET_H],[template])\r
+AH_TEMPLATE([IBMRTAIX],[template])\r
+AH_TEMPLATE([LAST_PTY_LETTER],[template])\r
+AH_TEMPLATE([PATCHLEVEL],[template])\r
+AH_TEMPLATE([PRODUCT],[template])\r
+AH_TEMPLATE([PTY_ITERATION],[template])\r
+AH_TEMPLATE([PTY_NAME_SPRINTF],[template])\r
+AH_TEMPLATE([PTY_OPEN],[template])\r
+AH_TEMPLATE([PTY_TTY_NAME_SPRINTF],[template])\r
+AH_TEMPLATE([REMOTE_SHELL],[template])\r
+AH_TEMPLATE([RTU],[template])\r
+AH_TEMPLATE([UNIPLUS],[template])\r
+AH_TEMPLATE([USE_PTYS],[template])\r
+AH_TEMPLATE([VERSION],[template])\r
+AH_TEMPLATE([X_WCHAR],[template])\r
+AH_TEMPLATE([ATTENTION],[template])\r
+AH_TEMPLATE([DEFINED_SYS_ERRLIST],[template])\r
+AH_TEMPLATE([HAVE_LIBXPM],[template])\r
+AH_TEMPLATE([USE_XAW3D],[template])\r
+AH_TEMPLATE([X_LOCALE],[template])\r
+\r
\r
\r
if test -z "$CFLAGS" ; then\r
AC_PATH_PROGS(AWKPATH, awk mawk gawk nawk)\r
AC_PATH_PROGS(PERLPATH, perl)\r
\r
-\r
-\r
-\r
AC_HEADER_STDC\r
AC_HEADER_TIME\r
AC_HEADER_SYS_WAIT\r
fi\r
\r
\r
-\r
-\r
AC_CANONICAL_HOST\r
\r
dnl| The following info is mostly gathered from GNU Emacs 19.24. Basically,\r
fi])\r
AC_DEFINE_UNQUOTED(USE_PTYS, $USE_PTYS)\r
\r
+\r
+dnl | define not to build zippy as a default, so that autoheader is happy\r
+AC_DEFINE(ZIPPY, 0,[should zippy be enabled])\r
AC_ARG_ENABLE(zippy, \r
[ --enable-zippy support interfacing a chess program to ICS (default)\r
--disable-zippy do not support interfacing a chess program to ICS],\r
[enable_zippy="$enableval"], [enable_zippy="yes"])\r
if test "$enable_zippy" = yes; then\r
- AC_DEFINE(ZIPPY, 1)\r
+ AC_DEFINE(ZIPPY, 1,[should zippy be enabled])\r
ZIPPY_O=zippy.o\r
ZIPPY_H=zippy.h\r
fi\r
AC_SUBST(VERSION)\r
AC_SUBST(PATCHLEVEL)\r
\r
-AC_OUTPUT(cmail xboard.texinfo,\r
-[test -z "$CONFIG_HEADERS" || date > stamp-h\r
-chmod 755 cmail\r
-])\r
+AC_OUTPUT\r