27339
27484
###############################################################################
27342
with_xinerama_req=unspecified
27486
# Check for Xinerama extension (Solaris impl or Xfree impl)
27344
# Check whether --with-xinerama-ext or --without-xinerama-ext was given.
27345
if test "${with_xinerama_ext+set}" = set; then
27346
withval="$with_xinerama_ext"
27347
with_xinerama="$withval"; with_xinerama_req="$withval"
27488
# Check whether --enable-xinerama or --disable-xinerama was given.
27489
if test "${enable_xinerama+set}" = set; then
27490
enableval="$enable_xinerama"
27491
try_xinerama=$enable_xinerama
27353
case "$with_xinerama" in
27358
echo "$as_me:$LINENO: checking for XINERAMA headers" >&5
27359
echo $ECHO_N "checking for XINERAMA headers... $ECHO_C" >&6
27360
d=$with_xinerama/include
27361
if test -d $d; then
27362
X_CFLAGS="-I$d $X_CFLAGS"
27363
echo "$as_me:$LINENO: result: $d" >&5
27364
echo "${ECHO_T}$d" >&6
27366
echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
27367
echo "${ECHO_T}not found ($d: no such directory)" >&6
27370
echo "$as_me:$LINENO: checking for XINERAMA libs" >&5
27371
echo $ECHO_N "checking for XINERAMA libs... $ECHO_C" >&6
27372
d=$with_xinerama/lib
27373
if test -d $d; then
27374
X_LIBS="-L$d $X_LIBS"
27375
echo "$as_me:$LINENO: result: $d" >&5
27376
echo "${ECHO_T}$d" >&6
27378
echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
27379
echo "${ECHO_T}not found ($d: no such directory)" >&6
27382
# replace the directory string with "yes".
27383
with_xinerama_req="yes"
27384
with_xinerama=$with_xinerama_req
27389
echo "error: argument to --with-xinerama-ext must be \"yes\", \"no\", or a directory."
27390
echo " If it is a directory, then \`DIR/include' will be added to"
27391
echo " the -I list, and \`DIR/lib' will be added to the -L list."
27397
if test "$with_xinerama" = yes; then
27399
# first check for Xinerama.h
27496
use_solaris_xinerama=no
27497
use_xfree_xinerama=no
27498
if test "${try_xinerama}" != no; then
27501
# Check for solaris
27502
use_solaris_xinerama=yes
27504
ac_save_CPPFLAGS="$CPPFLAGS"
27505
ac_save_LDFLAGS="$LDFLAGS"
27506
# ac_save_LIBS="$LIBS"
27508
if test \! -z "$includedir" ; then
27509
CPPFLAGS="$CPPFLAGS -I$includedir"
27511
# note: $X_CFLAGS includes $x_includes
27512
CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27514
if test \! -z "$libdir" ; then
27515
LDFLAGS="$LDFLAGS -L$libdir"
27517
# note: $X_LIBS includes $x_libraries
27518
LDFLAGS="$LDFLAGS $ALL_X_LIBS"
27520
echo "$as_me:$LINENO: checking for XineramaGetInfo in -lXext" >&5
27521
echo $ECHO_N "checking for XineramaGetInfo in -lXext... $ECHO_C" >&6
27522
if test "${ac_cv_lib_Xext_XineramaGetInfo+set}" = set; then
27523
echo $ECHO_N "(cached) $ECHO_C" >&6
27525
ac_check_lib_save_LIBS=$LIBS
27526
LIBS="-lXext $ALL_X_LIBS $LIBS"
27527
cat >conftest.$ac_ext <<_ACEOF
27530
cat confdefs.h >>conftest.$ac_ext
27531
cat >>conftest.$ac_ext <<_ACEOF
27532
/* end confdefs.h. */
27534
/* Override any gcc2 internal prototype to avoid an error. */
27538
/* We use char because int might match the return type of a gcc2
27539
builtin and then its argument prototype would still apply. */
27540
char XineramaGetInfo ();
27544
XineramaGetInfo ();
27549
rm -f conftest.$ac_objext conftest$ac_exeext
27550
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27551
(eval $ac_link) 2>conftest.er1
27553
grep -v '^ *+' conftest.er1 >conftest.err
27555
cat conftest.err >&5
27556
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27557
(exit $ac_status); } &&
27558
{ ac_try='test -z "$ac_c_werror_flag"
27559
|| test ! -s conftest.err'
27560
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27561
(eval $ac_try) 2>&5
27563
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27564
(exit $ac_status); }; } &&
27565
{ ac_try='test -s conftest$ac_exeext'
27566
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27567
(eval $ac_try) 2>&5
27569
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27570
(exit $ac_status); }; }; then
27571
ac_cv_lib_Xext_XineramaGetInfo=yes
27573
echo "$as_me: failed program was:" >&5
27574
sed 's/^/| /' conftest.$ac_ext >&5
27576
ac_cv_lib_Xext_XineramaGetInfo=no
27578
rm -f conftest.err conftest.$ac_objext \
27579
conftest$ac_exeext conftest.$ac_ext
27580
LIBS=$ac_check_lib_save_LIBS
27582
echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XineramaGetInfo" >&5
27583
echo "${ECHO_T}$ac_cv_lib_Xext_XineramaGetInfo" >&6
27584
if test $ac_cv_lib_Xext_XineramaGetInfo = yes; then
27585
use_solaris_xinerama=yes
27587
use_solaris_xinerama=no
27590
CPPFLAGS="$ac_save_CPPFLAGS"
27591
LDFLAGS="$ac_save_LDFLAGS"
27592
# LIBS="$ac_save_LIBS"
27594
if test "x$use_solaris_xinerama" = "xyes"; then
27596
ac_save_CPPFLAGS="$CPPFLAGS"
27597
if test \! -z "$includedir" ; then
27598
CPPFLAGS="$CPPFLAGS -I$includedir"
27600
CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27601
echo "$as_me:$LINENO: checking for X11/extensions/xinerama.h" >&5
27602
echo $ECHO_N "checking for X11/extensions/xinerama.h... $ECHO_C" >&6
27603
if test "${ac_cv_header_X11_extensions_xinerama_h+set}" = set; then
27604
echo $ECHO_N "(cached) $ECHO_C" >&6
27606
cat >conftest.$ac_ext <<_ACEOF
27609
cat confdefs.h >>conftest.$ac_ext
27610
cat >>conftest.$ac_ext <<_ACEOF
27611
/* end confdefs.h. */
27612
#include <X11/Xlib.h>
27614
#include <X11/extensions/xinerama.h>
27616
rm -f conftest.$ac_objext
27617
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27618
(eval $ac_compile) 2>conftest.er1
27620
grep -v '^ *+' conftest.er1 >conftest.err
27622
cat conftest.err >&5
27623
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27624
(exit $ac_status); } &&
27625
{ ac_try='test -z "$ac_c_werror_flag"
27626
|| test ! -s conftest.err'
27627
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27628
(eval $ac_try) 2>&5
27630
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27631
(exit $ac_status); }; } &&
27632
{ ac_try='test -s conftest.$ac_objext'
27633
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27634
(eval $ac_try) 2>&5
27636
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27637
(exit $ac_status); }; }; then
27638
ac_cv_header_X11_extensions_xinerama_h=yes
27640
echo "$as_me: failed program was:" >&5
27641
sed 's/^/| /' conftest.$ac_ext >&5
27643
ac_cv_header_X11_extensions_xinerama_h=no
27645
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27647
echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xinerama_h" >&5
27648
echo "${ECHO_T}$ac_cv_header_X11_extensions_xinerama_h" >&6
27649
if test $ac_cv_header_X11_extensions_xinerama_h = yes; then
27650
if test -z "`echo $ALL_X_LIBS | grep "\-lXext" 2> /dev/null`"; then
27651
SAVER_LIBS="$SAVER_LIBS -lXext"
27654
cat >>confdefs.h <<\_ACEOF
27655
#define HAVE_SOLARIS_XINERAMA
27659
cat >>confdefs.h <<\_ACEOF
27660
#define HAVE_XINERAMA
27664
use_solaris_xinerama=no
27668
CPPFLAGS="$ac_save_CPPFLAGS"
27670
echo "$as_me:$LINENO: checking for Xinerama support on Solaris" >&5
27671
echo $ECHO_N "checking for Xinerama support on Solaris... $ECHO_C" >&6
27672
echo "$as_me:$LINENO: result: $use_solaris_xinerama" >&5
27673
echo "${ECHO_T}$use_solaris_xinerama" >&6;
27677
use_xfree_xinerama=yes
27679
ac_save_CPPFLAGS="$CPPFLAGS"
27680
ac_save_LDFLAGS="$LDFLAGS"
27681
# ac_save_LIBS="$LIBS"
27683
if test \! -z "$includedir" ; then
27684
CPPFLAGS="$CPPFLAGS -I$includedir"
27686
# note: $X_CFLAGS includes $x_includes
27687
CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27689
if test \! -z "$libdir" ; then
27690
LDFLAGS="$LDFLAGS -L$libdir"
27692
# note: $X_LIBS includes $x_libraries
27693
LDFLAGS="$LDFLAGS $ALL_X_LIBS"
27695
echo "$as_me:$LINENO: checking for XineramaQueryExtension in -lXinerama" >&5
27696
echo $ECHO_N "checking for XineramaQueryExtension in -lXinerama... $ECHO_C" >&6
27697
if test "${ac_cv_lib_Xinerama_XineramaQueryExtension+set}" = set; then
27698
echo $ECHO_N "(cached) $ECHO_C" >&6
27700
ac_check_lib_save_LIBS=$LIBS
27701
LIBS="-lXinerama -lXext $ALL_X_LIBS $LIBS"
27702
cat >conftest.$ac_ext <<_ACEOF
27705
cat confdefs.h >>conftest.$ac_ext
27706
cat >>conftest.$ac_ext <<_ACEOF
27707
/* end confdefs.h. */
27709
/* Override any gcc2 internal prototype to avoid an error. */
27713
/* We use char because int might match the return type of a gcc2
27714
builtin and then its argument prototype would still apply. */
27715
char XineramaQueryExtension ();
27719
XineramaQueryExtension ();
27724
rm -f conftest.$ac_objext conftest$ac_exeext
27725
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27726
(eval $ac_link) 2>conftest.er1
27728
grep -v '^ *+' conftest.er1 >conftest.err
27730
cat conftest.err >&5
27731
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27732
(exit $ac_status); } &&
27733
{ ac_try='test -z "$ac_c_werror_flag"
27734
|| test ! -s conftest.err'
27735
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27736
(eval $ac_try) 2>&5
27738
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27739
(exit $ac_status); }; } &&
27740
{ ac_try='test -s conftest$ac_exeext'
27741
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27742
(eval $ac_try) 2>&5
27744
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27745
(exit $ac_status); }; }; then
27746
ac_cv_lib_Xinerama_XineramaQueryExtension=yes
27748
echo "$as_me: failed program was:" >&5
27749
sed 's/^/| /' conftest.$ac_ext >&5
27751
ac_cv_lib_Xinerama_XineramaQueryExtension=no
27753
rm -f conftest.err conftest.$ac_objext \
27754
conftest$ac_exeext conftest.$ac_ext
27755
LIBS=$ac_check_lib_save_LIBS
27757
echo "$as_me:$LINENO: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
27758
echo "${ECHO_T}$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6
27759
if test $ac_cv_lib_Xinerama_XineramaQueryExtension = yes; then
27401
27761
ac_save_CPPFLAGS="$CPPFLAGS"
27402
27762
if test \! -z "$includedir" ; then
27452
27812
echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xinerama_h" >&5
27453
27813
echo "${ECHO_T}$ac_cv_header_X11_extensions_Xinerama_h" >&6
27454
27814
if test $ac_cv_header_X11_extensions_Xinerama_h = yes; then
27459
CPPFLAGS="$ac_save_CPPFLAGS"
27461
# if that succeeded, then check for the XINERAMA code in the libraries
27462
if test "$have_xinerama" = yes; then
27464
# first look in -lXext
27467
ac_save_CPPFLAGS="$CPPFLAGS"
27468
ac_save_LDFLAGS="$LDFLAGS"
27469
# ac_save_LIBS="$LIBS"
27471
if test \! -z "$includedir" ; then
27472
CPPFLAGS="$CPPFLAGS -I$includedir"
27474
# note: $X_CFLAGS includes $x_includes
27475
CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27477
if test \! -z "$libdir" ; then
27478
LDFLAGS="$LDFLAGS -L$libdir"
27480
# note: $X_LIBS includes $x_libraries
27481
LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
27483
echo "$as_me:$LINENO: checking for XineramaQueryScreens in -lXext" >&5
27484
echo $ECHO_N "checking for XineramaQueryScreens in -lXext... $ECHO_C" >&6
27485
if test "${ac_cv_lib_Xext_XineramaQueryScreens+set}" = set; then
27486
echo $ECHO_N "(cached) $ECHO_C" >&6
27488
ac_check_lib_save_LIBS=$LIBS
27489
LIBS="-lXext -lXext -lX11 $LIBS"
27490
cat >conftest.$ac_ext <<_ACEOF
27493
cat confdefs.h >>conftest.$ac_ext
27494
cat >>conftest.$ac_ext <<_ACEOF
27495
/* end confdefs.h. */
27497
/* Override any gcc2 internal prototype to avoid an error. */
27501
/* We use char because int might match the return type of a gcc2
27502
builtin and then its argument prototype would still apply. */
27503
char XineramaQueryScreens ();
27507
XineramaQueryScreens ();
27512
rm -f conftest.$ac_objext conftest$ac_exeext
27513
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27514
(eval $ac_link) 2>conftest.er1
27516
grep -v '^ *+' conftest.er1 >conftest.err
27518
cat conftest.err >&5
27519
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27520
(exit $ac_status); } &&
27521
{ ac_try='test -z "$ac_c_werror_flag"
27522
|| test ! -s conftest.err'
27523
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27524
(eval $ac_try) 2>&5
27526
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27527
(exit $ac_status); }; } &&
27528
{ ac_try='test -s conftest$ac_exeext'
27529
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27530
(eval $ac_try) 2>&5
27532
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27533
(exit $ac_status); }; }; then
27534
ac_cv_lib_Xext_XineramaQueryScreens=yes
27536
echo "$as_me: failed program was:" >&5
27537
sed 's/^/| /' conftest.$ac_ext >&5
27539
ac_cv_lib_Xext_XineramaQueryScreens=no
27541
rm -f conftest.err conftest.$ac_objext \
27542
conftest$ac_exeext conftest.$ac_ext
27543
LIBS=$ac_check_lib_save_LIBS
27545
echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XineramaQueryScreens" >&5
27546
echo "${ECHO_T}$ac_cv_lib_Xext_XineramaQueryScreens" >&6
27547
if test $ac_cv_lib_Xext_XineramaQueryScreens = yes; then
27553
CPPFLAGS="$ac_save_CPPFLAGS"
27554
LDFLAGS="$ac_save_LDFLAGS"
27555
# LIBS="$ac_save_LIBS"
27558
# if that failed, look in -lXinerama (this is where it is in XFree86 4.1.)
27559
if test "$have_xinerama" = no; then
27561
ac_save_CPPFLAGS="$CPPFLAGS"
27562
ac_save_LDFLAGS="$LDFLAGS"
27563
# ac_save_LIBS="$LIBS"
27565
if test \! -z "$includedir" ; then
27566
CPPFLAGS="$CPPFLAGS -I$includedir"
27568
# note: $X_CFLAGS includes $x_includes
27569
CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27571
if test \! -z "$libdir" ; then
27572
LDFLAGS="$LDFLAGS -L$libdir"
27574
# note: $X_LIBS includes $x_libraries
27575
LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
27577
echo "$as_me:$LINENO: checking for XineramaQueryScreens in -lXinerama" >&5
27578
echo $ECHO_N "checking for XineramaQueryScreens in -lXinerama... $ECHO_C" >&6
27579
if test "${ac_cv_lib_Xinerama_XineramaQueryScreens+set}" = set; then
27580
echo $ECHO_N "(cached) $ECHO_C" >&6
27582
ac_check_lib_save_LIBS=$LIBS
27583
LIBS="-lXinerama -lXext -lX11 $LIBS"
27584
cat >conftest.$ac_ext <<_ACEOF
27587
cat confdefs.h >>conftest.$ac_ext
27588
cat >>conftest.$ac_ext <<_ACEOF
27589
/* end confdefs.h. */
27591
/* Override any gcc2 internal prototype to avoid an error. */
27595
/* We use char because int might match the return type of a gcc2
27596
builtin and then its argument prototype would still apply. */
27597
char XineramaQueryScreens ();
27601
XineramaQueryScreens ();
27606
rm -f conftest.$ac_objext conftest$ac_exeext
27607
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27608
(eval $ac_link) 2>conftest.er1
27610
grep -v '^ *+' conftest.er1 >conftest.err
27612
cat conftest.err >&5
27613
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27614
(exit $ac_status); } &&
27615
{ ac_try='test -z "$ac_c_werror_flag"
27616
|| test ! -s conftest.err'
27617
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27618
(eval $ac_try) 2>&5
27620
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27621
(exit $ac_status); }; } &&
27622
{ ac_try='test -s conftest$ac_exeext'
27623
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27624
(eval $ac_try) 2>&5
27626
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27627
(exit $ac_status); }; }; then
27628
ac_cv_lib_Xinerama_XineramaQueryScreens=yes
27630
echo "$as_me: failed program was:" >&5
27631
sed 's/^/| /' conftest.$ac_ext >&5
27633
ac_cv_lib_Xinerama_XineramaQueryScreens=no
27635
rm -f conftest.err conftest.$ac_objext \
27636
conftest$ac_exeext conftest.$ac_ext
27637
LIBS=$ac_check_lib_save_LIBS
27639
echo "$as_me:$LINENO: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5
27640
echo "${ECHO_T}$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6
27641
if test $ac_cv_lib_Xinerama_XineramaQueryScreens = yes; then
27642
have_xinerama=yes; SAVER_LIBS="$SAVER_LIBS -lXinerama"
27647
CPPFLAGS="$ac_save_CPPFLAGS"
27648
LDFLAGS="$ac_save_LDFLAGS"
27649
# LIBS="$ac_save_LIBS"
27654
# if that succeeded, then we've really got it.
27655
if test "$have_xinerama" = yes; then
27657
cat >>confdefs.h <<\_ACEOF
27658
#define HAVE_XINERAMA 1
27663
elif test "$with_xinerama" != no; then
27664
echo "error: must be yes or no: --with-xinerama-ext=$with_xinerama"
27815
SAVER_LIBS="$SAVER_LIBS -lXinerama"
27816
if test -z "`echo $ALL_X_LIBS | grep "\-lXext" 2> /dev/null`"; then
27817
SAVER_LIBS="$SAVER_LIBS -lXext"
27820
cat >>confdefs.h <<\_ACEOF
27821
#define HAVE_XFREE_XINERAMA
27825
cat >>confdefs.h <<\_ACEOF
27826
#define HAVE_XINERAMA
27830
use_xfree_xinerama=no
27834
CPPFLAGS="$ac_save_CPPFLAGS"
27836
use_xfree_xinerama=no
27839
CPPFLAGS="$ac_save_CPPFLAGS"
27840
LDFLAGS="$ac_save_LDFLAGS"
27841
# LIBS="$ac_save_LIBS"
27843
echo "$as_me:$LINENO: checking for Xinerama support on XFree86" >&5
27844
echo $ECHO_N "checking for Xinerama support on XFree86... $ECHO_C" >&6
27845
echo "$as_me:$LINENO: result: $use_xfree_xinerama" >&5
27846
echo "${ECHO_T}$use_xfree_xinerama" >&6;
27669
27851
###############################################################################
28261
###############################################################################
28263
# Check for the RANDR (Resize and Rotate) server extension.
28265
# We need this to detect when the resolution of the desktop
28266
# has changed out from under us (this is a newer, different
28267
# mechanism than the XF86VMODE virtual viewports.)
28269
###############################################################################
28272
with_randr_req=unspecified
28274
# Check whether --with-randr-ext or --without-randr-ext was given.
28275
if test "${with_randr_ext+set}" = set; then
28276
withval="$with_randr_ext"
28277
with_randr="$withval"; with_randr_req="$withval"
28283
case "$with_randr" in
28288
echo "$as_me:$LINENO: checking for RANDR headers" >&5
28289
echo $ECHO_N "checking for RANDR headers... $ECHO_C" >&6
28290
d=$with_randr/include
28291
if test -d $d; then
28292
X_CFLAGS="-I$d $X_CFLAGS"
28293
echo "$as_me:$LINENO: result: $d" >&5
28294
echo "${ECHO_T}$d" >&6
28296
echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
28297
echo "${ECHO_T}not found ($d: no such directory)" >&6
28300
echo "$as_me:$LINENO: checking for RANDR libs" >&5
28301
echo $ECHO_N "checking for RANDR libs... $ECHO_C" >&6
28303
if test -d $d; then
28304
X_LIBS="-L$d $X_LIBS"
28305
echo "$as_me:$LINENO: result: $d" >&5
28306
echo "${ECHO_T}$d" >&6
28308
echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
28309
echo "${ECHO_T}not found ($d: no such directory)" >&6
28312
# replace the directory string with "yes".
28313
with_randr_req="yes"
28314
with_randr=$with_randr_req
28319
echo "error: argument to --with-randr-ext must be \"yes\", \"no\", or a directory."
28320
echo " If it is a directory, then \`DIR/include' will be added to"
28321
echo " the -I list, and \`DIR/lib' will be added to the -L list."
28327
if test "$with_randr" = yes; then
28329
# first check for Randr.h
28331
ac_save_CPPFLAGS="$CPPFLAGS"
28332
if test \! -z "$includedir" ; then
28333
CPPFLAGS="$CPPFLAGS -I$includedir"
28335
CPPFLAGS="$CPPFLAGS $X_CFLAGS"
28442
###############################################################################
28446
###############################################################################
28450
echo "$as_me:$LINENO: checking for XRRUpdateConfiguration in -lXrandr" >&5
28451
echo $ECHO_N "checking for XRRUpdateConfiguration in -lXrandr... $ECHO_C" >&6
28452
if test "${ac_cv_lib_Xrandr_XRRUpdateConfiguration+set}" = set; then
28453
echo $ECHO_N "(cached) $ECHO_C" >&6
28455
ac_check_lib_save_LIBS=$LIBS
28456
LIBS="-lXrandr -lXrender -lXext $ALL_X_LIBS $LIBS"
28457
cat >conftest.$ac_ext <<_ACEOF
28460
cat confdefs.h >>conftest.$ac_ext
28461
cat >>conftest.$ac_ext <<_ACEOF
28462
/* end confdefs.h. */
28464
/* Override any gcc2 internal prototype to avoid an error. */
28468
/* We use char because int might match the return type of a gcc2
28469
builtin and then its argument prototype would still apply. */
28470
char XRRUpdateConfiguration ();
28474
XRRUpdateConfiguration ();
28479
rm -f conftest.$ac_objext conftest$ac_exeext
28480
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28481
(eval $ac_link) 2>conftest.er1
28483
grep -v '^ *+' conftest.er1 >conftest.err
28485
cat conftest.err >&5
28486
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28487
(exit $ac_status); } &&
28488
{ ac_try='test -z "$ac_c_werror_flag"
28489
|| test ! -s conftest.err'
28490
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28491
(eval $ac_try) 2>&5
28493
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28494
(exit $ac_status); }; } &&
28495
{ ac_try='test -s conftest$ac_exeext'
28496
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28497
(eval $ac_try) 2>&5
28499
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28500
(exit $ac_status); }; }; then
28501
ac_cv_lib_Xrandr_XRRUpdateConfiguration=yes
28503
echo "$as_me: failed program was:" >&5
28504
sed 's/^/| /' conftest.$ac_ext >&5
28506
ac_cv_lib_Xrandr_XRRUpdateConfiguration=no
28508
rm -f conftest.err conftest.$ac_objext \
28509
conftest$ac_exeext conftest.$ac_ext
28510
LIBS=$ac_check_lib_save_LIBS
28512
echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRUpdateConfiguration" >&5
28513
echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRUpdateConfiguration" >&6
28514
if test $ac_cv_lib_Xrandr_XRRUpdateConfiguration = yes; then
28336
28515
echo "$as_me:$LINENO: checking for X11/extensions/Xrandr.h" >&5
28337
28516
echo $ECHO_N "checking for X11/extensions/Xrandr.h... $ECHO_C" >&6
28338
28517
if test "${ac_cv_header_X11_extensions_Xrandr_h+set}" = set; then
28382
28561
echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xrandr_h" >&5
28383
28562
echo "${ECHO_T}$ac_cv_header_X11_extensions_Xrandr_h" >&6
28384
28563
if test $ac_cv_header_X11_extensions_Xrandr_h = yes; then
28389
CPPFLAGS="$ac_save_CPPFLAGS"
28391
# if that succeeded, then check for the XRR code in the libraries
28392
if test "$have_randr" = yes; then
28394
# RANDR probably needs -lXrender
28397
ac_save_CPPFLAGS="$CPPFLAGS"
28398
ac_save_LDFLAGS="$LDFLAGS"
28399
# ac_save_LIBS="$LIBS"
28401
if test \! -z "$includedir" ; then
28402
CPPFLAGS="$CPPFLAGS -I$includedir"
28404
# note: $X_CFLAGS includes $x_includes
28405
CPPFLAGS="$CPPFLAGS $X_CFLAGS"
28407
if test \! -z "$libdir" ; then
28408
LDFLAGS="$LDFLAGS -L$libdir"
28410
# note: $X_LIBS includes $x_libraries
28411
LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
28413
echo "$as_me:$LINENO: checking for XRenderSetSubpixelOrder in -lXrender" >&5
28414
echo $ECHO_N "checking for XRenderSetSubpixelOrder in -lXrender... $ECHO_C" >&6
28415
if test "${ac_cv_lib_Xrender_XRenderSetSubpixelOrder+set}" = set; then
28416
echo $ECHO_N "(cached) $ECHO_C" >&6
28418
ac_check_lib_save_LIBS=$LIBS
28419
LIBS="-lXrender -lXext -lX11 $LIBS"
28420
cat >conftest.$ac_ext <<_ACEOF
28423
cat confdefs.h >>conftest.$ac_ext
28424
cat >>conftest.$ac_ext <<_ACEOF
28425
/* end confdefs.h. */
28427
/* Override any gcc2 internal prototype to avoid an error. */
28431
/* We use char because int might match the return type of a gcc2
28432
builtin and then its argument prototype would still apply. */
28433
char XRenderSetSubpixelOrder ();
28437
XRenderSetSubpixelOrder ();
28442
rm -f conftest.$ac_objext conftest$ac_exeext
28443
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28444
(eval $ac_link) 2>conftest.er1
28446
grep -v '^ *+' conftest.er1 >conftest.err
28448
cat conftest.err >&5
28449
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28450
(exit $ac_status); } &&
28451
{ ac_try='test -z "$ac_c_werror_flag"
28452
|| test ! -s conftest.err'
28453
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28454
(eval $ac_try) 2>&5
28456
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28457
(exit $ac_status); }; } &&
28458
{ ac_try='test -s conftest$ac_exeext'
28459
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28460
(eval $ac_try) 2>&5
28462
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28463
(exit $ac_status); }; }; then
28464
ac_cv_lib_Xrender_XRenderSetSubpixelOrder=yes
28466
echo "$as_me: failed program was:" >&5
28467
sed 's/^/| /' conftest.$ac_ext >&5
28469
ac_cv_lib_Xrender_XRenderSetSubpixelOrder=no
28471
rm -f conftest.err conftest.$ac_objext \
28472
conftest$ac_exeext conftest.$ac_ext
28473
LIBS=$ac_check_lib_save_LIBS
28475
echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetSubpixelOrder" >&5
28476
echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetSubpixelOrder" >&6
28477
if test $ac_cv_lib_Xrender_XRenderSetSubpixelOrder = yes; then
28478
xrender_libs="-lXrender"
28483
CPPFLAGS="$ac_save_CPPFLAGS"
28484
LDFLAGS="$ac_save_LDFLAGS"
28485
# LIBS="$ac_save_LIBS"
28488
# first look for RANDR in -lXext
28491
ac_save_CPPFLAGS="$CPPFLAGS"
28492
ac_save_LDFLAGS="$LDFLAGS"
28493
# ac_save_LIBS="$LIBS"
28495
if test \! -z "$includedir" ; then
28496
CPPFLAGS="$CPPFLAGS -I$includedir"
28498
# note: $X_CFLAGS includes $x_includes
28499
CPPFLAGS="$CPPFLAGS $X_CFLAGS"
28501
if test \! -z "$libdir" ; then
28502
LDFLAGS="$LDFLAGS -L$libdir"
28504
# note: $X_LIBS includes $x_libraries
28505
LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
28507
echo "$as_me:$LINENO: checking for XRRGetScreenInfo in -lXext" >&5
28508
echo $ECHO_N "checking for XRRGetScreenInfo in -lXext... $ECHO_C" >&6
28509
if test "${ac_cv_lib_Xext_XRRGetScreenInfo+set}" = set; then
28510
echo $ECHO_N "(cached) $ECHO_C" >&6
28512
ac_check_lib_save_LIBS=$LIBS
28513
LIBS="-lXext $xrender_libs -lXext -lX11 $LIBS"
28514
cat >conftest.$ac_ext <<_ACEOF
28517
cat confdefs.h >>conftest.$ac_ext
28518
cat >>conftest.$ac_ext <<_ACEOF
28519
/* end confdefs.h. */
28521
/* Override any gcc2 internal prototype to avoid an error. */
28525
/* We use char because int might match the return type of a gcc2
28526
builtin and then its argument prototype would still apply. */
28527
char XRRGetScreenInfo ();
28531
XRRGetScreenInfo ();
28536
rm -f conftest.$ac_objext conftest$ac_exeext
28537
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28538
(eval $ac_link) 2>conftest.er1
28540
grep -v '^ *+' conftest.er1 >conftest.err
28542
cat conftest.err >&5
28543
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28544
(exit $ac_status); } &&
28545
{ ac_try='test -z "$ac_c_werror_flag"
28546
|| test ! -s conftest.err'
28547
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28548
(eval $ac_try) 2>&5
28550
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28551
(exit $ac_status); }; } &&
28552
{ ac_try='test -s conftest$ac_exeext'
28553
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28554
(eval $ac_try) 2>&5
28556
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28557
(exit $ac_status); }; }; then
28558
ac_cv_lib_Xext_XRRGetScreenInfo=yes
28560
echo "$as_me: failed program was:" >&5
28561
sed 's/^/| /' conftest.$ac_ext >&5
28563
ac_cv_lib_Xext_XRRGetScreenInfo=no
28565
rm -f conftest.err conftest.$ac_objext \
28566
conftest$ac_exeext conftest.$ac_ext
28567
LIBS=$ac_check_lib_save_LIBS
28569
echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XRRGetScreenInfo" >&5
28570
echo "${ECHO_T}$ac_cv_lib_Xext_XRRGetScreenInfo" >&6
28571
if test $ac_cv_lib_Xext_XRRGetScreenInfo = yes; then
28572
have_randr=yes; SAVER_LIBS="$SAVER_LIBS $xrender_libs"
28577
CPPFLAGS="$ac_save_CPPFLAGS"
28578
LDFLAGS="$ac_save_LDFLAGS"
28579
# LIBS="$ac_save_LIBS"
28582
# if that failed, look in -lXrandr
28583
if test "$have_randr" = no; then
28585
ac_save_CPPFLAGS="$CPPFLAGS"
28586
ac_save_LDFLAGS="$LDFLAGS"
28587
# ac_save_LIBS="$LIBS"
28589
if test \! -z "$includedir" ; then
28590
CPPFLAGS="$CPPFLAGS -I$includedir"
28592
# note: $X_CFLAGS includes $x_includes
28593
CPPFLAGS="$CPPFLAGS $X_CFLAGS"
28595
if test \! -z "$libdir" ; then
28596
LDFLAGS="$LDFLAGS -L$libdir"
28598
# note: $X_LIBS includes $x_libraries
28599
LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
28601
echo "$as_me:$LINENO: checking for XRRGetScreenInfo in -lXrandr" >&5
28602
echo $ECHO_N "checking for XRRGetScreenInfo in -lXrandr... $ECHO_C" >&6
28603
if test "${ac_cv_lib_Xrandr_XRRGetScreenInfo+set}" = set; then
28604
echo $ECHO_N "(cached) $ECHO_C" >&6
28606
ac_check_lib_save_LIBS=$LIBS
28607
LIBS="-lXrandr $xrender_libs -lXext -lX11 $LIBS"
28608
cat >conftest.$ac_ext <<_ACEOF
28611
cat confdefs.h >>conftest.$ac_ext
28612
cat >>conftest.$ac_ext <<_ACEOF
28613
/* end confdefs.h. */
28615
/* Override any gcc2 internal prototype to avoid an error. */
28619
/* We use char because int might match the return type of a gcc2
28620
builtin and then its argument prototype would still apply. */
28621
char XRRGetScreenInfo ();
28625
XRRGetScreenInfo ();
28630
rm -f conftest.$ac_objext conftest$ac_exeext
28631
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28632
(eval $ac_link) 2>conftest.er1
28634
grep -v '^ *+' conftest.er1 >conftest.err
28636
cat conftest.err >&5
28637
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28638
(exit $ac_status); } &&
28639
{ ac_try='test -z "$ac_c_werror_flag"
28640
|| test ! -s conftest.err'
28641
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28642
(eval $ac_try) 2>&5
28644
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28645
(exit $ac_status); }; } &&
28646
{ ac_try='test -s conftest$ac_exeext'
28647
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28648
(eval $ac_try) 2>&5
28650
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28651
(exit $ac_status); }; }; then
28652
ac_cv_lib_Xrandr_XRRGetScreenInfo=yes
28654
echo "$as_me: failed program was:" >&5
28655
sed 's/^/| /' conftest.$ac_ext >&5
28657
ac_cv_lib_Xrandr_XRRGetScreenInfo=no
28659
rm -f conftest.err conftest.$ac_objext \
28660
conftest$ac_exeext conftest.$ac_ext
28661
LIBS=$ac_check_lib_save_LIBS
28663
echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRGetScreenInfo" >&5
28664
echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRGetScreenInfo" >&6
28665
if test $ac_cv_lib_Xrandr_XRRGetScreenInfo = yes; then
28666
have_randr=yes; SAVER_LIBS="$SAVER_LIBS -lXrandr $xrender_libs"
28671
CPPFLAGS="$ac_save_CPPFLAGS"
28672
LDFLAGS="$ac_save_LDFLAGS"
28673
# LIBS="$ac_save_LIBS"
28678
# if that succeeded, then we've really got it.
28679
if test "$have_randr" = yes; then
28681
cat >>confdefs.h <<\_ACEOF
28682
#define HAVE_RANDR 1
28687
elif test "$with_randr" != no; then
28688
echo "error: must be yes or no: --with-randr-ext=$with_randr"
28693
###############################################################################
28695
# Check for XF86MiscSetGrabKeysState (but only bother if we are already
28696
# using other XF86 stuff.)
28698
###############################################################################
28700
have_xf86miscsetgrabkeysstate=no
28701
if test "$have_xf86gamma" = yes -o "$have_xf86vmode" = yes; then
28703
ac_save_CPPFLAGS="$CPPFLAGS"
28704
ac_save_LDFLAGS="$LDFLAGS"
28705
# ac_save_LIBS="$LIBS"
28707
if test \! -z "$includedir" ; then
28708
CPPFLAGS="$CPPFLAGS -I$includedir"
28710
# note: $X_CFLAGS includes $x_includes
28711
CPPFLAGS="$CPPFLAGS $X_CFLAGS"
28713
if test \! -z "$libdir" ; then
28714
LDFLAGS="$LDFLAGS -L$libdir"
28716
# note: $X_LIBS includes $x_libraries
28717
LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
28719
echo "$as_me:$LINENO: checking for XF86MiscSetGrabKeysState in -lXxf86misc" >&5
28720
echo $ECHO_N "checking for XF86MiscSetGrabKeysState in -lXxf86misc... $ECHO_C" >&6
28721
if test "${ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState+set}" = set; then
28722
echo $ECHO_N "(cached) $ECHO_C" >&6
28724
ac_check_lib_save_LIBS=$LIBS
28725
LIBS="-lXxf86misc -lXext -lX11 $LIBS"
28726
cat >conftest.$ac_ext <<_ACEOF
28729
cat confdefs.h >>conftest.$ac_ext
28730
cat >>conftest.$ac_ext <<_ACEOF
28731
/* end confdefs.h. */
28733
/* Override any gcc2 internal prototype to avoid an error. */
28737
/* We use char because int might match the return type of a gcc2
28738
builtin and then its argument prototype would still apply. */
28739
char XF86MiscSetGrabKeysState ();
28743
XF86MiscSetGrabKeysState ();
28748
rm -f conftest.$ac_objext conftest$ac_exeext
28749
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28750
(eval $ac_link) 2>conftest.er1
28752
grep -v '^ *+' conftest.er1 >conftest.err
28754
cat conftest.err >&5
28755
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28756
(exit $ac_status); } &&
28757
{ ac_try='test -z "$ac_c_werror_flag"
28758
|| test ! -s conftest.err'
28759
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28760
(eval $ac_try) 2>&5
28762
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28763
(exit $ac_status); }; } &&
28764
{ ac_try='test -s conftest$ac_exeext'
28765
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28766
(eval $ac_try) 2>&5
28768
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28769
(exit $ac_status); }; }; then
28770
ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState=yes
28772
echo "$as_me: failed program was:" >&5
28773
sed 's/^/| /' conftest.$ac_ext >&5
28775
ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState=no
28777
rm -f conftest.err conftest.$ac_objext \
28778
conftest$ac_exeext conftest.$ac_ext
28779
LIBS=$ac_check_lib_save_LIBS
28781
echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState" >&5
28782
echo "${ECHO_T}$ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState" >&6
28783
if test $ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState = yes; then
28784
have_xf86miscsetgrabkeysstate=yes
28789
CPPFLAGS="$ac_save_CPPFLAGS"
28790
LDFLAGS="$ac_save_LDFLAGS"
28791
# LIBS="$ac_save_LIBS"
28793
if test "$have_xf86miscsetgrabkeysstate" = yes ; then
28794
SAVER_LIBS="$SAVER_LIBS -lXxf86misc"
28796
cat >>confdefs.h <<\_ACEOF
28797
#define HAVE_XF86MISCSETGRABKEYSSTATE 1
28804
###############################################################################
28806
# Check for HP XHPDisableReset and XHPEnableReset.
28808
###############################################################################
28810
echo "$as_me:$LINENO: checking for XHPDisableReset in X11/XHPlib.h" >&5
28811
echo $ECHO_N "checking for XHPDisableReset in X11/XHPlib.h... $ECHO_C" >&6
28813
ac_save_CPPFLAGS="$CPPFLAGS"
28814
if test \! -z "$includedir" ; then
28815
CPPFLAGS="$CPPFLAGS -I$includedir"
28817
CPPFLAGS="$CPPFLAGS $X_CFLAGS"
28818
cat >conftest.$ac_ext <<_ACEOF
28821
cat confdefs.h >>conftest.$ac_ext
28822
cat >>conftest.$ac_ext <<_ACEOF
28823
/* end confdefs.h. */
28824
#include <X11/XHPlib.h>
28827
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28828
$EGREP "XHPDisableReset" >/dev/null 2>&1; then
28830
cat >>confdefs.h <<\_ACEOF
28831
#define HAVE_XHPDISABLERESET 1
28834
SAVER_LIBS="-lXhp11 $SAVER_LIBS"
28835
echo "$as_me:$LINENO: result: yes" >&5
28836
echo "${ECHO_T}yes" >&6
28838
echo "$as_me:$LINENO: result: no" >&5
28839
echo "${ECHO_T}no" >&6
28843
CPPFLAGS="$ac_save_CPPFLAGS"
28846
###############################################################################
28848
# Check for /proc/interrupts.
28850
###############################################################################
28852
have_proc_interrupts=no
28853
with_proc_interrupts_req=unspecified
28855
# Check whether --with-proc-interrupts or --without-proc-interrupts was given.
28856
if test "${with_proc_interrupts+set}" = set; then
28857
withval="$with_proc_interrupts"
28858
with_proc_interrupts="$withval"; with_proc_interrupts_req="$withval"
28860
with_proc_interrupts=yes
28863
if test "$with_proc_interrupts" = yes; then
28865
echo "$as_me:$LINENO: checking whether /proc/interrupts contains keyboard data" >&5
28866
echo $ECHO_N "checking whether /proc/interrupts contains keyboard data... $ECHO_C" >&6
28867
if test "${ac_cv_have_proc_interrupts+set}" = set; then
28868
echo $ECHO_N "(cached) $ECHO_C" >&6
28870
ac_cv_have_proc_interrupts=no
28871
if grep keyboard /proc/interrupts >/dev/null 2>&1 ; then
28872
ac_cv_have_proc_interrupts=yes
28876
echo "$as_me:$LINENO: result: $ac_cv_have_proc_interrupts" >&5
28877
echo "${ECHO_T}$ac_cv_have_proc_interrupts" >&6
28878
have_proc_interrupts=$ac_cv_have_proc_interrupts
28880
if test "$have_proc_interrupts" = yes; then
28882
cat >>confdefs.h <<\_ACEOF
28883
#define HAVE_PROC_INTERRUPTS 1
28888
elif test "$with_proc_interrupts" != no; then
28889
echo "error: must be yes or no: --with-proc-interrupts=$with_proc_interrupts"
28564
RANDR_LIBS=-lXrandr found_randr=yes
28571
if test "x$found_randr" = "xyes"; then
28573
cat >>confdefs.h <<\_ACEOF
28894
28579
###############################################################################
28787
# On Linux, sigtimedwait() is in libc; on Solaris, it's in librt.
28789
echo "$as_me:$LINENO: checking for sigtimedwait in -lc" >&5
28790
echo $ECHO_N "checking for sigtimedwait in -lc... $ECHO_C" >&6
28791
if test "${ac_cv_lib_c_sigtimedwait+set}" = set; then
28792
echo $ECHO_N "(cached) $ECHO_C" >&6
28794
ac_check_lib_save_LIBS=$LIBS
28796
cat >conftest.$ac_ext <<_ACEOF
28799
cat confdefs.h >>conftest.$ac_ext
28800
cat >>conftest.$ac_ext <<_ACEOF
28801
/* end confdefs.h. */
28803
/* Override any gcc2 internal prototype to avoid an error. */
28807
/* We use char because int might match the return type of a gcc2
28808
builtin and then its argument prototype would still apply. */
28809
char sigtimedwait ();
28818
rm -f conftest.$ac_objext conftest$ac_exeext
28819
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28820
(eval $ac_link) 2>conftest.er1
28822
grep -v '^ *+' conftest.er1 >conftest.err
28824
cat conftest.err >&5
28825
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28826
(exit $ac_status); } &&
28827
{ ac_try='test -z "$ac_c_werror_flag"
28828
|| test ! -s conftest.err'
28829
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28830
(eval $ac_try) 2>&5
28832
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28833
(exit $ac_status); }; } &&
28834
{ ac_try='test -s conftest$ac_exeext'
28835
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28836
(eval $ac_try) 2>&5
28838
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28839
(exit $ac_status); }; }; then
28840
ac_cv_lib_c_sigtimedwait=yes
28842
echo "$as_me: failed program was:" >&5
28843
sed 's/^/| /' conftest.$ac_ext >&5
28845
ac_cv_lib_c_sigtimedwait=no
28847
rm -f conftest.err conftest.$ac_objext \
28848
conftest$ac_exeext conftest.$ac_ext
28849
LIBS=$ac_check_lib_save_LIBS
28851
echo "$as_me:$LINENO: result: $ac_cv_lib_c_sigtimedwait" >&5
28852
echo "${ECHO_T}$ac_cv_lib_c_sigtimedwait" >&6
28853
if test $ac_cv_lib_c_sigtimedwait = yes; then
28857
if test "$have_timedwait" = no ; then
28858
echo "$as_me:$LINENO: checking for sigtimedwait in -lrt" >&5
28859
echo $ECHO_N "checking for sigtimedwait in -lrt... $ECHO_C" >&6
28860
if test "${ac_cv_lib_rt_sigtimedwait+set}" = set; then
28861
echo $ECHO_N "(cached) $ECHO_C" >&6
28863
ac_check_lib_save_LIBS=$LIBS
28865
cat >conftest.$ac_ext <<_ACEOF
28868
cat confdefs.h >>conftest.$ac_ext
28869
cat >>conftest.$ac_ext <<_ACEOF
28870
/* end confdefs.h. */
28872
/* Override any gcc2 internal prototype to avoid an error. */
28876
/* We use char because int might match the return type of a gcc2
28877
builtin and then its argument prototype would still apply. */
28878
char sigtimedwait ();
28887
rm -f conftest.$ac_objext conftest$ac_exeext
28888
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28889
(eval $ac_link) 2>conftest.er1
28891
grep -v '^ *+' conftest.er1 >conftest.err
28893
cat conftest.err >&5
28894
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28895
(exit $ac_status); } &&
28896
{ ac_try='test -z "$ac_c_werror_flag"
28897
|| test ! -s conftest.err'
28898
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28899
(eval $ac_try) 2>&5
28901
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28902
(exit $ac_status); }; } &&
28903
{ ac_try='test -s conftest$ac_exeext'
28904
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28905
(eval $ac_try) 2>&5
28907
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28908
(exit $ac_status); }; }; then
28909
ac_cv_lib_rt_sigtimedwait=yes
28911
echo "$as_me: failed program was:" >&5
28912
sed 's/^/| /' conftest.$ac_ext >&5
28914
ac_cv_lib_rt_sigtimedwait=no
28916
rm -f conftest.err conftest.$ac_objext \
28917
conftest$ac_exeext conftest.$ac_ext
28918
LIBS=$ac_check_lib_save_LIBS
28920
echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sigtimedwait" >&5
28921
echo "${ECHO_T}$ac_cv_lib_rt_sigtimedwait" >&6
28922
if test $ac_cv_lib_rt_sigtimedwait = yes; then
28923
AUTH_LIBS="${AUTH_LIBS} -lrt"
29100
28928
echo "$as_me:$LINENO: checking how to call pam_strerror" >&5
29101
28929
echo $ECHO_N "checking how to call pam_strerror... $ECHO_C" >&6
29102
28930
if test "${ac_cv_pam_strerror_args+set}" = set; then