aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
author1138-4EB <1138-4EB@users.noreply.github.com>2019-09-01 09:04:31 +0200
committertgingold <tgingold@users.noreply.github.com>2019-09-01 09:04:31 +0200
commit8eaaf1150a60af377a25c41e4cd7b37eb7a85ba9 (patch)
tree0574828651a7cbf98dca142968c30a617036b806 /configure
parentbe3a72d29dee3faeb928e9ef26528c25231a9bc6 (diff)
downloadghdl-8eaaf1150a60af377a25c41e4cd7b37eb7a85ba9.tar.gz
ghdl-8eaaf1150a60af377a25c41e4cd7b37eb7a85ba9.tar.bz2
ghdl-8eaaf1150a60af377a25c41e4cd7b37eb7a85ba9.zip
fix(configure): ignore line ending when comparing ghdl_version and libghdl_version (#910)
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index bf1a9c880..5b7b9696d 100755
--- a/configure
+++ b/configure
@@ -186,7 +186,7 @@ fi
# Check the version of libghdl is correct.
if [ "$enable_libghdl" = true ]; then
libghdl_version="$srcdir/python/libghdl/version.py"
- if ! echo "__version__ = '${ghdl_version}'" | cmp "$libghdl_version" ; then
+ if ! echo "__version__ = '${ghdl_version}'" | cmp -n "${#ghdl_version}" "$libghdl_version" ; then
echo "Sorry, the version of $libghdl_version is not correct"
echo "update the version to: $ghdl_version"
echo "or use --disable-libghdl"