From 98858317be25deed815c7a8b5d4e9d6b512f5de5 Mon Sep 17 00:00:00 2001 From: MSoegtropIMC <7895506+MSoegtropIMC@users.noreply.github.com> Date: Mon, 8 Jul 2019 10:00:22 +0200 Subject: Make configure resistant to Windows EOL and paths (#305) Commit 1df887f breaks compilation on some Windows environments, those where the output of `menhir --suggest-menhirLib` contains `\r\n` end-of-lines or backslashes in paths. The fix is to filter the output. Closes: #304 Changes in configure broke Windows build --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'configure') diff --git a/configure b/configure index 22581b02..d586436a 100755 --- a/configure +++ b/configure @@ -560,7 +560,7 @@ case "$menhir_ver" in 20[0-9][0-9][0-9][0-9][0-9][0-9]) if test "$menhir_ver" -ge $MENHIR_REQUIRED; then echo "version $menhir_ver -- good!" - menhir_include_dir=`menhir --suggest-menhirLib` + menhir_include_dir=$(menhir --suggest-menhirLib | tr -d '\r' | tr '\\' '/') if test -z "$menhir_include_dir"; then echo "Error: cannot determine the location of the Menhir API library." echo "This can be due to an incorrect Menhir package." -- cgit