xboard used it's own version of PRODUCT, VERSION and PATCHLEVEL variables. Switched to PACKAGE_STRING provided by autoconf
#endif
if (appData.noChessProgram) {
- programVersion = (char*) malloc(5 + strlen(PRODUCT) + strlen(VERSION)
- + strlen(PATCHLEVEL));
- sprintf(programVersion, "%s %s.%s", PRODUCT, VERSION, PATCHLEVEL);
+ programVersion = (char*) malloc(5 + strlen(PACKAGE_STRING));
+ sprintf(programVersion, "%s", PACKAGE_STRING);
} else {
#if 0
char *p, *q;
while (*q != ' ' && *q != NULLCHAR) q++;
p = q;
while (p > first.program && *(p-1) != '/' && *(p-1) != '\\') p--; /* [HGM] backslash added */
- programVersion = (char*) malloc(8 + strlen(PRODUCT) + strlen(VERSION)
- + strlen(PATCHLEVEL) + (q - p));
- sprintf(programVersion, "%s %s.%s + ", PRODUCT, VERSION, PATCHLEVEL);
+ programVersion = (char*) malloc(8 + strlen(PACKAGE_STRING + (q - p));
+ sprintf(programVersion, "%s + ", PACKAGE_STRING);
strncat(programVersion, p, q - p);
#else
/* [HGM] tidy: use tidy name, in stead of full pathname (which was probably a bug due to / vs \ ) */
- programVersion = (char*) malloc(8 + strlen(PRODUCT) + strlen(VERSION)
- + strlen(PATCHLEVEL) + strlen(first.tidy));
- sprintf(programVersion, "%s %s.%s + %s", PRODUCT, VERSION, PATCHLEVEL, first.tidy);
+ programVersion = (char*) malloc(8 + strlen(PACKAGE_STRING) + strlen(first.tidy));
+ sprintf(programVersion, "%s + %s", PACKAGE_STRING, first.tidy);
#endif
}
dnl| to regenerate configure. Then submit your changes to be folded into\r
dnl| the standard version of xboard.\r
\r
-dnl| need to change these here and in AC_INIT\r
-PRODUCT=xboard\r
-VERSION=4.4 \r
-PATCHLEVEL=0j\r
-\r
+dnl| define second argument as VERSION.PATCHLEVEL. e.g. 4.4.0j\r
AC_INIT([xboard],[4.4.0j],[bug-xboard@gnu.org])\r
AM_INIT_AUTOMAKE\r
\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([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
\r
AC_PATH_XTRA\r
if test -n "$no_x" ; then\r
- echo $PRODUCT requires the X Window System header files and libraries!\r
+ echo $PACKAGE requires the X Window System header files and libraries!\r
echo They were not found on your system. See FAQ topic C.2.\r
echo configure failed\r
exit 1\r
fi],\r
[AC_DEFINE(ATTENTION, 1)])\r
\r
-AC_DEFINE_UNQUOTED(PRODUCT, "$PRODUCT")\r
-AC_DEFINE_UNQUOTED(VERSION, "$VERSION")\r
-AC_DEFINE_UNQUOTED(PATCHLEVEL, "$PATCHLEVEL")\r
-AC_SUBST(PRODUCT)\r
-AC_SUBST(VERSION)\r
-AC_SUBST(PATCHLEVEL)\r
-\r
AC_CONFIG_FILES([Makefile cmail])\r
AC_CONFIG_COMMANDS([test-stamp-h],[test -z "$CONFIG_HEADERS" || date > stamp-h])\r
AC_CONFIG_COMMANDS([chmod-cmail],[chmod 755 cmail])\r
\r
#define LAST_PTY_LETTER 'q'\r
\r
-#define PATCHLEVEL "0j"\r
+/* Name of package */\r
+#define PACKAGE "WinBoard"\r
\r
-#define PRODUCT "WinBoard"\r
+/* Define to the address where bug reports for this package should be sent. */\r
+#define PACKAGE_BUGREPORT "bug-xboard@gnu.org"\r
+\r
+/* Define to the full name of this package. */\r
+#define PACKAGE_NAME "WinBoard"\r
+\r
+/* Define to the full name and version of this package. */\r
+#define PACKAGE_STRING "WinBoard 4.4.0j"\r
+\r
+/* Define to the one symbol short name of this package. */\r
+#define PACKAGE_TARNAME "winboard"\r
+\r
+/* Define to the version of this package. */\r
+#define PACKAGE_VERSION "4.4.0j"\r
\r
#define PTY_ITERATION\r
\r
return;\r
}\r
fprintf(f, ";\n");\r
- fprintf(f, "; %s %s.%s Save Settings file\n", PRODUCT, VERSION, PATCHLEVEL);\r
+ fprintf(f, "; %s Save Settings file\n", PACKAGE_STRING);\r
fprintf(f, ";\n");\r
fprintf(f, "; You can edit the values of options that are already set in this file,\n");\r
fprintf(f, "; but if you add other options, the next Save Settings will not save them.\n");\r
#ifdef ENABLE_NLS
XtSetLanguageProc(NULL, NULL, NULL);
- bindtextdomain(PRODUCT, LOCALEDIR);
- textdomain(PRODUCT);
+ bindtextdomain(PACKAGE, LOCALEDIR);
+ textdomain(PACKAGE);
#endif
shellWidget =
"Copyright 1991 Digital Equipment Corporation",
"Enhancements Copyright 1992-2009 Free Software Foundation",
"Enhancements Copyright 2005 Alessandro Scotti",
- PRODUCT, " is free software and carries NO WARRANTY;",
+ PACKAGE, " is free software and carries NO WARRANTY;",
"see the file COPYING for more information.");
ErrorPopUp(_("About XBoard"), buf, FALSE);
}