Run cmd through Wine when available

If we have Wine, it will provide cmd so we can build the pkg-config path
for the test.
This commit is contained in:
Dan Nicholson 2013-03-29 12:35:21 -07:00
parent 4a0ab4be0b
commit 7328e6fc9e
2 changed files with 2 additions and 1 deletions

View file

@ -22,7 +22,7 @@ if [ "$native_win32" = yes ]; then
# Assume we have cmd somewhere to get variable %cd%. Make sure
# to strip carriage returns.
pcdir=$(cd $top_builddir/.libs &&
cmd /C echo %cd% | sed -r 's/\r//g')
$WINE cmd /C echo %cd% | sed -r 's/\r//g')
fi
win_path="$pcdir/lib/pkgconfig;$pcdir/share/pkgconfig"

View file

@ -15,3 +15,4 @@ system_library_path="@system_library_path@"
list_indirect_deps=@use_indirect_deps@
PACKAGE_VERSION=@PACKAGE_VERSION@
native_win32=@native_win32@
WINE=@WINE@