]> www.ginac.de Git - cln.git/blobdiff - cln.m4
Fix an old ChangeLog entry.
[cln.git] / cln.m4
diff --git a/cln.m4 b/cln.m4
index f79a95f7e8e47ba18453b65e1ee3a7683eb5ec21..01bab3bcf863e7bb6f5763a4dc4cf3159e00ed12 100644 (file)
--- a/cln.m4
+++ b/cln.m4
@@ -54,11 +54,12 @@ dnl Parse required version and the result of cln-config.
             sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
     CLN_CPPFLAGS=`$CLN_CONFIG $cln_config_args --cppflags`
     CLN_LIBS=`$CLN_CONFIG $cln_config_args --libs`
-    cln_config_major_version=`$CLN_CONFIG $cln_config_args --version | \
+    cln_config_version=`$CLN_CONFIG $cln_config_args --version`
+    cln_config_major_version=`echo $cln_config_version | \
             sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
-    cln_config_minor_version=`$CLN_CONFIG $cln_config_args --version | \
+    cln_config_minor_version=`echo $cln_config_version | \
             sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
-    cln_config_micro_version=`$CLN_CONFIG $cln_config_args --version | \
+    cln_config_micro_version=`echo $cln_config_version | \
             sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
 dnl Check if the installed CLN is sufficiently new according to cln-config.
     if test \( $cln_config_major_version -lt $cln_min_major_version \) -o \
@@ -122,7 +123,7 @@ int main(void)
             LIBS="$ac_save_LIBS"
         fi
         if test "x$no_cln" = x ; then
-            AC_MSG_RESULT([yes, `$CLN_CONFIG $cln_config_args --version`])
+            AC_MSG_RESULT([yes, $cln_config_version])
             ifelse([$2], , :, [$2])
         else
             AC_MSG_RESULT(no)
@@ -138,7 +139,7 @@ int main(void)
                   echo "*** that the run-time linker is not finding CLN or finding the wrong"
                   echo "*** version of CLN. If it is not finding CLN, you'll need to set your"
                   echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
-                  echo "*** to the installed location  Also, make sure you have run ldconfig if that"
+                  echo "*** to the installed location. Also, make sure you have run ldconfig if that"
                   echo "*** is required on your system."],
                 [ echo "*** The test program failed to compile or link. See the file config.log for the"
                   echo "*** exact error that occured. This usually means CLN was incorrectly installed"