Mercurial > pidgin
view m4/ac_var_timezone_externals.m4 @ 12472:065005e5f536
[gaim-migrate @ 14782]
SF Patch #1373967 from charkins
"This patch requires #1372898 to be applied first. It
adds two 3-way preferences to the docklet plugin to
determine when the tray icon should blink. One pref is
for unread IM messages, the other for unread chat
messages. The options for each:
im: never, when hidden, always
chat: never, when nick said, always
I've set the defaults to match the 1.x behavior (when
hidden for im, never for chat)."
This patch provided a function used by a previous patch. I undid my (now incorrect) changes there. I modified this to have a limit to the number of tooltips to display. I also tweaked the preference strings a bit. So, blame me if those things are wrong. ;)
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Mon, 12 Dec 2005 20:38:10 +0000 |
parents | 80faf1ca5280 |
children |
line wrap: on
line source
# Define 'timezone', 'altzone' and 'daylight' # http://www.gnu.org/software/ac-archive/Miscellaneous/ac_var_timezone_externals.html # Use instead of 'AC_STRUCT_TIMEZONE' to determine whether the # the external timezone variables 'timezone', 'altzone' and 'daylight' exist, # defining 'HAVE_TIMEZONE', 'HAVE_ALTZONE' and 'HAVE_DAYLIGHT' respectively # (as well as gaining the macros defined by 'AC_STRUCT_TIMEZONE'). # Mark R.Bannister <markb@freedomware.co.uk> AC_DEFUN([AC_VAR_TIMEZONE_EXTERNALS], [ AC_REQUIRE([AC_STRUCT_TIMEZONE])dnl AC_CACHE_CHECK(for timezone external, mb_cv_var_timezone, [ AC_TRY_LINK([#include <time.h>], [return (int)timezone;], mb_cv_var_timezone=yes, mb_cv_var_timezone=no) ]) AC_CACHE_CHECK(for altzone external, mb_cv_var_altzone, [ AC_TRY_LINK([#include <time.h>], [return (int)altzone;], mb_cv_var_altzone=yes, mb_cv_var_altzone=no) ]) AC_CACHE_CHECK(for daylight external, mb_cv_var_daylight, [ AC_TRY_LINK([#include <time.h>], [return (int)daylight;], mb_cv_var_daylight=yes, mb_cv_var_daylight=no) ]) if test $mb_cv_var_timezone = yes; then AC_DEFINE([HAVE_TIMEZONE], 1, [Define if you have the external 'timezone' variable.]) fi if test $mb_cv_var_altzone = yes; then AC_DEFINE([HAVE_ALTZONE], 1, [Define if you have the external 'altzone' variable.]) fi if test $mb_cv_var_daylight = yes; then AC_DEFINE([HAVE_DAYLIGHT], 1, [Define if you have the external 'daylight' variable.]) fi ])