11287
11306
###########################
11308
###########################
11317
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11318
if test -n "$ac_tool_prefix"; then
11319
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11320
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11321
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11322
$as_echo_n "checking for $ac_word... " >&6; }
11323
if ${ac_cv_path_PKG_CONFIG+:} false; then :
11324
$as_echo_n "(cached) " >&6
11326
case $PKG_CONFIG in
11328
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11331
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11332
for as_dir in $PATH
11335
test -z "$as_dir" && as_dir=.
11336
for ac_exec_ext in '' $ac_executable_extensions; do
11337
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11338
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11339
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11349
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11350
if test -n "$PKG_CONFIG"; then
11351
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11352
$as_echo "$PKG_CONFIG" >&6; }
11354
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11355
$as_echo "no" >&6; }
11360
if test -z "$ac_cv_path_PKG_CONFIG"; then
11361
ac_pt_PKG_CONFIG=$PKG_CONFIG
11362
# Extract the first word of "pkg-config", so it can be a program name with args.
11363
set dummy pkg-config; ac_word=$2
11364
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11365
$as_echo_n "checking for $ac_word... " >&6; }
11366
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11367
$as_echo_n "(cached) " >&6
11369
case $ac_pt_PKG_CONFIG in
11371
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11374
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11375
for as_dir in $PATH
11378
test -z "$as_dir" && as_dir=.
11379
for ac_exec_ext in '' $ac_executable_extensions; do
11380
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11381
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11382
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11392
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11393
if test -n "$ac_pt_PKG_CONFIG"; then
11394
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11395
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11397
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11398
$as_echo "no" >&6; }
11401
if test "x$ac_pt_PKG_CONFIG" = x; then
11404
case $cross_compiling:$ac_tool_warned in
11406
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11407
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11408
ac_tool_warned=yes ;;
11410
PKG_CONFIG=$ac_pt_PKG_CONFIG
11413
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11417
if test -n "$PKG_CONFIG"; then
11418
_pkg_min_version=0.9.0
11419
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11420
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11421
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11422
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11423
$as_echo "yes" >&6; }
11425
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11426
$as_echo "no" >&6; }
11432
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREERDP" >&5
11433
$as_echo_n "checking for FREERDP... " >&6; }
11435
if test -n "$FREERDP_CFLAGS"; then
11436
pkg_cv_FREERDP_CFLAGS="$FREERDP_CFLAGS"
11437
elif test -n "$PKG_CONFIG"; then
11438
if test -n "$PKG_CONFIG" && \
11439
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freerdp\""; } >&5
11440
($PKG_CONFIG --exists --print-errors "freerdp") 2>&5
11442
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11443
test $ac_status = 0; }; then
11444
pkg_cv_FREERDP_CFLAGS=`$PKG_CONFIG --cflags "freerdp" 2>/dev/null`
11445
test "x$?" != "x0" && pkg_failed=yes
11452
if test -n "$FREERDP_LIBS"; then
11453
pkg_cv_FREERDP_LIBS="$FREERDP_LIBS"
11454
elif test -n "$PKG_CONFIG"; then
11455
if test -n "$PKG_CONFIG" && \
11456
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freerdp\""; } >&5
11457
($PKG_CONFIG --exists --print-errors "freerdp") 2>&5
11459
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11460
test $ac_status = 0; }; then
11461
pkg_cv_FREERDP_LIBS=`$PKG_CONFIG --libs "freerdp" 2>/dev/null`
11462
test "x$?" != "x0" && pkg_failed=yes
11472
if test $pkg_failed = yes; then
11473
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11474
$as_echo "no" >&6; }
11476
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11477
_pkg_short_errors_supported=yes
11479
_pkg_short_errors_supported=no
11481
if test $_pkg_short_errors_supported = yes; then
11482
FREERDP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freerdp" 2>&1`
11484
FREERDP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freerdp" 2>&1`
11486
# Put the nasty error message in config.log where it belongs
11487
echo "$FREERDP_PKG_ERRORS" >&5
11489
as_fn_error $? "Package requirements (freerdp) were not met:
11491
$FREERDP_PKG_ERRORS
11493
Consider adjusting the PKG_CONFIG_PATH environment variable if you
11494
installed software in a non-standard prefix.
11496
Alternatively, you may set the environment variables FREERDP_CFLAGS
11497
and FREERDP_LIBS to avoid the need to call pkg-config.
11498
See the pkg-config man page for more details." "$LINENO" 5
11499
elif test $pkg_failed = untried; then
11500
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11501
$as_echo "no" >&6; }
11502
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11503
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11504
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11505
is in your PATH or set the PKG_CONFIG environment variable to the full
11506
path to pkg-config.
11508
Alternatively, you may set the environment variables FREERDP_CFLAGS
11509
and FREERDP_LIBS to avoid the need to call pkg-config.
11510
See the pkg-config man page for more details.
11512
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11513
See \`config.log' for more details" "$LINENO" 5; }
11515
FREERDP_CFLAGS=$pkg_cv_FREERDP_CFLAGS
11516
FREERDP_LIBS=$pkg_cv_FREERDP_LIBS
11517
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11518
$as_echo "yes" >&6; }
11522
###########################
11288
11523
# Local Install
11289
11524
###########################