pkg-config/check/check-define-variable
LRN d415d91713 Fix test --define-variable invocation to avoid MSYS path mangling
Otherwise tests won't pass when running in MSYS.
2012-05-18 09:14:08 -07:00

23 lines
458 B
Bash
Executable file

#! /bin/sh
# Make sure we're POSIX
if [ "$PKG_CONFIG_SHELL_IS_POSIX" != "1" ]; then
PKG_CONFIG_SHELL_IS_POSIX=1 PATH=`getconf PATH` exec sh $0 "$@"
fi
set -e
. ${srcdir}/common
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