Skip to Content.
Sympa Menu

sm-discuss - [SM-Discuss] Gossip and XScreenSaver Extension

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: "George J. Sherwood" <pilot AT beernabeer.com>
  • To: sm-discuss <sm-discuss AT lists.ibiblio.org>
  • Subject: [SM-Discuss] Gossip and XScreenSaver Extension
  • Date: Wed, 29 Dec 2004 21:56:16 -0500

I was trying to update gossip to version 0.8 and I found it won't build.
I tried to build gossip 0.7.8 and it fails also. I last build gossip in
September, so something has changed on both my computers since that
time. It is failing like this:

checking for XScreenSaverRegister in -lXext... no
checking for XScreenSaverRegister in -lXss... no
configure: error: Couldn't find XScreenSaver extension.


gaim goes through the same checks but it works. From a build of gaim
today:

checking for XScreenSaverRegister in -lXext... no
checking for XScreenSaverRegister in -lXss... yes


Why would these be different? Here is what the configure.in file for
gossip looks like:

dnl -----------------------------------------------------------

dnl Check for XScreenSaver
old_LIBS="$LIBS"
old_CFLAGS="$CFLAGS"
LIBS="$LIBS -L$x_libraries $GOSSIP_LIBS"
CFLAGS="$CFLAGS -I$x_includes $GOSSIP_CFLAGS"
XSS_LIBS="no"
XSS_HEADERS="no"
AC_CHECK_LIB(Xext, XScreenSaverRegister,[XSS_LIBS="-L
$x_libraries"],[],[-lX11 -lXex$
AC_CHECK_LIB(Xss, XScreenSaverRegister,[XSS_LIBS="-L$x_libraries
-lXss"],[],[-lX11 $
if test \! "$XSS_LIBS" = "no"; then
AC_TRY_COMPILE([
#include <X11/extensions/scrnsaver.h>
],[],[enable_xss=no],[
AC_DEFINE(USE_SCREENSAVER, 1, [Define if we're using
XScreenSaver.])
])
else
XSS_LIBS=""
enable_xss=no
fi
LIBS="$old_LIBS"
CFLAGS="$old_CFLAGS"

if test "x$enable_xss" = "xno"; then
AC_MSG_ERROR([Couldn't find XScreenSaver extension.])
fi
-----------------------------------------------
and the configure.ac file from gaim:
dnl
#######################################################################
dnl # Check for XScreenSaver
dnl
#######################################################################
if test "x$enable_xss" = "xyes" ; then
old_LIBS="$LIBS"
LIBS="$LIBS $GTK_LIBS $x_libpath_add"
XSS_LIBS="no"
XSS_HEADERS="no"
AC_CHECK_LIB(Xext, XScreenSaverRegister,[XSS_LIBS="$X_LIBS
$X_PRE_LIBS -lX11 -lXext $X_EX$
AC_CHECK_LIB(Xss, XScreenSaverRegister,[XSS_LIBS="$X_LIBS
$X_PRE_LIBS -lX11 -lXext $X_LIB$
if test \! "$XSS_LIBS" = "no"; then
oldCPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS -I$x_includes"
AC_TRY_COMPILE([
#include <X11/Xlib.h>
#include <X11/extensions/scrnsaver.h>
],[],[
AC_DEFINE(USE_SCREENSAVER, 1, [Define if
we're using XScreenSaver$
)
CPPFLAGS="$oldCPPFLAGS"
else
XSS_LIBS=""
enable_xss=no
fi
LIBS="$old_LIBS"
else
XSS_LIBS=""
enable_xss=no
fi
AC_SUBST(XSS_LIBS)

--------------------------------------
One of my computers has xfree86 and the other xorg. Both fail the same
way. Sorry for the long message. Any ideas?

George Sherwood
SMGL Chat Guru





Archive powered by MHonArc 2.6.24.

Top of Page