annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
12023
80faf1ca5280 [gaim-migrate @ 14316]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
1
80faf1ca5280 [gaim-migrate @ 14316]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
2 # Define 'timezone', 'altzone' and 'daylight'
80faf1ca5280 [gaim-migrate @ 14316]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
3 # http://www.gnu.org/software/ac-archive/Miscellaneous/ac_var_timezone_externals.html
80faf1ca5280 [gaim-migrate @ 14316]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
4 # Use instead of 'AC_STRUCT_TIMEZONE' to determine whether the
80faf1ca5280 [gaim-migrate @ 14316]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
5 # the external timezone variables 'timezone', 'altzone' and 'daylight' exist,
80faf1ca5280 [gaim-migrate @ 14316]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
6 # defining 'HAVE_TIMEZONE', 'HAVE_ALTZONE' and 'HAVE_DAYLIGHT' respectively
80faf1ca5280 [gaim-migrate @ 14316]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
7 # (as well as gaining the macros defined by 'AC_STRUCT_TIMEZONE').
80faf1ca5280 [gaim-migrate @ 14316]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
8 # Mark R.Bannister <markb@freedomware.co.uk>
80faf1ca5280 [gaim-migrate @ 14316]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
9 AC_DEFUN([AC_VAR_TIMEZONE_EXTERNALS],
80faf1ca5280 [gaim-migrate @ 14316]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
10 [ AC_REQUIRE([AC_STRUCT_TIMEZONE])dnl
80faf1ca5280 [gaim-migrate @ 14316]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
11 AC_CACHE_CHECK(for timezone external, mb_cv_var_timezone,
80faf1ca5280 [gaim-migrate @ 14316]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
12 [ AC_TRY_LINK([#include <time.h>], [return (int)timezone;],
80faf1ca5280 [gaim-migrate @ 14316]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
13 mb_cv_var_timezone=yes,
80faf1ca5280 [gaim-migrate @ 14316]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
14 mb_cv_var_timezone=no)
80faf1ca5280 [gaim-migrate @ 14316]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
15 ])
80faf1ca5280 [gaim-migrate @ 14316]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
16 AC_CACHE_CHECK(for altzone external, mb_cv_var_altzone,
80faf1ca5280 [gaim-migrate @ 14316]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
17 [ AC_TRY_LINK([#include <time.h>], [return (int)altzone;],
80faf1ca5280 [gaim-migrate @ 14316]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
18 mb_cv_var_altzone=yes,
80faf1ca5280 [gaim-migrate @ 14316]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
19 mb_cv_var_altzone=no)
80faf1ca5280 [gaim-migrate @ 14316]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
20 ])
80faf1ca5280 [gaim-migrate @ 14316]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
21 AC_CACHE_CHECK(for daylight external, mb_cv_var_daylight,
80faf1ca5280 [gaim-migrate @ 14316]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
22 [ AC_TRY_LINK([#include <time.h>], [return (int)daylight;],
80faf1ca5280 [gaim-migrate @ 14316]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
23 mb_cv_var_daylight=yes,
80faf1ca5280 [gaim-migrate @ 14316]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
24 mb_cv_var_daylight=no)
80faf1ca5280 [gaim-migrate @ 14316]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
25 ])
80faf1ca5280 [gaim-migrate @ 14316]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
26 if test $mb_cv_var_timezone = yes; then
80faf1ca5280 [gaim-migrate @ 14316]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
27 AC_DEFINE([HAVE_TIMEZONE], 1,
80faf1ca5280 [gaim-migrate @ 14316]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
28 [Define if you have the external 'timezone' variable.])
80faf1ca5280 [gaim-migrate @ 14316]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
29 fi
80faf1ca5280 [gaim-migrate @ 14316]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
30 if test $mb_cv_var_altzone = yes; then
80faf1ca5280 [gaim-migrate @ 14316]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
31 AC_DEFINE([HAVE_ALTZONE], 1,
80faf1ca5280 [gaim-migrate @ 14316]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
32 [Define if you have the external 'altzone' variable.])
80faf1ca5280 [gaim-migrate @ 14316]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
33 fi
80faf1ca5280 [gaim-migrate @ 14316]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
34 if test $mb_cv_var_daylight = yes; then
80faf1ca5280 [gaim-migrate @ 14316]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
35 AC_DEFINE([HAVE_DAYLIGHT], 1,
80faf1ca5280 [gaim-migrate @ 14316]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
36 [Define if you have the external 'daylight' variable.])
80faf1ca5280 [gaim-migrate @ 14316]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
37 fi
80faf1ca5280 [gaim-migrate @ 14316]
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
38 ])