Avoid errors when curl-config does not exist
authorPaul Brook <paul@codesourcery.com>
Fri, 22 May 2009 16:22:38 +0000 (17:22 +0100)
committerPaul Brook <paul@codesourcery.com>
Fri, 22 May 2009 16:22:38 +0000 (17:22 +0100)
Signed-off-by: Paul Brook <paul@codesourcery.com>

configure

index 6ab4d80..4729c7f 100755 (executable)
--- a/configure
+++ b/configure
@@ -1073,7 +1073,7 @@ if test "$curl" = "yes" ; then
 #include <curl/curl.h>
 int main(void) { return curl_easy_init(); }
 EOF
-  curl_libs=`curl-config --libs`
+  curl_libs=`curl-config --libs 2>/dev/null`
  if $cc $ARCH_CFLAGS $curl_libs -o $TMPE $TMPC > /dev/null 2> /dev/null ; then
     curl=yes
   fi