From 8eaaf1150a60af377a25c41e4cd7b37eb7a85ba9 Mon Sep 17 00:00:00 2001 From: 1138-4EB <1138-4EB@users.noreply.github.com> Date: Sun, 1 Sep 2019 09:04:31 +0200 Subject: fix(configure): ignore line ending when comparing ghdl_version and libghdl_version (#910) --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'configure') 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" -- cgit v1.2.3