diff options
| author | Michael Tokarev | 2013-05-25 11:17:21 +0200 |
|---|---|---|
| committer | Michael Tokarev | 2013-06-01 12:25:38 +0200 |
| commit | a3605bf696a30e793d375b6c4ff1fd88ec546010 (patch) | |
| tree | 8b357faa7a205e725c0b1baca7081668c56e4e28 /configure | |
| parent | target-i386: Fix aflag logic for CODE64 and the 0x67 prefix (diff) | |
| download | qemu-a3605bf696a30e793d375b6c4ff1fd88ec546010.tar.gz qemu-a3605bf696a30e793d375b6c4ff1fd88ec546010.tar.xz qemu-a3605bf696a30e793d375b6c4ff1fd88ec546010.zip | |
don't run pkg-config for features explicitly disabled
We test pkg-config for curses and curl even if those are explicitly
disabled. Move these tests inside `if "$feature" != "no"' sections.
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 21 |
1 files changed, 9 insertions, 12 deletions
@@ -2153,13 +2153,12 @@ fi ########################################## # curses probe -if test "$mingw32" = "yes" ; then +if test "$curses" != "no" ; then + if test "$mingw32" = "yes" ; then curses_list="-lpdcurses" -else + else curses_list="-lncurses:-lcurses:$($pkg_config --libs ncurses 2>/dev/null)" -fi - -if test "$curses" != "no" ; then + fi curses_found=no cat > $TMPC << EOF #include <curses.h> @@ -2191,14 +2190,12 @@ fi ########################################## # curl probe - -if $pkg_config libcurl --modversion >/dev/null 2>&1; then - curlconfig="$pkg_config libcurl" -else - curlconfig=curl-config -fi - if test "$curl" != "no" ; then + if $pkg_config libcurl --modversion >/dev/null 2>&1; then + curlconfig="$pkg_config libcurl" + else + curlconfig=curl-config + fi cat > $TMPC << EOF #include <curl/curl.h> int main(void) { curl_easy_init(); curl_multi_setopt(0, 0, 0); return 0; } |
