mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-11 03:24:58 -06:00
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>
This commit is contained in:
parent
dec3fc9657
commit
a3605bf696
1 changed files with 10 additions and 13 deletions
23
configure
vendored
23
configure
vendored
|
@ -2153,13 +2153,12 @@ fi
|
||||||
|
|
||||||
##########################################
|
##########################################
|
||||||
# curses probe
|
# curses probe
|
||||||
if test "$mingw32" = "yes" ; then
|
|
||||||
curses_list="-lpdcurses"
|
|
||||||
else
|
|
||||||
curses_list="-lncurses:-lcurses:$($pkg_config --libs ncurses 2>/dev/null)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test "$curses" != "no" ; then
|
if test "$curses" != "no" ; then
|
||||||
|
if test "$mingw32" = "yes" ; then
|
||||||
|
curses_list="-lpdcurses"
|
||||||
|
else
|
||||||
|
curses_list="-lncurses:-lcurses:$($pkg_config --libs ncurses 2>/dev/null)"
|
||||||
|
fi
|
||||||
curses_found=no
|
curses_found=no
|
||||||
cat > $TMPC << EOF
|
cat > $TMPC << EOF
|
||||||
#include <curses.h>
|
#include <curses.h>
|
||||||
|
@ -2191,14 +2190,12 @@ fi
|
||||||
|
|
||||||
##########################################
|
##########################################
|
||||||
# curl probe
|
# 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 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
|
cat > $TMPC << EOF
|
||||||
#include <curl/curl.h>
|
#include <curl/curl.h>
|
||||||
int main(void) { curl_easy_init(); curl_multi_setopt(0, 0, 0); return 0; }
|
int main(void) { curl_easy_init(); curl_multi_setopt(0, 0, 0); return 0; }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue