summaryrefslogtreecommitdiff
path: root/config.lib
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-08-01 16:57:30 +0000
committerrubidium <rubidium@openttd.org>2009-08-01 16:57:30 +0000
commit144a84a348160397b1ef0d454d7583c197576dbf (patch)
tree7fff647638c1cc2368e5900b61df1287cd996d61 /config.lib
parent5d083f30395acae796b49814eac0b1262bb867a7 (diff)
downloadopenttd-144a84a348160397b1ef0d454d7583c197576dbf.tar.xz
(svn r17026) -Fix [FS#3076]: "[bd]ash"-ism in configure
Diffstat (limited to 'config.lib')
-rw-r--r--config.lib4
1 files changed, 3 insertions, 1 deletions
diff --git a/config.lib b/config.lib
index a72025098..79c89a170 100644
--- a/config.lib
+++ b/config.lib
@@ -1434,7 +1434,9 @@ make_cflags_and_ldflags() {
# Also make makedepend aware of compiler's built-in defines.
if [ "$with_makedepend" != "0" ] || [ "$enable_builtin_depend" != "0" ]; then
cflags_makedep="`echo | $cxx_host -E -x c++ -dM - | sed 's@.define @-D@g;s@ .*@ @g;s@(.*)@@g' | tr -d '\r\n'`"
- cflags_makedep="$cflags_makedep `echo "$CFLAGS" | sed 's@ /@ -@g;s@-I[ ]*[^ ]*@@g'`"
+
+ # Please escape ALL " within ` because e.g. "" terminates the string in some sh implementations
+ cflags_makedep="$cflags_makedep `echo \"$CFLAGS\" | sed 's@ /@ -@g;s@-I[ ]*[^ ]*@@g'`"
else
makedepend=""
fi