summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLRN <lrn1986@gmail.com>2012-05-18 05:32:17 -0700
committerDan Nicholson <dbn.lists@gmail.com>2012-05-18 09:14:08 -0700
commitd415d9171390bab1f1601641cc0053ab98c1fdd8 (patch)
tree3edfc69c7e863cc32a538f10d4b77bce20c58ab3
parentee1737eb4194ba55b0f093b232afbf62b90241a7 (diff)
Fix test --define-variable invocation to avoid MSYS path mangling
Otherwise tests won't pass when running in MSYS.
-rwxr-xr-xcheck/check-define-variable10
1 files changed, 9 insertions, 1 deletions
diff --git a/check/check-define-variable b/check/check-define-variable
index bf8aebe..d35e445 100755
--- a/check/check-define-variable
+++ b/check/check-define-variable
@@ -9,7 +9,15 @@ set -e
. ${srcdir}/common
-ARGS="--define-variable=includedir=/includedir/ --cflags simple"
+case ${MACHTYPE} in
+*-msys)
+ # Make sure path doesn't get mangled on MSYS
+ ARGS="--define-variable=includedir=\\/includedir/ --cflags simple"
+ ;;
+*)
+ ARGS="--define-variable=includedir=/includedir/ --cflags simple"
+ ;;
+esac
RESULT="-I/includedir/"
run_test