diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2005-05-27 23:14:26 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2005-05-27 23:14:26 (GMT) |
commit | 99166f48dd544d3fef849683b0b40175d7238547 (patch) | |
tree | 628e1802dd6cb304781edf0f4c92998bc0d943cf /unix/configure.in | |
parent | 1c838522c0b377c7567543d50640f9290e506db4 (diff) | |
download | tk-99166f48dd544d3fef849683b0b40175d7238547.zip tk-99166f48dd544d3fef849683b0b40175d7238547.tar.gz tk-99166f48dd544d3fef849683b0b40175d7238547.tar.bz2 |
Partial implementation of TIP#245; thanks Reinhard!
Diffstat (limited to 'unix/configure.in')
-rw-r--r-- | unix/configure.in | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/unix/configure.in b/unix/configure.in index 7dbf335..732b301 100644 --- a/unix/configure.in +++ b/unix/configure.in @@ -3,7 +3,7 @@ dnl This file is an input file used by the GNU "autoconf" program to dnl generate the file "configure", which is run during Tk installation dnl to configure the system for the local environment. # -# RCS: @(#) $Id: configure.in,v 1.104 2005/05/26 11:19:04 das Exp $ +# RCS: @(#) $Id: configure.in,v 1.105 2005/05/27 23:14:29 dkf Exp $ AC_INIT([tk],[8.5]) AC_PREREQ(2.57) @@ -323,6 +323,29 @@ if test -d /usr/include/mit ; then fi #-------------------------------------------------------------------- +# Check whether the header and library for the XScreenSaver +# extension are available, and set HAVE_XSS if so. +# XScreenSaver is needed for Tk_GetUserInactiveTime(). +#-------------------------------------------------------------------- +AC_MSG_CHECKING([for XScreenSaver support]) +tk_oldCFlags=$CFLAGS +CFLAGS="$CFLAGS $XINCLUDES" +tk_oldLibs=$LIBS +LIBS="$LIBS $XLIBSW -lXss -lXext" +AC_TRY_LINK([ + #include <X11/Xlib.h> + #include <X11/extensions/scrnsaver.h> +] , [ + XScreenSaverAllocInfo(); +], [ + AC_MSG_RESULT(yes) + XLIBSW="$XLIBSW -lXss -lXext" + AC_DEFINE([HAVE_XSS]) +], AC_MSG_RESULT(no)) +CFLAGS=$tk_oldCFlags +LIBS=$tk_oldLibs + +#-------------------------------------------------------------------- # Check for freetype / fontconfig / Xft support. #-------------------------------------------------------------------- |