4980
# Use DBus# to export our remote control if available.
4976
# Use DBus# to export our remote control if available and the user wants it
4984
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
4985
$as_echo_n "checking for DBUS... " >&6; }
4987
if test -n "$DBUS_CFLAGS"; then
4988
pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
4989
elif test -n "$PKG_CONFIG"; then
4990
if test -n "$PKG_CONFIG" && \
4991
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ndesk-dbus-glib-1.0\""; } >&5
4992
($PKG_CONFIG --exists --print-errors "ndesk-dbus-glib-1.0") 2>&5
4994
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4995
test $ac_status = 0; }; then
4996
pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "ndesk-dbus-glib-1.0" 2>/dev/null`
5003
if test -n "$DBUS_LIBS"; then
5004
pkg_cv_DBUS_LIBS="$DBUS_LIBS"
5005
elif test -n "$PKG_CONFIG"; then
5006
if test -n "$PKG_CONFIG" && \
5007
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ndesk-dbus-glib-1.0\""; } >&5
5008
($PKG_CONFIG --exists --print-errors "ndesk-dbus-glib-1.0") 2>&5
5010
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5011
test $ac_status = 0; }; then
5012
pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "ndesk-dbus-glib-1.0" 2>/dev/null`
5022
if test $pkg_failed = yes; then
5023
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5024
$as_echo "no" >&6; }
5026
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5027
_pkg_short_errors_supported=yes
5029
_pkg_short_errors_supported=no
5031
if test $_pkg_short_errors_supported = yes; then
5032
DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ndesk-dbus-glib-1.0" 2>&1`
5034
DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "ndesk-dbus-glib-1.0" 2>&1`
5036
# Put the nasty error message in config.log where it belongs
5037
echo "$DBUS_PKG_ERRORS" >&5
5040
elif test $pkg_failed = untried; then
5041
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5042
$as_echo "no" >&6; }
5045
DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
5046
DBUS_LIBS=$pkg_cv_DBUS_LIBS
5047
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5048
$as_echo "yes" >&6; }
5051
if test "$ENABLE_DBUS" = "yes"; then
5053
ENABLE_DBUS_FALSE='#'
5055
ENABLE_DBUS_TRUE='#'
4979
# Check whether --with-dbus was given.
4980
if test "${with_dbus+set}" = set; then :
4987
# In auto mode, prefer dbus-sharp
4988
if test -n "$PKG_CONFIG" && \
4989
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-sharp-1.0\""; } >&5
4990
($PKG_CONFIG --exists --print-errors "dbus-sharp-1.0") 2>&5
4992
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4993
test $ac_status = 0; }; then
4994
DBUS_SHARP_SUPPORT=yes
4996
DBUS_SHARP_SUPPORT=no
4998
if test -n "$PKG_CONFIG" && \
4999
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ndesk-dbus-1.0\""; } >&5
5000
($PKG_CONFIG --exists --print-errors "ndesk-dbus-1.0") 2>&5
5002
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5003
test $ac_status = 0; }; then
5004
NDESK_DBUS_SUPPORT=yes
5006
NDESK_DBUS_SUPPORT=no
5008
if test "x$with_dbus" = "xauto"; then
5009
if test "$DBUS_SHARP_SUPPORT" = "xyes"; then
5010
ENABLE_DBUS=$DBUS_SHARP_SUPPORT
5012
ENABLE_DBUS=$NDESK_DBUS_SUPPORT
5015
# If we found a package or the user told us
5016
if test "x$with_dbus" = "xyes"; then
5017
if test "x$DBUS_SHARP_SUPPORT" = "xyes"; then
5020
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS_SHARP" >&5
5021
$as_echo_n "checking for DBUS_SHARP... " >&6; }
5023
if test -n "$DBUS_SHARP_CFLAGS"; then
5024
pkg_cv_DBUS_SHARP_CFLAGS="$DBUS_SHARP_CFLAGS"
5025
elif test -n "$PKG_CONFIG"; then
5026
if test -n "$PKG_CONFIG" && \
5027
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-sharp-glib-1.0\""; } >&5
5028
($PKG_CONFIG --exists --print-errors "dbus-sharp-glib-1.0") 2>&5
5030
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5031
test $ac_status = 0; }; then
5032
pkg_cv_DBUS_SHARP_CFLAGS=`$PKG_CONFIG --cflags "dbus-sharp-glib-1.0" 2>/dev/null`
5033
test "x$?" != "x0" && pkg_failed=yes
5040
if test -n "$DBUS_SHARP_LIBS"; then
5041
pkg_cv_DBUS_SHARP_LIBS="$DBUS_SHARP_LIBS"
5042
elif test -n "$PKG_CONFIG"; then
5043
if test -n "$PKG_CONFIG" && \
5044
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-sharp-glib-1.0\""; } >&5
5045
($PKG_CONFIG --exists --print-errors "dbus-sharp-glib-1.0") 2>&5
5047
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5048
test $ac_status = 0; }; then
5049
pkg_cv_DBUS_SHARP_LIBS=`$PKG_CONFIG --libs "dbus-sharp-glib-1.0" 2>/dev/null`
5050
test "x$?" != "x0" && pkg_failed=yes
5060
if test $pkg_failed = yes; then
5061
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5062
$as_echo "no" >&6; }
5064
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5065
_pkg_short_errors_supported=yes
5067
_pkg_short_errors_supported=no
5069
if test $_pkg_short_errors_supported = yes; then
5070
DBUS_SHARP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-sharp-glib-1.0" 2>&1`
5072
DBUS_SHARP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-sharp-glib-1.0" 2>&1`
5074
# Put the nasty error message in config.log where it belongs
5075
echo "$DBUS_SHARP_PKG_ERRORS" >&5
5077
ENABLE_NDESK_DBUS="no"
5078
elif test $pkg_failed = untried; then
5079
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5080
$as_echo "no" >&6; }
5081
ENABLE_NDESK_DBUS="no"
5083
DBUS_SHARP_CFLAGS=$pkg_cv_DBUS_SHARP_CFLAGS
5084
DBUS_SHARP_LIBS=$pkg_cv_DBUS_SHARP_LIBS
5085
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5086
$as_echo "yes" >&6; }
5087
ENABLE_NDESK_DBUS="yes"
5089
DBUS_LIBS="$DBUS_SHARP_LIBS"
5094
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS_NDESK" >&5
5095
$as_echo_n "checking for DBUS_NDESK... " >&6; }
5097
if test -n "$DBUS_NDESK_CFLAGS"; then
5098
pkg_cv_DBUS_NDESK_CFLAGS="$DBUS_NDESK_CFLAGS"
5099
elif test -n "$PKG_CONFIG"; then
5100
if test -n "$PKG_CONFIG" && \
5101
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ndesk-dbus-glib-1.0\""; } >&5
5102
($PKG_CONFIG --exists --print-errors "ndesk-dbus-glib-1.0") 2>&5
5104
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5105
test $ac_status = 0; }; then
5106
pkg_cv_DBUS_NDESK_CFLAGS=`$PKG_CONFIG --cflags "ndesk-dbus-glib-1.0" 2>/dev/null`
5107
test "x$?" != "x0" && pkg_failed=yes
5114
if test -n "$DBUS_NDESK_LIBS"; then
5115
pkg_cv_DBUS_NDESK_LIBS="$DBUS_NDESK_LIBS"
5116
elif test -n "$PKG_CONFIG"; then
5117
if test -n "$PKG_CONFIG" && \
5118
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ndesk-dbus-glib-1.0\""; } >&5
5119
($PKG_CONFIG --exists --print-errors "ndesk-dbus-glib-1.0") 2>&5
5121
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5122
test $ac_status = 0; }; then
5123
pkg_cv_DBUS_NDESK_LIBS=`$PKG_CONFIG --libs "ndesk-dbus-glib-1.0" 2>/dev/null`
5124
test "x$?" != "x0" && pkg_failed=yes
5134
if test $pkg_failed = yes; then
5135
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5136
$as_echo "no" >&6; }
5138
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5139
_pkg_short_errors_supported=yes
5141
_pkg_short_errors_supported=no
5143
if test $_pkg_short_errors_supported = yes; then
5144
DBUS_NDESK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ndesk-dbus-glib-1.0" 2>&1`
5146
DBUS_NDESK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ndesk-dbus-glib-1.0" 2>&1`
5148
# Put the nasty error message in config.log where it belongs
5149
echo "$DBUS_NDESK_PKG_ERRORS" >&5
5151
ENABLE_DBUS_SHARP="no"
5152
elif test $pkg_failed = untried; then
5153
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5154
$as_echo "no" >&6; }
5155
ENABLE_DBUS_SHARP="no"
5157
DBUS_NDESK_CFLAGS=$pkg_cv_DBUS_NDESK_CFLAGS
5158
DBUS_NDESK_LIBS=$pkg_cv_DBUS_NDESK_LIBS
5159
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5160
$as_echo "yes" >&6; }
5161
ENABLE_DBUS_SHARP="yes"
5163
DBUS_LIBS="$DBUS_NDESK_LIBS"
5167
# Tell the code what we're using
5168
if test "x$ENABLE_NDESK_DBUS" = "xyes"; then
5170
NDESK_DBUS_FALSE='#'
5176
if test "x$ENABLE_DBUS_SHARP" = "xyes"; then
5178
DBUS_SHARP_FALSE='#'