diff options
author | Xavier Leroy <xavierleroy@users.noreply.github.com> | 2020-07-15 09:49:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-15 09:49:40 +0200 |
commit | 13e0566dbdd8bf845d7c2a65ffefaaf460381e70 (patch) | |
tree | 90a8dc86e3bb584ea3218dd3587c85e8efafad54 /configure | |
parent | 72be849e2a9bbe7e8a8438bf561c5a677a35c9e0 (diff) | |
download | compcert-kvx-13e0566dbdd8bf845d7c2a65ffefaaf460381e70.tar.gz compcert-kvx-13e0566dbdd8bf845d7c2a65ffefaaf460381e70.zip |
Revised detection of menhirLib directory, continued (#365)
This is a follow-up to commit 3b1f3dd5, which was wrong in that
errors in a shell pipeline were not correctly detected.
Fixes: #363
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -592,11 +592,10 @@ 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_dir=$(ocamlfind query menhirLib 2>/dev/null \ - | tr -d '\r' | tr '\\' '/') || \ - menhir_dir=$(menhir --suggest-menhirLib \ - | tr -d '\r' | tr '\\' '/') || \ + menhir_dir=$(ocamlfind query menhirLib 2>/dev/null) || \ + menhir_dir=$(menhir --suggest-menhirLib) || \ menhir_dir="" + menhir_dir=$(echo "$menhir_dir" | tr -d '\r' | tr '\\' '/') if test ! -d "$menhir_dir"; then echo "Error: cannot determine the location of the Menhir API library." echo "This can be due to an incorrect Menhir package." @@ -852,6 +851,7 @@ CompCert configuration: Linker needs '-no-pie'........ $clinker_needs_no_pie Math library.................. $libmath Build command to use.......... $make + Menhir API library............ $menhir_dir Binaries installed in......... $bindirexp Runtime library provided...... $has_runtime_lib Library files installed in.... $libdirexp |