diff --git a/configure.ac b/configure.ac index 5fdee4f6f5..f47c310331 100644 --- a/configure.ac +++ b/configure.ac @@ -83,9 +83,18 @@ AC_SUBST([BOINC_VERSION_STRING],AC_PACKAGE_VERSION) BOINC_SET_VERSION(translit(AC_PACKAGE_VERSION, [.], [,])) -AC_DEFINE_UNQUOTED([BOINC_VERSION_STRING], "$BOINC_VERSION_STRING", [String representation of BOINC version number]) -AC_DEFINE_UNQUOTED([BOINC_MAJOR_VERSION], $BOINC_MAJOR_VERSION, [Major part of BOINC version number]) -AC_DEFINE_UNQUOTED([BOINC_MINOR_VERSION], $BOINC_MINOR_VERSION, [Minor part of BOINC version number]) +dnl Version information moved to version.h so removed from config.h +dnl AC_DEFINE_UNQUOTED([BOINC_VERSION_STRING], "$BOINC_VERSION_STRING", [String representation of BOINC version number]) +dnl AC_DEFINE_UNQUOTED([BOINC_MAJOR_VERSION], $BOINC_MAJOR_VERSION, [Major part of BOINC version number]) +dnl AC_DEFINE_UNQUOTED([BOINC_MINOR_VERSION], $BOINC_MINOR_VERSION, [Minor part of BOINC version number]) + +dnl Need to duplicate these AC_SUBST because some versions of autoconf won't +dnl find AC_SUBST in a macro unless subsequently used in a DEFINE or SUBST +dnl outside of a macro. Don't ask me why. +AC_SUBST([BOINC_VERSION_STRING]) +AC_SUBST([BOINC_MAJOR_VERSION]) +AC_SUBST([BOINC_MINOR_BERSION]) + AC_DEFINE_UNQUOTED([HOSTTYPE], "$host", [Host for this compilation]) AC_SUBST([CLIENT_BIN_FILENAME],[boinc]) AC_SUBST([CLIENT_GUI_BIN_FILENAME],[boincmgr]) @@ -177,6 +186,10 @@ AH_TOP([ /* double-inclusion protection for config.h */ #ifndef BOINC_CONFIG_H #define BOINC_CONFIG_H + +/* Version defines are now in version.h */ +#include "version.h" + ]) AH_BOTTOM([ /* end double-inclusion protection for config.h */ @@ -330,6 +343,7 @@ dnl AC_SUBST(STATIC_FLAGS) AC_CONFIG_FILES([ + ./version.h api/Makefile apps/Makefile clientgui/Makefile