mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 06:15:04 +00:00
(svn r15035) -Fix (r15027): if case people don't use SVN (which we advise), they do not receive src/3rdparty/squirrel automaticly. Warn when not found, and advise what to do (this to avoid stupid users like yorick get all confused and agressive)
This commit is contained in:
parent
a5c47a2da8
commit
324e256dfd
10
config.lib
10
config.lib
@ -617,6 +617,15 @@ check_params() {
|
||||
log 1 "checking assert... disabled"
|
||||
fi
|
||||
|
||||
SCRIPT_SRC_DIR="$ROOT_DIR/src/3rdparty/squirrel/include"
|
||||
if [ ! -d "$SCRIPT_SRC_DIR" ]; then
|
||||
log 1 "checking 3rdparty... NOT FOUND"
|
||||
log 1 "ERROR: please make sure you have src/3rdparty/squirrel"
|
||||
log 1 "ERROR: you can find the source at svn://svn.openttd.org/3rdparty/squirrel"
|
||||
exit 1
|
||||
fi
|
||||
log 1 "checking 3rdparty... found"
|
||||
|
||||
pre_detect_with_zlib=$with_zlib
|
||||
detect_zlib
|
||||
|
||||
@ -1232,7 +1241,6 @@ make_cflags_and_ldflags() {
|
||||
if [ "$cpu_type" = "64" ]; then
|
||||
CFLAGS="$CFLAGS -D_SQ64"
|
||||
fi
|
||||
SCRIPT_SRC_DIR="$ROOT_DIR/src/3rdparty/squirrel/include"
|
||||
CFLAGS="$CFLAGS -I$SCRIPT_SRC_DIR"
|
||||
CFLAGS="$CFLAGS -DNO_GARBAGE_COLLECTOR"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user