Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gesh
GHC
Commits
a4e86278
Commit
a4e86278
authored
26 years ago
by
sof
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 1999-02-08 11:16:17 by sof]
Added `timezone' config test.
parent
f09ea133
Loading
Loading
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
acconfig.h
+3
-0
3 additions, 0 deletions
acconfig.h
aclocal.m4
+24
-2
24 additions, 2 deletions
aclocal.m4
configure.in
+1
-0
1 addition, 0 deletions
configure.in
ghc/lib/std/cbits/timezone.h
+2
-2
2 additions, 2 deletions
ghc/lib/std/cbits/timezone.h
mk/config.h.in
+3
-0
3 additions, 0 deletions
mk/config.h.in
with
33 additions
and
4 deletions
acconfig.h
+
3
−
0
View file @
a4e86278
...
...
@@ -54,6 +54,9 @@
/* Define if compiler supports prototypes. */
#define HAVE_PROTOTYPES 0
/* Define if time.h or sys/time.h define the timezone variable */
#undef HAVE_TIMEZONE
/* Define if you have the WinExec function. */
#define HAVE_WINEXEC 0
...
...
This diff is collapsed.
Click to expand it.
aclocal.m4
+
24
−
2
View file @
a4e86278
dnl $Id: aclocal.m4,v 1.3
7
1999/0
1/26 09:59
:1
8
sof Exp $
dnl $Id: aclocal.m4,v 1.3
8
1999/0
2/08 11:16
:1
7
sof Exp $
dnl
dnl Extra autoconf macros for the Glasgow fptools
dnl
...
...
@@ -6,6 +6,28 @@ dnl To be a good autoconf citizen, names of local macros have
dnl prefixed with FPTOOLS_ to ensure we don't clash
dnl with any pre-supplied autoconf ones.
dnl
dnl Is timezone around? (in a header file)
dnl
AC_DEFUN(FPTOOLS_HAVE_TIMEZONE,
[AC_CACHE_CHECK([timezone], fptools_cv_have_timezone,
[AC_TRY_COMPILE([#if TIME_WITH_SYS_TIME
# include <sys/time.h>
# include <time.h>
#else
# if HAVE_SYS_TIME_H
# include <sys/time.h>
# else
# include <time.h>
# endif
#endif
], [return timezone;],
fptools_cv_have_timezone=yes, fptools_cv_have_timezone=no)])
if test "$fptools_cv_have_timezone" = yes; then
AC_DEFINE(HAVE_TIMEZONE)
fi
])
dnl
dnl Has timezone the type time_t or long (HP-UX 10.20 apparently
dnl has `long'..)
...
...
@@ -23,7 +45,7 @@ AC_DEFUN(FPTOOLS_TYPE_TIMEZONE,
# endif
#endif
extern time_t timezone;
extern time_t timezone;
],
[int i;], fptools_cv_type_timezone=time_t, fptools_cv_type_timezone=long)])
AC_DEFINE_UNQUOTED(TYPE_TIMEZONE, $fptools_cv_type_timezone)
...
...
This diff is collapsed.
Click to expand it.
configure.in
+
1
−
0
View file @
a4e86278
...
...
@@ -470,6 +470,7 @@ dnl ** how do we get a timezone name, and UTC offset ?
AC_STRUCT_TIMEZONE
dnl ** what's the type of timezone?
FPTOOLS_HAVE_TIMEZONE
FPTOOLS_TYPE_TIMEZONE
dnl ** do we have altzone?
...
...
This diff is collapsed.
Click to expand it.
ghc/lib/std/cbits/timezone.h
+
2
−
2
View file @
a4e86278
/*
* (c) The GRASP/AQUA Project, Glasgow University, 1994-1998
*
* $Id: timezone.h,v 1.
4
1999/02/0
5
1
4:34:05
sof Exp $
* $Id: timezone.h,v 1.
5
1999/02/0
8
1
1:16:20
sof Exp $
*
* Time-zone support header
*/
...
...
@@ -57,7 +57,7 @@ extern char *tzname[2];
# endif
/* ! HAVE_TZNAME */
/* Get the offset in secs from UTC, if (struct tm) doesn't supply it. */
#ifndef
cygwin32_TARGET_OS
#ifndef
HAVE_TIMEZONE
extern
TYPE_TIMEZONE
timezone
;
#endif
...
...
This diff is collapsed.
Click to expand it.
mk/config.h.in
+
3
−
0
View file @
a4e86278
...
...
@@ -105,6 +105,9 @@
/* Define if compiler supports prototypes. */
#define HAVE_PROTOTYPES 0
/* Define if time.h or sys/time.h define the timezone variable */
#undef HAVE_TIMEZONE
/* Define if you have the WinExec function. */
#define HAVE_WINEXEC 0
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment