Hardcode wesconfig.h...

...(i.e. no longer auto-generated, it was updating only the version
number anyway, and that can be easily done by hand)
This commit is contained in:
Ignacio R. Morelle 2008-03-25 14:14:10 +00:00
parent 22c0411b08
commit dec24de9ed

View file

@ -10,44 +10,6 @@ define([WESNOTH_VERSION],[1.5.0-svn])
AC_INIT([Battle for Wesnoth], WESNOTH_VERSION, [isaac@warp.es], [wesnoth])
dnl
dnl Generate wesconfig.h from the information above
dnl
AC_CONFIG_COMMANDS([src/wesconfig.h],
[cat > src/wesconfig.h <<EOF
#ifndef WESCONFIG_H_INCLUDED
#define WESCONFIG_H_INCLUDED
//! @file wesconfig.h
//! Some defines: VERSION, PACKAGE, MIN_SAVEGAME_VERSION
//!
//! DO NOT MODIFY THIS FILE !!!
//! modify configure.ac otherwise the settings will be overwritten.
#ifdef HAVE_CONFIG_H
# include "config.h"
#else
# define VERSION "]WESNOTH_VERSION["
# define PACKAGE "wesnoth"
# ifndef LOCALEDIR
# define LOCALEDIR "translations"
# endif
#endif
/**
* Some older savegames of Wesnoth can't be loaded anymore,
* this variable defines the minimum required version.
* It is only to be updated upon changes that break *all* saves/replays
* (break as in crash wesnoth, not compatibility issues like stat changes)
*/
#define MIN_SAVEGAME_VERSION "1.3.10"
#endif
EOF
])
AC_REVISION([$Revision$])
AC_CONFIG_AUX_DIR([config])