18423
# Like AC_CHECK_HEADERS, but it uses the already-computed -I directories.
18427
# Like AC_CHECK_LIB, but it uses the already-computed -I and -L directories.
18428
# Use this sparingly; it probably doesn't work very well on X programs.
18432
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
18433
$as_echo_n "checking for X... " >&6; }
18436
# Check whether --with-x was given.
18437
if test "${with_x+set}" = set; then :
18441
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18442
if test "x$with_x" = xno; then
18443
# The user explicitly disabled X.
18446
case $x_includes,$x_libraries in #(
18447
*\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
18448
*,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
18449
$as_echo_n "(cached) " >&6
18451
# One or both of the vars are not set, and there is no cached value.
18452
ac_x_includes=no ac_x_libraries=no
18453
rm -f -r conftest.dir
18454
if mkdir conftest.dir; then
18456
cat >Imakefile <<'_ACEOF'
18458
@echo incroot='${INCROOT}'
18460
@echo usrlibdir='${USRLIBDIR}'
18462
@echo libdir='${LIBDIR}'
18464
if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
18465
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
18466
for ac_var in incroot usrlibdir libdir; do
18467
eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18469
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18470
for ac_extension in a so sl dylib la dll; do
18471
if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18472
test -f "$ac_im_libdir/libX11.$ac_extension"; then
18473
ac_im_usrlibdir=$ac_im_libdir; break
18476
# Screen out bogus values from the imake configuration. They are
18477
# bogus both because they are the default anyway, and because
18478
# using them would break gcc on systems where it needs fixed includes.
18479
case $ac_im_incroot in
18480
/usr/include) ac_x_includes= ;;
18481
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18483
case $ac_im_usrlibdir in
18484
/usr/lib | /usr/lib64 | /lib | /lib64) ;;
18485
*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18489
rm -f -r conftest.dir
18492
# Standard set of common directories for X headers.
18493
# Check X11 before X11Rn because it is often a symlink to the current release.
18507
/usr/local/X11/include
18508
/usr/local/X11R7/include
18509
/usr/local/X11R6/include
18510
/usr/local/X11R5/include
18511
/usr/local/X11R4/include
18513
/usr/local/include/X11
18514
/usr/local/include/X11R7
18515
/usr/local/include/X11R6
18516
/usr/local/include/X11R5
18517
/usr/local/include/X11R4
18521
/usr/XFree86/include/X11
18525
/usr/unsupported/include
18526
/usr/athena/include
18527
/usr/local/x11r5/include
18528
/usr/lpp/Xamples/include
18530
/usr/openwin/include
18531
/usr/openwin/share/include'
18533
if test "$ac_x_includes" = no; then
18534
# Guess where to find include files, by looking for Xlib.h.
18535
# First, try using that file with no special directory specified.
18536
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18537
/* end confdefs.h. */
18538
#include <X11/Xlib.h>
18540
if ac_fn_c_try_cpp "$LINENO"; then :
18541
# We can compile using X headers with no special include directory.
18544
for ac_dir in $ac_x_header_dirs; do
18545
if test -r "$ac_dir/X11/Xlib.h"; then
18546
ac_x_includes=$ac_dir
18551
rm -f conftest.err conftest.i conftest.$ac_ext
18552
fi # $ac_x_includes = no
18554
if test "$ac_x_libraries" = no; then
18555
# Check for the libraries.
18556
# See if we find them without any special options.
18557
# Don't add to $LIBS permanently.
18560
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18561
/* end confdefs.h. */
18562
#include <X11/Xlib.h>
18571
if ac_fn_c_try_link "$LINENO"; then :
18573
# We can link X programs with no special library path.
18577
for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18579
# Don't even attempt the hair of trying to link an X program!
18580
for ac_extension in a so sl dylib la dll; do
18581
if test -r "$ac_dir/libX11.$ac_extension"; then
18582
ac_x_libraries=$ac_dir
18588
rm -f core conftest.err conftest.$ac_objext \
18589
conftest$ac_exeext conftest.$ac_ext
18590
fi # $ac_x_libraries = no
18592
case $ac_x_includes,$ac_x_libraries in #(
18593
no,* | *,no | *\'*)
18594
# Didn't find X, or a directory has "'" in its name.
18595
ac_cv_have_x="have_x=no";; #(
18597
# Record where we found X for the cache.
18598
ac_cv_have_x="have_x=yes\
18599
ac_x_includes='$ac_x_includes'\
18600
ac_x_libraries='$ac_x_libraries'"
18606
eval "$ac_cv_have_x"
18609
if test "$have_x" != yes; then
18610
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
18611
$as_echo "$have_x" >&6; }
18614
# If each of the values was on the command line, it overrides each guess.
18615
test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18616
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18617
# Update the cache value to reflect the command line values.
18618
ac_cv_have_x="have_x=yes\
18619
ac_x_includes='$x_includes'\
18620
ac_x_libraries='$x_libraries'"
18621
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
18622
$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
18625
if test "$no_x" = yes; then
18626
# Not all programs may use this symbol, but it does not hurt to define it.
18628
$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
18630
X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18632
if test -n "$x_includes"; then
18633
X_CFLAGS="$X_CFLAGS -I$x_includes"
18636
# It would also be nice to do this for all -L options, not just this one.
18637
if test -n "$x_libraries"; then
18638
X_LIBS="$X_LIBS -L$x_libraries"
18639
# For Solaris; some versions of Sun CC require a space after -R and
18640
# others require no space. Words are not sufficient . . . .
18641
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
18642
$as_echo_n "checking whether -R must be followed by a space... " >&6; }
18643
ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18644
ac_xsave_c_werror_flag=$ac_c_werror_flag
18645
ac_c_werror_flag=yes
18646
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18647
/* end confdefs.h. */
18657
if ac_fn_c_try_link "$LINENO"; then :
18658
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18659
$as_echo "no" >&6; }
18660
X_LIBS="$X_LIBS -R$x_libraries"
18662
LIBS="$ac_xsave_LIBS -R $x_libraries"
18663
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18664
/* end confdefs.h. */
18674
if ac_fn_c_try_link "$LINENO"; then :
18675
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18676
$as_echo "yes" >&6; }
18677
X_LIBS="$X_LIBS -R $x_libraries"
18679
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
18680
$as_echo "neither works" >&6; }
18682
rm -f core conftest.err conftest.$ac_objext \
18683
conftest$ac_exeext conftest.$ac_ext
18685
rm -f core conftest.err conftest.$ac_objext \
18686
conftest$ac_exeext conftest.$ac_ext
18687
ac_c_werror_flag=$ac_xsave_c_werror_flag
18688
LIBS=$ac_xsave_LIBS
18691
# Check for system-dependent libraries X programs must link with.
18692
# Do this before checking for the system-independent R6 libraries
18693
# (-lICE), since we may need -lsocket or whatever for X linking.
18695
if test "$ISC" = yes; then
18696
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
18698
# Martyn Johnson says this is needed for Ultrix, if the X
18699
# libraries were built with DECnet support. And Karl Berry says
18700
# the Alpha needs dnet_stub (dnet does not exist).
18701
ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
18702
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18703
/* end confdefs.h. */
18705
/* Override any GCC internal prototype to avoid an error.
18706
Use char because int might match the return type of a GCC
18707
builtin and then its argument prototype would still apply. */
18711
char XOpenDisplay ();
18715
return XOpenDisplay ();
18720
if ac_fn_c_try_link "$LINENO"; then :
18723
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
18724
$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
18725
if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
18726
$as_echo_n "(cached) " >&6
18728
ac_check_lib_save_LIBS=$LIBS
18729
LIBS="-ldnet $LIBS"
18730
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18731
/* end confdefs.h. */
18733
/* Override any GCC internal prototype to avoid an error.
18734
Use char because int might match the return type of a GCC
18735
builtin and then its argument prototype would still apply. */
18743
return dnet_ntoa ();
18748
if ac_fn_c_try_link "$LINENO"; then :
18749
ac_cv_lib_dnet_dnet_ntoa=yes
18751
ac_cv_lib_dnet_dnet_ntoa=no
18753
rm -f core conftest.err conftest.$ac_objext \
18754
conftest$ac_exeext conftest.$ac_ext
18755
LIBS=$ac_check_lib_save_LIBS
18757
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
18758
$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
18759
if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
18760
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
18763
if test $ac_cv_lib_dnet_dnet_ntoa = no; then
18764
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
18765
$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
18766
if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
18767
$as_echo_n "(cached) " >&6
18769
ac_check_lib_save_LIBS=$LIBS
18770
LIBS="-ldnet_stub $LIBS"
18771
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18772
/* end confdefs.h. */
18774
/* Override any GCC internal prototype to avoid an error.
18775
Use char because int might match the return type of a GCC
18776
builtin and then its argument prototype would still apply. */
18784
return dnet_ntoa ();
18789
if ac_fn_c_try_link "$LINENO"; then :
18790
ac_cv_lib_dnet_stub_dnet_ntoa=yes
18792
ac_cv_lib_dnet_stub_dnet_ntoa=no
18794
rm -f core conftest.err conftest.$ac_objext \
18795
conftest$ac_exeext conftest.$ac_ext
18796
LIBS=$ac_check_lib_save_LIBS
18798
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18799
$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
18800
if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
18801
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18806
rm -f core conftest.err conftest.$ac_objext \
18807
conftest$ac_exeext conftest.$ac_ext
18808
LIBS="$ac_xsave_LIBS"
18810
# msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
18811
# to get the SysV transport functions.
18812
# Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
18814
# The nsl library prevents programs from opening the X display
18815
# on Irix 5.2, according to T.E. Dickey.
18816
# The functions gethostbyname, getservbyname, and inet_addr are
18817
# in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
18818
ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
18819
if test "x$ac_cv_func_gethostbyname" = xyes; then :
18823
if test $ac_cv_func_gethostbyname = no; then
18824
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
18825
$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
18826
if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
18827
$as_echo_n "(cached) " >&6
18829
ac_check_lib_save_LIBS=$LIBS
18831
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18832
/* end confdefs.h. */
18834
/* Override any GCC internal prototype to avoid an error.
18835
Use char because int might match the return type of a GCC
18836
builtin and then its argument prototype would still apply. */
18840
char gethostbyname ();
18844
return gethostbyname ();
18849
if ac_fn_c_try_link "$LINENO"; then :
18850
ac_cv_lib_nsl_gethostbyname=yes
18852
ac_cv_lib_nsl_gethostbyname=no
18854
rm -f core conftest.err conftest.$ac_objext \
18855
conftest$ac_exeext conftest.$ac_ext
18856
LIBS=$ac_check_lib_save_LIBS
18858
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
18859
$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
18860
if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
18861
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18864
if test $ac_cv_lib_nsl_gethostbyname = no; then
18865
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
18866
$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
18867
if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
18868
$as_echo_n "(cached) " >&6
18870
ac_check_lib_save_LIBS=$LIBS
18872
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18873
/* end confdefs.h. */
18875
/* Override any GCC internal prototype to avoid an error.
18876
Use char because int might match the return type of a GCC
18877
builtin and then its argument prototype would still apply. */
18881
char gethostbyname ();
18885
return gethostbyname ();
18890
if ac_fn_c_try_link "$LINENO"; then :
18891
ac_cv_lib_bsd_gethostbyname=yes
18893
ac_cv_lib_bsd_gethostbyname=no
18895
rm -f core conftest.err conftest.$ac_objext \
18896
conftest$ac_exeext conftest.$ac_ext
18897
LIBS=$ac_check_lib_save_LIBS
18899
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
18900
$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
18901
if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
18902
X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
18908
# lieder@skyler.mavd.honeywell.com says without -lsocket,
18909
# socket/setsockopt and other routines are undefined under SCO ODT
18910
# 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
18911
# on later versions), says Simon Leinen: it contains gethostby*
18912
# variants that don't use the name server (or something). -lsocket
18913
# must be given before -lnsl if both are needed. We assume that
18914
# if connect needs -lnsl, so does gethostbyname.
18915
ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
18916
if test "x$ac_cv_func_connect" = xyes; then :
18920
if test $ac_cv_func_connect = no; then
18921
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
18922
$as_echo_n "checking for connect in -lsocket... " >&6; }
18923
if ${ac_cv_lib_socket_connect+:} false; then :
18924
$as_echo_n "(cached) " >&6
18926
ac_check_lib_save_LIBS=$LIBS
18927
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
18928
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18929
/* end confdefs.h. */
18931
/* Override any GCC internal prototype to avoid an error.
18932
Use char because int might match the return type of a GCC
18933
builtin and then its argument prototype would still apply. */
18946
if ac_fn_c_try_link "$LINENO"; then :
18947
ac_cv_lib_socket_connect=yes
18949
ac_cv_lib_socket_connect=no
18951
rm -f core conftest.err conftest.$ac_objext \
18952
conftest$ac_exeext conftest.$ac_ext
18953
LIBS=$ac_check_lib_save_LIBS
18955
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
18956
$as_echo "$ac_cv_lib_socket_connect" >&6; }
18957
if test "x$ac_cv_lib_socket_connect" = xyes; then :
18958
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
18963
# Guillermo Gomez says -lposix is necessary on A/UX.
18964
ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
18965
if test "x$ac_cv_func_remove" = xyes; then :
18969
if test $ac_cv_func_remove = no; then
18970
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
18971
$as_echo_n "checking for remove in -lposix... " >&6; }
18972
if ${ac_cv_lib_posix_remove+:} false; then :
18973
$as_echo_n "(cached) " >&6
18975
ac_check_lib_save_LIBS=$LIBS
18976
LIBS="-lposix $LIBS"
18977
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18978
/* end confdefs.h. */
18980
/* Override any GCC internal prototype to avoid an error.
18981
Use char because int might match the return type of a GCC
18982
builtin and then its argument prototype would still apply. */
18995
if ac_fn_c_try_link "$LINENO"; then :
18996
ac_cv_lib_posix_remove=yes
18998
ac_cv_lib_posix_remove=no
19000
rm -f core conftest.err conftest.$ac_objext \
19001
conftest$ac_exeext conftest.$ac_ext
19002
LIBS=$ac_check_lib_save_LIBS
19004
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
19005
$as_echo "$ac_cv_lib_posix_remove" >&6; }
19006
if test "x$ac_cv_lib_posix_remove" = xyes; then :
19007
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19012
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19013
ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
19014
if test "x$ac_cv_func_shmat" = xyes; then :
19018
if test $ac_cv_func_shmat = no; then
19019
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
19020
$as_echo_n "checking for shmat in -lipc... " >&6; }
19021
if ${ac_cv_lib_ipc_shmat+:} false; then :
19022
$as_echo_n "(cached) " >&6
19024
ac_check_lib_save_LIBS=$LIBS
19026
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19027
/* end confdefs.h. */
19029
/* Override any GCC internal prototype to avoid an error.
19030
Use char because int might match the return type of a GCC
19031
builtin and then its argument prototype would still apply. */
19044
if ac_fn_c_try_link "$LINENO"; then :
19045
ac_cv_lib_ipc_shmat=yes
19047
ac_cv_lib_ipc_shmat=no
19049
rm -f core conftest.err conftest.$ac_objext \
19050
conftest$ac_exeext conftest.$ac_ext
19051
LIBS=$ac_check_lib_save_LIBS
19053
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
19054
$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
19055
if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
19056
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19062
# Check for libraries that X11R6 Xt/Xaw programs need.
19063
ac_save_LDFLAGS=$LDFLAGS
19064
test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19065
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19066
# check for ICE first), but we must link in the order -lSM -lICE or
19067
# we get undefined symbols. So assume we have SM if we have ICE.
19068
# These have to be linked with before -lX11, unlike the other
19069
# libraries we check for below, so use a different variable.
19070
# John Interrante, Karl Berry
19071
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
19072
$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
19073
if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
19074
$as_echo_n "(cached) " >&6
19076
ac_check_lib_save_LIBS=$LIBS
19077
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19078
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19079
/* end confdefs.h. */
19081
/* Override any GCC internal prototype to avoid an error.
19082
Use char because int might match the return type of a GCC
19083
builtin and then its argument prototype would still apply. */
19087
char IceConnectionNumber ();
19091
return IceConnectionNumber ();
19096
if ac_fn_c_try_link "$LINENO"; then :
19097
ac_cv_lib_ICE_IceConnectionNumber=yes
19099
ac_cv_lib_ICE_IceConnectionNumber=no
19101
rm -f core conftest.err conftest.$ac_objext \
19102
conftest$ac_exeext conftest.$ac_ext
19103
LIBS=$ac_check_lib_save_LIBS
19105
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19106
$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
19107
if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
19108
X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19111
LDFLAGS=$ac_save_LDFLAGS
19116
ALL_X_LIBS="$X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS"
19118
X11_LIBS="$ALL_X_LIBS"
19124
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XINPUT" >&5
19125
$as_echo_n "checking for XINPUT... " >&6; }
19127
if test -n "$XINPUT_CFLAGS"; then
19128
pkg_cv_XINPUT_CFLAGS="$XINPUT_CFLAGS"
19129
elif test -n "$PKG_CONFIG"; then
19130
if test -n "$PKG_CONFIG" && \
19131
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi\""; } >&5
19132
($PKG_CONFIG --exists --print-errors "xi") 2>&5
19134
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19135
test $ac_status = 0; }; then
19136
pkg_cv_XINPUT_CFLAGS=`$PKG_CONFIG --cflags "xi" 2>/dev/null`
19137
test "x$?" != "x0" && pkg_failed=yes
19144
if test -n "$XINPUT_LIBS"; then
19145
pkg_cv_XINPUT_LIBS="$XINPUT_LIBS"
19146
elif test -n "$PKG_CONFIG"; then
19147
if test -n "$PKG_CONFIG" && \
19148
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi\""; } >&5
19149
($PKG_CONFIG --exists --print-errors "xi") 2>&5
19151
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19152
test $ac_status = 0; }; then
19153
pkg_cv_XINPUT_LIBS=`$PKG_CONFIG --libs "xi" 2>/dev/null`
19154
test "x$?" != "x0" && pkg_failed=yes
19164
if test $pkg_failed = yes; then
19165
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19166
$as_echo "no" >&6; }
19168
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19169
_pkg_short_errors_supported=yes
19171
_pkg_short_errors_supported=no
19173
if test $_pkg_short_errors_supported = yes; then
19174
XINPUT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xi" 2>&1`
19176
XINPUT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xi" 2>&1`
19178
# Put the nasty error message in config.log where it belongs
19179
echo "$XINPUT_PKG_ERRORS" >&5
19181
as_fn_error $? "Package requirements (xi) were not met:
19185
Consider adjusting the PKG_CONFIG_PATH environment variable if you
19186
installed software in a non-standard prefix.
19188
Alternatively, you may set the environment variables XINPUT_CFLAGS
19189
and XINPUT_LIBS to avoid the need to call pkg-config.
19190
See the pkg-config man page for more details." "$LINENO" 5
19191
elif test $pkg_failed = untried; then
19192
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19193
$as_echo "no" >&6; }
19194
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19195
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19196
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19197
is in your PATH or set the PKG_CONFIG environment variable to the full
19198
path to pkg-config.
19200
Alternatively, you may set the environment variables XINPUT_CFLAGS
19201
and XINPUT_LIBS to avoid the need to call pkg-config.
19202
See the pkg-config man page for more details.
19204
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19205
See \`config.log' for more details" "$LINENO" 5; }
19207
XINPUT_CFLAGS=$pkg_cv_XINPUT_CFLAGS
19208
XINPUT_LIBS=$pkg_cv_XINPUT_LIBS
19209
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19210
$as_echo "yes" >&6; }
19217
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFIXES" >&5
19218
$as_echo_n "checking for XFIXES... " >&6; }
19220
if test -n "$XFIXES_CFLAGS"; then
19221
pkg_cv_XFIXES_CFLAGS="$XFIXES_CFLAGS"
19222
elif test -n "$PKG_CONFIG"; then
19223
if test -n "$PKG_CONFIG" && \
19224
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes\""; } >&5
19225
($PKG_CONFIG --exists --print-errors "xfixes") 2>&5
19227
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19228
test $ac_status = 0; }; then
19229
pkg_cv_XFIXES_CFLAGS=`$PKG_CONFIG --cflags "xfixes" 2>/dev/null`
19230
test "x$?" != "x0" && pkg_failed=yes
19237
if test -n "$XFIXES_LIBS"; then
19238
pkg_cv_XFIXES_LIBS="$XFIXES_LIBS"
19239
elif test -n "$PKG_CONFIG"; then
19240
if test -n "$PKG_CONFIG" && \
19241
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes\""; } >&5
19242
($PKG_CONFIG --exists --print-errors "xfixes") 2>&5
19244
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19245
test $ac_status = 0; }; then
19246
pkg_cv_XFIXES_LIBS=`$PKG_CONFIG --libs "xfixes" 2>/dev/null`
19247
test "x$?" != "x0" && pkg_failed=yes
19257
if test $pkg_failed = yes; then
19258
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19259
$as_echo "no" >&6; }
19261
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19262
_pkg_short_errors_supported=yes
19264
_pkg_short_errors_supported=no
19266
if test $_pkg_short_errors_supported = yes; then
19267
XFIXES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xfixes" 2>&1`
19269
XFIXES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xfixes" 2>&1`
19271
# Put the nasty error message in config.log where it belongs
19272
echo "$XFIXES_PKG_ERRORS" >&5
18442
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMMON" >&5
18443
$as_echo_n "checking for COMMON... " >&6; }
18445
if test -n "$COMMON_CFLAGS"; then
18446
pkg_cv_COMMON_CFLAGS="$COMMON_CFLAGS"
18447
elif test -n "$PKG_CONFIG"; then
18448
if test -n "$PKG_CONFIG" && \
18449
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 kbproto xi\""; } >&5
18450
($PKG_CONFIG --exists --print-errors "x11 kbproto xi") 2>&5
18452
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18453
test $ac_status = 0; }; then
18454
pkg_cv_COMMON_CFLAGS=`$PKG_CONFIG --cflags "x11 kbproto xi" 2>/dev/null`
18455
test "x$?" != "x0" && pkg_failed=yes
18462
if test -n "$COMMON_LIBS"; then
18463
pkg_cv_COMMON_LIBS="$COMMON_LIBS"
18464
elif test -n "$PKG_CONFIG"; then
18465
if test -n "$PKG_CONFIG" && \
18466
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 kbproto xi\""; } >&5
18467
($PKG_CONFIG --exists --print-errors "x11 kbproto xi") 2>&5
18469
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18470
test $ac_status = 0; }; then
18471
pkg_cv_COMMON_LIBS=`$PKG_CONFIG --libs "x11 kbproto xi" 2>/dev/null`
18472
test "x$?" != "x0" && pkg_failed=yes
18482
if test $pkg_failed = yes; then
18483
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18484
$as_echo "no" >&6; }
18486
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18487
_pkg_short_errors_supported=yes
18489
_pkg_short_errors_supported=no
18491
if test $_pkg_short_errors_supported = yes; then
18492
COMMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 kbproto xi" 2>&1`
18494
COMMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 kbproto xi" 2>&1`
18496
# Put the nasty error message in config.log where it belongs
18497
echo "$COMMON_PKG_ERRORS" >&5
18499
as_fn_error $? "Package requirements (x11 kbproto xi) were not met:
18503
Consider adjusting the PKG_CONFIG_PATH environment variable if you
18504
installed software in a non-standard prefix.
18506
Alternatively, you may set the environment variables COMMON_CFLAGS
18507
and COMMON_LIBS to avoid the need to call pkg-config.
18508
See the pkg-config man page for more details." "$LINENO" 5
18509
elif test $pkg_failed = untried; then
18510
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18511
$as_echo "no" >&6; }
18512
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18513
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18514
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18515
is in your PATH or set the PKG_CONFIG environment variable to the full
18516
path to pkg-config.
18518
Alternatively, you may set the environment variables COMMON_CFLAGS
18519
and COMMON_LIBS to avoid the need to call pkg-config.
18520
See the pkg-config man page for more details.
18522
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18523
See \`config.log' for more details" "$LINENO" 5; }
18525
COMMON_CFLAGS=$pkg_cv_COMMON_CFLAGS
18526
COMMON_LIBS=$pkg_cv_COMMON_LIBS
18527
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18528
$as_echo "yes" >&6; }
18535
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOMOUNT" >&5
18536
$as_echo_n "checking for AUTOMOUNT... " >&6; }
18538
if test -n "$AUTOMOUNT_CFLAGS"; then
18539
pkg_cv_AUTOMOUNT_CFLAGS="$AUTOMOUNT_CFLAGS"
18540
elif test -n "$PKG_CONFIG"; then
18541
if test -n "$PKG_CONFIG" && \
18542
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 kbproto\""; } >&5
18543
($PKG_CONFIG --exists --print-errors "x11 kbproto") 2>&5
18545
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18546
test $ac_status = 0; }; then
18547
pkg_cv_AUTOMOUNT_CFLAGS=`$PKG_CONFIG --cflags "x11 kbproto" 2>/dev/null`
18548
test "x$?" != "x0" && pkg_failed=yes
18555
if test -n "$AUTOMOUNT_LIBS"; then
18556
pkg_cv_AUTOMOUNT_LIBS="$AUTOMOUNT_LIBS"
18557
elif test -n "$PKG_CONFIG"; then
18558
if test -n "$PKG_CONFIG" && \
18559
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 kbproto\""; } >&5
18560
($PKG_CONFIG --exists --print-errors "x11 kbproto") 2>&5
18562
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18563
test $ac_status = 0; }; then
18564
pkg_cv_AUTOMOUNT_LIBS=`$PKG_CONFIG --libs "x11 kbproto" 2>/dev/null`
18565
test "x$?" != "x0" && pkg_failed=yes
18575
if test $pkg_failed = yes; then
18576
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18577
$as_echo "no" >&6; }
18579
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18580
_pkg_short_errors_supported=yes
18582
_pkg_short_errors_supported=no
18584
if test $_pkg_short_errors_supported = yes; then
18585
AUTOMOUNT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 kbproto" 2>&1`
18587
AUTOMOUNT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 kbproto" 2>&1`
18589
# Put the nasty error message in config.log where it belongs
18590
echo "$AUTOMOUNT_PKG_ERRORS" >&5
18592
as_fn_error $? "Package requirements (x11 kbproto) were not met:
18594
$AUTOMOUNT_PKG_ERRORS
18596
Consider adjusting the PKG_CONFIG_PATH environment variable if you
18597
installed software in a non-standard prefix.
18599
Alternatively, you may set the environment variables AUTOMOUNT_CFLAGS
18600
and AUTOMOUNT_LIBS to avoid the need to call pkg-config.
18601
See the pkg-config man page for more details." "$LINENO" 5
18602
elif test $pkg_failed = untried; then
18603
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18604
$as_echo "no" >&6; }
18605
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18606
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18607
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18608
is in your PATH or set the PKG_CONFIG environment variable to the full
18609
path to pkg-config.
18611
Alternatively, you may set the environment variables AUTOMOUNT_CFLAGS
18612
and AUTOMOUNT_LIBS to avoid the need to call pkg-config.
18613
See the pkg-config man page for more details.
18615
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18616
See \`config.log' for more details" "$LINENO" 5; }
18618
AUTOMOUNT_CFLAGS=$pkg_cv_AUTOMOUNT_CFLAGS
18619
AUTOMOUNT_LIBS=$pkg_cv_AUTOMOUNT_LIBS
18620
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18621
$as_echo "yes" >&6; }
18628
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BACKGROUND" >&5
18629
$as_echo_n "checking for BACKGROUND... " >&6; }
18631
if test -n "$BACKGROUND_CFLAGS"; then
18632
pkg_cv_BACKGROUND_CFLAGS="$BACKGROUND_CFLAGS"
18633
elif test -n "$PKG_CONFIG"; then
18634
if test -n "$PKG_CONFIG" && \
18635
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 gnome-desktop-3.0 >= \$GNOME_DESKTOP_REQUIRED_VERSION\""; } >&5
18636
($PKG_CONFIG --exists --print-errors "x11 gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION") 2>&5
18638
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18639
test $ac_status = 0; }; then
18640
pkg_cv_BACKGROUND_CFLAGS=`$PKG_CONFIG --cflags "x11 gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION" 2>/dev/null`
18641
test "x$?" != "x0" && pkg_failed=yes
18648
if test -n "$BACKGROUND_LIBS"; then
18649
pkg_cv_BACKGROUND_LIBS="$BACKGROUND_LIBS"
18650
elif test -n "$PKG_CONFIG"; then
18651
if test -n "$PKG_CONFIG" && \
18652
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 gnome-desktop-3.0 >= \$GNOME_DESKTOP_REQUIRED_VERSION\""; } >&5
18653
($PKG_CONFIG --exists --print-errors "x11 gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION") 2>&5
18655
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18656
test $ac_status = 0; }; then
18657
pkg_cv_BACKGROUND_LIBS=`$PKG_CONFIG --libs "x11 gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION" 2>/dev/null`
18658
test "x$?" != "x0" && pkg_failed=yes
18668
if test $pkg_failed = yes; then
18669
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18670
$as_echo "no" >&6; }
18672
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18673
_pkg_short_errors_supported=yes
18675
_pkg_short_errors_supported=no
18677
if test $_pkg_short_errors_supported = yes; then
18678
BACKGROUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION" 2>&1`
18680
BACKGROUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION" 2>&1`
18682
# Put the nasty error message in config.log where it belongs
18683
echo "$BACKGROUND_PKG_ERRORS" >&5
18685
as_fn_error $? "Package requirements (x11 gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION) were not met:
18687
$BACKGROUND_PKG_ERRORS
18689
Consider adjusting the PKG_CONFIG_PATH environment variable if you
18690
installed software in a non-standard prefix.
18692
Alternatively, you may set the environment variables BACKGROUND_CFLAGS
18693
and BACKGROUND_LIBS to avoid the need to call pkg-config.
18694
See the pkg-config man page for more details." "$LINENO" 5
18695
elif test $pkg_failed = untried; then
18696
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18697
$as_echo "no" >&6; }
18698
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18699
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18700
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18701
is in your PATH or set the PKG_CONFIG environment variable to the full
18702
path to pkg-config.
18704
Alternatively, you may set the environment variables BACKGROUND_CFLAGS
18705
and BACKGROUND_LIBS to avoid the need to call pkg-config.
18706
See the pkg-config man page for more details.
18708
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18709
See \`config.log' for more details" "$LINENO" 5; }
18711
BACKGROUND_CFLAGS=$pkg_cv_BACKGROUND_CFLAGS
18712
BACKGROUND_LIBS=$pkg_cv_BACKGROUND_LIBS
18713
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18714
$as_echo "yes" >&6; }
18721
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MOUSE" >&5
18722
$as_echo_n "checking for MOUSE... " >&6; }
18724
if test -n "$MOUSE_CFLAGS"; then
18725
pkg_cv_MOUSE_CFLAGS="$MOUSE_CFLAGS"
18726
elif test -n "$PKG_CONFIG"; then
18727
if test -n "$PKG_CONFIG" && \
18728
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xi\""; } >&5
18729
($PKG_CONFIG --exists --print-errors "x11 xi") 2>&5
18731
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18732
test $ac_status = 0; }; then
18733
pkg_cv_MOUSE_CFLAGS=`$PKG_CONFIG --cflags "x11 xi" 2>/dev/null`
18734
test "x$?" != "x0" && pkg_failed=yes
18741
if test -n "$MOUSE_LIBS"; then
18742
pkg_cv_MOUSE_LIBS="$MOUSE_LIBS"
18743
elif test -n "$PKG_CONFIG"; then
18744
if test -n "$PKG_CONFIG" && \
18745
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xi\""; } >&5
18746
($PKG_CONFIG --exists --print-errors "x11 xi") 2>&5
18748
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18749
test $ac_status = 0; }; then
18750
pkg_cv_MOUSE_LIBS=`$PKG_CONFIG --libs "x11 xi" 2>/dev/null`
18751
test "x$?" != "x0" && pkg_failed=yes
18761
if test $pkg_failed = yes; then
18762
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18763
$as_echo "no" >&6; }
18765
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18766
_pkg_short_errors_supported=yes
18768
_pkg_short_errors_supported=no
18770
if test $_pkg_short_errors_supported = yes; then
18771
MOUSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xi" 2>&1`
18773
MOUSE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xi" 2>&1`
18775
# Put the nasty error message in config.log where it belongs
18776
echo "$MOUSE_PKG_ERRORS" >&5
18778
as_fn_error $? "Package requirements (x11 xi) were not met:
18782
Consider adjusting the PKG_CONFIG_PATH environment variable if you
18783
installed software in a non-standard prefix.
18785
Alternatively, you may set the environment variables MOUSE_CFLAGS
18786
and MOUSE_LIBS to avoid the need to call pkg-config.
18787
See the pkg-config man page for more details." "$LINENO" 5
18788
elif test $pkg_failed = untried; then
18789
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18790
$as_echo "no" >&6; }
18791
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18792
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18793
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18794
is in your PATH or set the PKG_CONFIG environment variable to the full
18795
path to pkg-config.
18797
Alternatively, you may set the environment variables MOUSE_CFLAGS
18798
and MOUSE_LIBS to avoid the need to call pkg-config.
18799
See the pkg-config man page for more details.
18801
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18802
See \`config.log' for more details" "$LINENO" 5; }
18804
MOUSE_CFLAGS=$pkg_cv_MOUSE_CFLAGS
18805
MOUSE_LIBS=$pkg_cv_MOUSE_LIBS
18806
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18807
$as_echo "yes" >&6; }
18814
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURSOR" >&5
18815
$as_echo_n "checking for CURSOR... " >&6; }
18817
if test -n "$CURSOR_CFLAGS"; then
18818
pkg_cv_CURSOR_CFLAGS="$CURSOR_CFLAGS"
18819
elif test -n "$PKG_CONFIG"; then
18820
if test -n "$PKG_CONFIG" && \
18821
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes\""; } >&5
18822
($PKG_CONFIG --exists --print-errors "xfixes") 2>&5
18824
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18825
test $ac_status = 0; }; then
18826
pkg_cv_CURSOR_CFLAGS=`$PKG_CONFIG --cflags "xfixes" 2>/dev/null`
18827
test "x$?" != "x0" && pkg_failed=yes
18834
if test -n "$CURSOR_LIBS"; then
18835
pkg_cv_CURSOR_LIBS="$CURSOR_LIBS"
18836
elif test -n "$PKG_CONFIG"; then
18837
if test -n "$PKG_CONFIG" && \
18838
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes\""; } >&5
18839
($PKG_CONFIG --exists --print-errors "xfixes") 2>&5
18841
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18842
test $ac_status = 0; }; then
18843
pkg_cv_CURSOR_LIBS=`$PKG_CONFIG --libs "xfixes" 2>/dev/null`
18844
test "x$?" != "x0" && pkg_failed=yes
18854
if test $pkg_failed = yes; then
18855
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18856
$as_echo "no" >&6; }
18858
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18859
_pkg_short_errors_supported=yes
18861
_pkg_short_errors_supported=no
18863
if test $_pkg_short_errors_supported = yes; then
18864
CURSOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xfixes" 2>&1`
18866
CURSOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xfixes" 2>&1`
18868
# Put the nasty error message in config.log where it belongs
18869
echo "$CURSOR_PKG_ERRORS" >&5
19274
18871
as_fn_error $? "Package requirements (xfixes) were not met:
19278
18875
Consider adjusting the PKG_CONFIG_PATH environment variable if you
19279
18876
installed software in a non-standard prefix.
19281
Alternatively, you may set the environment variables XFIXES_CFLAGS
19282
and XFIXES_LIBS to avoid the need to call pkg-config.
18878
Alternatively, you may set the environment variables CURSOR_CFLAGS
18879
and CURSOR_LIBS to avoid the need to call pkg-config.
19283
18880
See the pkg-config man page for more details." "$LINENO" 5
19284
18881
elif test $pkg_failed = untried; then
19285
18882
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5