Mercurial > octave
changeset 32353:9067c860e0f1
build: Avoid issue with AC_PATH_TOOL on Windows.
* m4/acinclude.m4 (OCTAVE_CHECK_QT_VERSION): qtpaths6 returns a Windows-style
path on MinGW. But AC_PATH_TOOL seems to require a UNIX-style path. Convert
the output from qtpath6 or qmake6 to a UNIX-style path on MinGW.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Wed, 27 Sep 2023 15:49:10 +0200 |
parents | be5db604940b |
children | c3c2dd7042bf |
files | m4/acinclude.m4 |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/m4/acinclude.m4 Wed Sep 27 14:55:51 2023 +0200 +++ b/m4/acinclude.m4 Wed Sep 27 15:49:10 2023 +0200 @@ -2100,6 +2100,16 @@ QT_HOST_LIBEXECS=`$QMAKE6 -query QT_HOST_LIBEXECS` fi fi + if test -n "$QT_HOST_LIBEXECS"; then + case $host_os in + mingw*) + AC_CHECK_TOOL(CYGPATH, [cygpath]) + if test -n "$CYGPATH"; then + QT_HOST_LIBEXECS=`$CYGPATH -u $QT_HOST_LIBEXECS` + fi + ;; + esac + fi ;; esac