comparison configure.ac @ 8665:8c4f33ffe17c

[gaim-migrate @ 9417] Added --disable-gevolution and --disable-startup-notification flags for configure. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Thu, 15 Apr 2004 01:20:15 +0000
parents dc5f694e1cab
children 9ee2542d1104
comparison
equal deleted inserted replaced
8664:f95edb58087c 8665:8c4f33ffe17c
232 x_incpath_add= 232 x_incpath_add=
233 else 233 else
234 x_incpath_add="-I$x_includes" 234 x_incpath_add="-I$x_includes"
235 fi 235 fi
236 236
237 dnl Check for startup notification 237 dnl #######################################################################
238 PKG_CHECK_MODULES(STARTUP_NOTIFICATION, libstartup-notification-1.0 >= 0.5, 238 dnl # Check for startup notification
239 [ 239 dnl #######################################################################
240 AC_DEFINE(HAVE_STARTUP_NOTIFICATION, 1, [Define if we're using libstartup-notification.]) 240 AC_ARG_ENABLE(startup-notification, [ --disable-startup-notification compile without startup notification support],,enable_startup_notification=yes)
241 echo "Building with libstartup-notification" 241
242 enable_startup_notification=yes 242 if test "x$enable_startup_notification" = "xyes"; then
243 ], 243 PKG_CHECK_MODULES(STARTUP_NOTIFICATION, libstartup-notification-1.0 >= 0.5,
244 [ 244 [
245 echo "Building without libstartup-notification" 245 AC_DEFINE(HAVE_STARTUP_NOTIFICATION, 1, [Define if we're using libstartup-notification.])
246 enable_startup_notification=no 246 echo "Building with libstartup-notification"
247 ]) 247 enable_startup_notification=yes
248 248 ],
249 AC_SUBST(STARTUP_NOTIFICATION_CFLAGS) 249 [
250 AC_SUBST(STARTUP_NOTIFICATION_LIBS) 250 echo "Building without libstartup-notification"
251 251 enable_startup_notification=no
252 252 ])
253 dnl Check for stuff needed by the evolution integration plugin. 253
254 AC_SUBST(STARTUP_NOTIFICATION_CFLAGS)
255 AC_SUBST(STARTUP_NOTIFICATION_LIBS)
256 fi
257
258
259 dnl #######################################################################
260 dnl # Check for stuff needed by the evolution integration plugin.
261 dnl #######################################################################
254 build_gevo=no 262 build_gevo=no
255 263 AC_ARG_ENABLE(gevolution, [ --disable-gevolution compile without the Gaim-Evolution plugin],,enable_gevolution=yes)
256 evo_deps="libxml-2.0 libebook-1.0 libedata-book-1.0" 264
257 PKG_CHECK_MODULES(EVOLUTION_ADDRESSBOOK, $evo_deps, build_gevo=yes, build_gevo=no) 265 if test "x$enable_gevolution" = "xyes"; then
258 266
259 AC_SUBST(EVOLUTION_ADDRESSBOOK_CFLAGS) 267 evo_deps="libxml-2.0 libebook-1.0 libedata-book-1.0"
260 AC_SUBST(EVOLUTION_ADDRESSBOOK_LIBS) 268 PKG_CHECK_MODULES(EVOLUTION_ADDRESSBOOK, $evo_deps, build_gevo=yes, build_gevo=no)
269
270 AC_SUBST(EVOLUTION_ADDRESSBOOK_CFLAGS)
271 AC_SUBST(EVOLUTION_ADDRESSBOOK_LIBS)
272
273 fi
261 274
262 AM_CONDITIONAL(BUILD_GEVOLUTION, test "x$build_gevo" = "xyes") 275 AM_CONDITIONAL(BUILD_GEVOLUTION, test "x$build_gevo" = "xyes")
263 276
264 dnl Check for XScreenSaver 277 dnl #######################################################################
278 dnl # Check for XScreenSaver
279 dnl #######################################################################
265 if test "x$enable_xss" = "xyes" ; then 280 if test "x$enable_xss" = "xyes" ; then
266 old_LIBS="$LIBS" 281 old_LIBS="$LIBS"
267 LIBS="$LIBS $GTK_LIBS $x_libpath_add" 282 LIBS="$LIBS $GTK_LIBS $x_libpath_add"
268 XSS_LIBS="no" 283 XSS_LIBS="no"
269 XSS_HEADERS="no" 284 XSS_HEADERS="no"
289 enable_xss=no 304 enable_xss=no
290 fi 305 fi
291 AC_SUBST(XSS_LIBS) 306 AC_SUBST(XSS_LIBS)
292 307
293 308
294 dnl Check for X session management libs 309 dnl #######################################################################
310 dnl # Check for X session management libs
311 dnl #######################################################################
295 if test "x$enable_sm" = "xyes"; then 312 if test "x$enable_sm" = "xyes"; then
296 enable_sm=no 313 enable_sm=no
297 AC_CHECK_LIB(SM, SmcSaveYourselfDone, found_sm_lib=true, , [$x_libpath_add -lICE]) 314 AC_CHECK_LIB(SM, SmcSaveYourselfDone, found_sm_lib=true, , [$x_libpath_add -lICE])
298 if test "$found_sm_lib" = "true"; then 315 if test "$found_sm_lib" = "true"; then
299 oldCPPFLAGS="$CPPFLAGS" 316 oldCPPFLAGS="$CPPFLAGS"
323 ]) 340 ])
324 341
325 GC_TM_GMTOFF 342 GC_TM_GMTOFF
326 343
327 344
328 dnl 345 dnl #######################################################################
329 dnl Perl stuff. Yeah. 346 dnl # Check for Perl support
330 dnl 347 dnl #######################################################################
331 if test "$enable_perl" = yes ; then 348 if test "$enable_perl" = yes ; then
332 AC_PATH_PROG(perlpath, perl) 349 AC_PATH_PROG(perlpath, perl)
333 AC_MSG_CHECKING(for Perl compile flags) 350 AC_MSG_CHECKING(for Perl compile flags)
334 PERL_CFLAGS=`$perlpath -MExtUtils::Embed -e ccopts 2>/dev/null` 351 PERL_CFLAGS=`$perlpath -MExtUtils::Embed -e ccopts 2>/dev/null`
335 if test "_$PERL_CFLAGS" = _ ; then 352 if test "_$PERL_CFLAGS" = _ ; then