From: Paolo Bonzini Date: Wed, 13 Jan 2010 08:52:56 +0000 (+0100) Subject: use pkg-config for libcurl whenever available X-Git-Tag: TizenStudio_2.0_p2.3~6002 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a55215b63648873148d288798430c7b15f992719;p=sdk%2Femulator%2Fqemu.git use pkg-config for libcurl whenever available Signed-off-by: Paolo Bonzini Signed-off-by: Anthony Liguori --- diff --git a/configure b/configure index f0bd38b..5631bbb 100755 --- a/configure +++ b/configure @@ -1309,13 +1309,19 @@ fi ########################################## # curl probe +if $pkgconfig libcurl --modversion >/dev/null 2>&1; then + curlconfig="$pkgconfig libcurl" +else + curlconfig=curl-config +fi + if test "$curl" != "no" ; then cat > $TMPC << EOF #include int main(void) { return curl_easy_init(); } EOF - curl_cflags=`curl-config --cflags 2>/dev/null` - curl_libs=`curl-config --libs 2>/dev/null` + curl_cflags=`$curlconfig --cflags 2>/dev/null` + curl_libs=`$curlconfig --libs 2>/dev/null` if compile_prog "$curl_cflags" "$curl_libs" ; then curl=yes libs_tools="$curl_libs $libs_tools"