~ubuntu-branches/ubuntu/hardy/autoconf-archive/hardy

« back to all changes in this revision

Viewing changes to htmldoc/ac_var_timezone_externals.html

  • Committer: Bazaar Package Importer
  • Author(s): Martin A. Godisch
  • Date: 2004-06-26 09:43:57 UTC
  • Revision ID: james.westby@ubuntu.com-20040626094357-3be3jwcz1vcdhpe8
Tags: upstream-20040616
ImportĀ upstreamĀ versionĀ 20040616

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 
2
"http://www.w3.org/TR/html4/strict.dtd">
 
3
 
 
4
<html lang="en">
 
5
<head>
 
6
  <title>Autoconf Macro: ac_var_timezone_externals</title>
 
7
  <link rel="stylesheet" type="text/css" href="ac-archive.css">
 
8
</head>
 
9
 
 
10
<body>
 
11
  <table summary="web navigation" style="width:100%;">
 
12
    <tbody>
 
13
      <tr>
 
14
        <td style="width:50%;" align="center">[<a href="index.html">Macro Index
 
15
        Page</a>]</td>
 
16
 
 
17
        <td style="width:50%;" align="center">[<a href=
 
18
        "../m4source/ac_var_timezone_externals.m4">Download M4 Source</a>]</td>
 
19
      </tr>
 
20
    </tbody>
 
21
  </table>
 
22
  <hr>
 
23
 
 
24
  <h1>ac_var_timezone_externals</h1>
 
25
 
 
26
  <h2>Synopsis</h2>
 
27
 
 
28
  <div class="indent">
 
29
    <p style="text-align:left; white-space:nowrap;">
 
30
    <code>AC_VAR_TIMEZONE_EXTERNALS</code></p>
 
31
  </div>
 
32
 
 
33
  <h2>Description</h2>
 
34
 
 
35
  <div class="indent">
 
36
    <p>Use instead of `AC_STRUCT_TIMEZONE' to determine whether the the
 
37
    external timezone variables `timezone', `altzone' and `daylight' exist,
 
38
    defining `HAVE_TIMEZONE', `HAVE_ALTZONE' and `HAVE_DAYLIGHT' respectively
 
39
    (as well as gaining the macros defined by `AC_STRUCT_TIMEZONE').</p>
 
40
  </div>
 
41
 
 
42
  <h2>Version</h2>
 
43
 
 
44
  <div class="indent">
 
45
    <p>1.3 (last modified: 2002-01-04)</p>
 
46
  </div>
 
47
 
 
48
  <h2>Author</h2>
 
49
 
 
50
  <div class="indent">
 
51
    <p>Mark R.Bannister &lt;markb@freedomware.co.uk&gt;</p>
 
52
  </div>
 
53
 
 
54
  <h2>M4 Source Code</h2>
 
55
 
 
56
  <div class="indent">
 
57
    <pre class="m4source">
 
58
AC_DEFUN([AC_VAR_TIMEZONE_EXTERNALS],
 
59
[  AC_REQUIRE([AC_STRUCT_TIMEZONE])dnl
 
60
   AC_CACHE_CHECK(for timezone external, mb_cv_var_timezone,
 
61
   [  AC_TRY_LINK([#include &lt;time.h&gt;], [return (int)timezone;],
 
62
         mb_cv_var_timezone=yes,
 
63
         mb_cv_var_timezone=no)
 
64
   ])
 
65
   AC_CACHE_CHECK(for altzone external, mb_cv_var_altzone,
 
66
   [  AC_TRY_LINK([#include &lt;time.h&gt;], [return (int)altzone;],
 
67
         mb_cv_var_altzone=yes,
 
68
         mb_cv_var_altzone=no)
 
69
   ])
 
70
   AC_CACHE_CHECK(for daylight external, mb_cv_var_daylight,
 
71
   [  AC_TRY_LINK([#include &lt;time.h&gt;], [return (int)daylight;],
 
72
         mb_cv_var_daylight=yes,
 
73
         mb_cv_var_daylight=no)
 
74
   ])
 
75
   if test $mb_cv_var_timezone = yes; then
 
76
      AC_DEFINE([HAVE_TIMEZONE], 1,
 
77
              [Define if you have the external `timezone' variable.])
 
78
   fi
 
79
   if test $mb_cv_var_altzone = yes; then
 
80
      AC_DEFINE([HAVE_ALTZONE], 1,
 
81
              [Define if you have the external `altzone' variable.])
 
82
   fi
 
83
   if test $mb_cv_var_daylight = yes; then
 
84
      AC_DEFINE([HAVE_DAYLIGHT], 1,
 
85
              [Define if you have the external `daylight' variable.])
 
86
   fi
 
87
])
 
88
</pre>
 
89
  </div>
 
90
 
 
91
  <h2>Copyright</h2>
 
92
 
 
93
  <div class="indent">
 
94
    <a href="COPYING.html">GNU General Public License</a> with this special
 
95
    <a href="COPYING-Exception.html">exception</a>.
 
96
  </div>
 
97
</body>
 
98
</html>