summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-05-12 20:52:12 +0000
committerrubidium <rubidium@openttd.org>2009-05-12 20:52:12 +0000
commit87a5ab8255b1e3240772114a252979e14d0dc8b3 (patch)
tree9e8f2d090b449a0f572a9cdb61aad499e3633260 /configure
parent31272407f5d2377c3fb47859c2ff06ff0e8e6742 (diff)
downloadopenttd-87a5ab8255b1e3240772114a252979e14d0dc8b3.tar.xz
(svn r16285) -Change: give some warnings when unsupported characters are used in the path
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure12
1 files changed, 12 insertions, 0 deletions
diff --git a/configure b/configure
index 64cac16e4..a74125c20 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,13 @@
#!/bin/sh
+check_path_characters() {
+ if [ -n "`echo $ROOT_DIR | grep '[^-_A-Za-z0-9\/\\\.:]'`" ]; then
+ echo "WARNING: The path contains a non-alphanumeric character that might cause"
+ echo " failures in subsequent build stages. Any failures with the build"
+ echo " will most likely be caused by this."
+ fi
+}
+
CONFIGURE_EXECUTABLE="$_"
# On *nix systems those two are equal when ./configure is done
if [ "$0" != "$CONFIGURE_EXECUTABLE" ]; then
@@ -16,6 +24,8 @@ fi
ROOT_DIR="`dirname $0`"
ROOT_DIR="`cd $ROOT_DIR && pwd`"
+check_path_characters
+
PWD="`pwd`"
PREFIX="$PWD/bin"
@@ -135,3 +145,5 @@ CONFIGURE_FILES="$ROOT_DIR/configure $ROOT_DIR/config.lib $ROOT_DIR/Makefile.in
generate_main
generate_lang
generate_src
+
+check_path_characters