diff options
author | LRN <lrn1986@gmail.com> | 2012-05-18 05:32:17 -0700 |
---|---|---|
committer | Dan Nicholson <dbn.lists@gmail.com> | 2012-05-18 09:14:08 -0700 |
commit | d415d9171390bab1f1601641cc0053ab98c1fdd8 (patch) | |
tree | 3edfc69c7e863cc32a538f10d4b77bce20c58ab3 | |
parent | ee1737eb4194ba55b0f093b232afbf62b90241a7 (diff) |
Fix test --define-variable invocation to avoid MSYS path mangling
Otherwise tests won't pass when running in MSYS.
-rwxr-xr-x | check/check-define-variable | 10 |
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 |