summaryrefslogtreecommitdiff
blob: 7f0a921b176095d5295d4e159a4ac684150d1797 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
torcs doesn't use automake, so it shouldn't be calling the macro

http://bugs.gentoo.org/408473

--- torcs-1.3.4/configure.in
+++ torcs-1.3.4/configure.in
@@ -15,9 +15,12 @@
 #
 ##############################################################################
 
-AC_INIT(Make-config.in)
+AC_INIT(torcs, 1.3.4)
 AC_CONFIG_HEADERS(config.h)
-AM_INIT_AUTOMAKE(torcs, 1.3.4)
+dnl Workaround code using old VERSION instead of new PACKAGE_VERSION
+VERSION=$PACKAGE_VERSION
+AC_DEFINE_UNQUOTED([VERSION], "$VERSION", [old VERSION workaround])
+AC_SUBST(VERSION)
 
 dnl Checks for programs.
 AC_PROG_CC