comparison configure.ac @ 3282:c32a8a97e011

[gaim-migrate @ 3300] Nathan Walp says this is better. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Thu, 30 May 2002 18:33:40 +0000
parents 8cc309b8cb32
children 5422e5f587f0
comparison
equal deleted inserted replaced
3281:941eb47c5bd4 3282:c32a8a97e011
234 fi 234 fi
235 AC_SUBST(UI_LIBS) 235 AC_SUBST(UI_LIBS)
236 236
237 dnl Check for XScreenSaver 237 dnl Check for XScreenSaver
238 if test "x$enable_xss" = "xyes" ; then 238 if test "x$enable_xss" = "xyes" ; then
239 AC_PATH_X
239 old_LIBS="$LIBS" 240 old_LIBS="$LIBS"
240 LIBS="$LIBS $UI_LIBS" 241 LIBS="$LIBS $UI_LIBS -L$x_libraries"
241 XSS_LIBS="no" 242 XSS_LIBS="no"
242 XSS_HEADERS="no" 243 XSS_HEADERS="no"
243 AC_CHECK_LIB(Xext, XScreenSaverRegister,[XSS_LIBS=""],[],[-lX11 -lXext -lm]) 244 AC_CHECK_LIB(Xext, XScreenSaverRegister,[XSS_LIBS="-L$x_libraries"],[],[-lX11 -lXext -lm])
244 AC_CHECK_LIB(Xss, XScreenSaverRegister,[XSS_LIBS="-lXss"],[],[-lX11 -lXext -lm]) 245 AC_CHECK_LIB(Xss, XScreenSaverRegister,[XSS_LIBS="-L$x_libraries -lXss"],[],[-lX11 -lXext -lm])
245 if test \! "$XSS_LIBS" = "no"; then 246 if test \! "$XSS_LIBS" = "no"; then
246 AC_TRY_COMPILE([ 247 AC_TRY_COMPILE([
247 #include <X11/extensions/scrnsaver.h> 248 #include <X11/extensions/scrnsaver.h>
248 ],[],[enable_xss=no],[ 249 ],[],[enable_xss=no],[
249 AC_DEFINE(USE_SCREENSAVER) 250 AC_DEFINE(USE_SCREENSAVER)