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 \
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)
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"