summaryrefslogtreecommitdiff
path: root/makefiledir
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2006-02-25 16:57:17 +0000
committerbjarni <bjarni@openttd.org>2006-02-25 16:57:17 +0000
commit51ece8d99ae9745d652f60e91b1df920e375675a (patch)
treef01590a6d49cba6874a5f3fb1e6f2d6d4f15829e /makefiledir
parent67fde581ab91e3ce8fa4c2b0f9320c0268f8356e (diff)
downloadopenttd-51ece8d99ae9745d652f60e91b1df920e375675a.tar.xz
(svn r3672) -Fix: [makefile] fixed bug where some settings where overwritten with the default ones when MAKEFILE_VERSION was changed
Diffstat (limited to 'makefiledir')
-rw-r--r--makefiledir/Makefile.libdetection8
1 files changed, 8 insertions, 0 deletions
diff --git a/makefiledir/Makefile.libdetection b/makefiledir/Makefile.libdetection
index f648c22bd..93ae9172f 100644
--- a/makefiledir/Makefile.libdetection
+++ b/makefiledir/Makefile.libdetection
@@ -1,5 +1,11 @@
# this file detects what OS and libs the computer have/are running
+ifndef CONFIG_VERSION
+CONFIG_VERSION:=0
+endif
+
+ifeq ($(shell expr $(CONFIG_VERSION) \< 9), 1)
+
# Automatically recognize if building on Win32
ifdef WINDIR
ifndef UNIX
@@ -106,3 +112,5 @@ endif
ifdef CYGWIN
WITH_PNG:=
endif
+
+endif