25055
# Check for XKB extension
25057
if test "${ac_cv_header_X11_XKBlib_h+set}" = set; then
25058
{ echo "$as_me:$LINENO: checking for X11/XKBlib.h" >&5
25059
echo $ECHO_N "checking for X11/XKBlib.h... $ECHO_C" >&6; }
25060
if test "${ac_cv_header_X11_XKBlib_h+set}" = set; then
25061
echo $ECHO_N "(cached) $ECHO_C" >&6
25063
{ echo "$as_me:$LINENO: result: $ac_cv_header_X11_XKBlib_h" >&5
25064
echo "${ECHO_T}$ac_cv_header_X11_XKBlib_h" >&6; }
25066
# Is the header compilable?
25067
{ echo "$as_me:$LINENO: checking X11/XKBlib.h usability" >&5
25068
echo $ECHO_N "checking X11/XKBlib.h usability... $ECHO_C" >&6; }
25069
cat >conftest.$ac_ext <<_ACEOF
25072
cat confdefs.h >>conftest.$ac_ext
25073
cat >>conftest.$ac_ext <<_ACEOF
25074
/* end confdefs.h. */
25075
$ac_includes_default
25076
#include <X11/XKBlib.h>
25078
rm -f conftest.$ac_objext
25079
if { (ac_try="$ac_compile"
25080
case "(($ac_try" in
25081
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25082
*) ac_try_echo=$ac_try;;
25084
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25085
(eval "$ac_compile") 2>conftest.er1
25087
grep -v '^ *+' conftest.er1 >conftest.err
25089
cat conftest.err >&5
25090
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25091
(exit $ac_status); } && {
25092
test -z "$ac_c_werror_flag" ||
25093
test ! -s conftest.err
25094
} && test -s conftest.$ac_objext; then
25095
ac_header_compiler=yes
25097
echo "$as_me: failed program was:" >&5
25098
sed 's/^/| /' conftest.$ac_ext >&5
25100
ac_header_compiler=no
25103
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25104
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25105
echo "${ECHO_T}$ac_header_compiler" >&6; }
25107
# Is the header present?
25108
{ echo "$as_me:$LINENO: checking X11/XKBlib.h presence" >&5
25109
echo $ECHO_N "checking X11/XKBlib.h presence... $ECHO_C" >&6; }
25110
cat >conftest.$ac_ext <<_ACEOF
25113
cat confdefs.h >>conftest.$ac_ext
25114
cat >>conftest.$ac_ext <<_ACEOF
25115
/* end confdefs.h. */
25116
#include <X11/XKBlib.h>
25118
if { (ac_try="$ac_cpp conftest.$ac_ext"
25119
case "(($ac_try" in
25120
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25121
*) ac_try_echo=$ac_try;;
25123
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25124
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25126
grep -v '^ *+' conftest.er1 >conftest.err
25128
cat conftest.err >&5
25129
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25130
(exit $ac_status); } >/dev/null && {
25131
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25132
test ! -s conftest.err
25134
ac_header_preproc=yes
25136
echo "$as_me: failed program was:" >&5
25137
sed 's/^/| /' conftest.$ac_ext >&5
25139
ac_header_preproc=no
25142
rm -f conftest.err conftest.$ac_ext
25143
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25144
echo "${ECHO_T}$ac_header_preproc" >&6; }
25146
# So? What about this header?
25147
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25149
{ echo "$as_me:$LINENO: WARNING: X11/XKBlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25150
echo "$as_me: WARNING: X11/XKBlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25151
{ echo "$as_me:$LINENO: WARNING: X11/XKBlib.h: proceeding with the compiler's result" >&5
25152
echo "$as_me: WARNING: X11/XKBlib.h: proceeding with the compiler's result" >&2;}
25153
ac_header_preproc=yes
25156
{ echo "$as_me:$LINENO: WARNING: X11/XKBlib.h: present but cannot be compiled" >&5
25157
echo "$as_me: WARNING: X11/XKBlib.h: present but cannot be compiled" >&2;}
25158
{ echo "$as_me:$LINENO: WARNING: X11/XKBlib.h: check for missing prerequisite headers?" >&5
25159
echo "$as_me: WARNING: X11/XKBlib.h: check for missing prerequisite headers?" >&2;}
25160
{ echo "$as_me:$LINENO: WARNING: X11/XKBlib.h: see the Autoconf documentation" >&5
25161
echo "$as_me: WARNING: X11/XKBlib.h: see the Autoconf documentation" >&2;}
25162
{ echo "$as_me:$LINENO: WARNING: X11/XKBlib.h: section \"Present But Cannot Be Compiled\"" >&5
25163
echo "$as_me: WARNING: X11/XKBlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
25164
{ echo "$as_me:$LINENO: WARNING: X11/XKBlib.h: proceeding with the preprocessor's result" >&5
25165
echo "$as_me: WARNING: X11/XKBlib.h: proceeding with the preprocessor's result" >&2;}
25166
{ echo "$as_me:$LINENO: WARNING: X11/XKBlib.h: in the future, the compiler will take precedence" >&5
25167
echo "$as_me: WARNING: X11/XKBlib.h: in the future, the compiler will take precedence" >&2;}
25169
## ------------------------------------------------------------------- ##
25170
## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=vino ##
25171
## ------------------------------------------------------------------- ##
25173
) | sed "s/^/$as_me: WARNING: /" >&2
25176
{ echo "$as_me:$LINENO: checking for X11/XKBlib.h" >&5
25177
echo $ECHO_N "checking for X11/XKBlib.h... $ECHO_C" >&6; }
25178
if test "${ac_cv_header_X11_XKBlib_h+set}" = set; then
25179
echo $ECHO_N "(cached) $ECHO_C" >&6
25181
ac_cv_header_X11_XKBlib_h=$ac_header_preproc
25183
{ echo "$as_me:$LINENO: result: $ac_cv_header_X11_XKBlib_h" >&5
25184
echo "${ECHO_T}$ac_cv_header_X11_XKBlib_h" >&6; }
25187
if test $ac_cv_header_X11_XKBlib_h = yes; then
25189
{ echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
25190
echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6; }
25191
if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
25192
echo $ECHO_N "(cached) $ECHO_C" >&6
25194
ac_check_lib_save_LIBS=$LIBS
25195
LIBS="-lX11 $X_LIBS $LIBS"
25196
cat >conftest.$ac_ext <<_ACEOF
25199
cat confdefs.h >>conftest.$ac_ext
25200
cat >>conftest.$ac_ext <<_ACEOF
25201
/* end confdefs.h. */
25203
/* Override any GCC internal prototype to avoid an error.
25204
Use char because int might match the return type of a GCC
25205
builtin and then its argument prototype would still apply. */
25209
char XkbQueryExtension ();
25213
return XkbQueryExtension ();
25218
rm -f conftest.$ac_objext conftest$ac_exeext
25219
if { (ac_try="$ac_link"
25220
case "(($ac_try" in
25221
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25222
*) ac_try_echo=$ac_try;;
25224
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25225
(eval "$ac_link") 2>conftest.er1
25227
grep -v '^ *+' conftest.er1 >conftest.err
25229
cat conftest.err >&5
25230
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25231
(exit $ac_status); } && {
25232
test -z "$ac_c_werror_flag" ||
25233
test ! -s conftest.err
25234
} && test -s conftest$ac_exeext &&
25235
$as_test_x conftest$ac_exeext; then
25236
ac_cv_lib_X11_XkbQueryExtension=yes
25238
echo "$as_me: failed program was:" >&5
25239
sed 's/^/| /' conftest.$ac_ext >&5
25241
ac_cv_lib_X11_XkbQueryExtension=no
25244
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25245
conftest$ac_exeext conftest.$ac_ext
25246
LIBS=$ac_check_lib_save_LIBS
25248
{ echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
25249
echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6; }
25250
if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
25252
cat >>confdefs.h <<\_ACEOF
25055
25265
# Check for Avahi
25057
25267
# Check whether --enable-avahi was given.