]> www.ginac.de Git - cln.git/commitdiff
* Call `cln-config --version` only once and safe the result.
authorRichard Kreckel <kreckel@ginac.de>
Tue, 2 Oct 2001 16:06:41 +0000 (16:06 +0000)
committerRichard Kreckel <kreckel@ginac.de>
Tue, 2 Oct 2001 16:06:41 +0000 (16:06 +0000)
          (needed for autoconf 2.50 since AC_MSG_RESULT escapes backquotes.)

cln.m4

diff --git a/cln.m4 b/cln.m4
index b477c1610be99911cc3e715bb9603d1116b7ce07..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)