Article View: gnu.utils.bug
Article #647autoconf: Doesn't catch `tzname' on RS/6000.
From: mycroft
Date: Thu, 27 Aug 1992 08:22
Date: Thu, 27 Aug 1992 08:22
26 lines
1111 bytes
1111 bytes
The test case `configure' tries to compile to check for `tzname' looks
like this:
#include <time.h>
#ifndef tzname /* For SGI. */
extern char **tzname;
#endif
main() { exit(0); } t() { atoi(*tzname); }
With some versions of the IBM C compiler, this generates an error:
"conftest.c", line 3.15: 1506-030 (S) Identifier tzname cannot be redeclared.
This is because previously, in <time.h>, `tzname' was defined as:
extern char *tzname[];
This generates a type mismatch. Defining the test case as:
#include <time.h>
#ifndef tzname /* For SGI. */
extern char *tzname[];
#endif
main() { exit(0); } t() { atoi(*tzname); }
solves the problem, on this machine.
Technical Details
Message-ID:
<9208270822.AA46247@hal.gnu.ai.mit.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!gnu.ai.mit.edu!mycroftShow Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!gnu.ai.mit.edu!mycroft From: mycroft@gnu.ai.mit.edu Subject: autoconf: Doesn't catch `tzname' on RS/6000. Message-ID: <9208270822.AA46247@hal.gnu.ai.mit.edu> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Thu, 27 Aug 1992 08:22:14 GMT Approved: bug-gnu-utils@prep.ai.mit.edu Lines: 28