if you "apt-get remove bc" you get this error during configure of rtorrent 
source package:

checking for curl >= 7.12.0... ./configure: line 13046: bc: command not 
found 7.15.5

now look at the code in scripts/checks.m4:

      ver=`curl-config --version | sed -e "s/libcurl //g"`
      hex_ver=`curl-config --vernum | tr 'a-f' 'A-F'`
      ok=`echo "ibase=16; if($hex_ver>=$check_hex) $hex_ver else 0" | bc`

      if test x$ok != x0; then
        my_cv_curl_vers="$ver"
        AC_MSG_RESULT([$my_cv_curl_vers])

        CURL_CFLAGS=`curl-config --cflags`
        CURL_LIBS=`curl-config --libs`
      else
        AC_MSG_RESULT(FAILED)
        AC_MSG_ERROR([$ver is too old. Need version $check or higher.])
      fi


if bc isn't found then ok="" and the if test x$ok != x0 will pass... (this 
is an upstream bug)

regardless of the libcurl version installed...

it seems best to just build-depend on bc... (or build-depend on a recent 
enough libcurl and force the results of these tests).

-dean

p.s. bc is not installed on minimal systems, which is why i ran into this.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to