Commit 7636d567 by Jim Wilson Committed by Jim Wilson

Fix irix5 build problem resulting from FSF merge.

	* acconfig.h (HAVE_INTTYPES_H): Undef.
	* configure.in (inttypes.h): Check for conflicts between sys/types.h
	and inttypes.h, and verify that intmax_t is defined.
	* config/mips/x-iris (CC, OPT, OLDCC): Comment out.
	* config/mips/x-iris3: Likewise.

From-SVN: r16325
parent 52be7f11
Tue Nov 4 12:30:28 1997 Jim Wilson <wilson@cygnus.com>
* acconfig.h (HAVE_INTTYPES_H): Undef.
* configure.in (inttypes.h): Check for conflicts between sys/types.h
and inttypes.h, and verify that intmax_t is defined.
* config/mips/x-iris (CC, OPT, OLDCC): Comment out.
* config/mips/x-iris3: Likewise.
Tue Nov 4 16:07:15 1997 Jeffrey A Law (law@cygnus.com) Tue Nov 4 16:07:15 1997 Jeffrey A Law (law@cygnus.com)
* alias.c (find_base_value): When copying arguments, return the * alias.c (find_base_value): When copying arguments, return the
......
/* Define if you have a working <inttypes.h> header file. */
#undef HAVE_INTTYPES_H
/* Whether malloc must be declared even if <stdlib.h> is included. */ /* Whether malloc must be declared even if <stdlib.h> is included. */
#undef NEED_DECLARATION_MALLOC #undef NEED_DECLARATION_MALLOC
......
/* config.in. Generated automatically from configure.in by autoheader. */ /* config.in. Generated automatically from configure.in by autoheader. */
/* Define if you have a working <inttypes.h> header file. */
#undef HAVE_INTTYPES_H
/* Whether malloc must be declared even if <stdlib.h> is included. */ /* Whether malloc must be declared even if <stdlib.h> is included. */
#undef NEED_DECLARATION_MALLOC #undef NEED_DECLARATION_MALLOC
...@@ -23,9 +26,6 @@ ...@@ -23,9 +26,6 @@
/* Define if you have the strtoul function. */ /* Define if you have the strtoul function. */
#undef HAVE_STRTOUL #undef HAVE_STRTOUL
/* Define if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H
/* Define if you have the <limits.h> header file. */ /* Define if you have the <limits.h> header file. */
#undef HAVE_LIMITS_H #undef HAVE_LIMITS_H
......
...@@ -9,9 +9,11 @@ ...@@ -9,9 +9,11 @@
# can use -O2. Down with fixed size tables! # can use -O2. Down with fixed size tables!
# The -cckr is to turn off strict ANSI checking. # The -cckr is to turn off strict ANSI checking.
CC = $(OLDCC) # These definitions are commented out because they cause trouble with
OPT = -O1 # autoconf. It is believed that they aren't needed anymore.
OLDCC = cc -Wf,-XNh2000,-XNg1500 -Olimit 3000 -cckr $(OPT) #CC = $(OLDCC)
#OPT = -O1
#OLDCC = cc -Wf,-XNh2000,-XNg1500 -Olimit 3000 -cckr $(OPT)
# The bison output files are machine-indep, # The bison output files are machine-indep,
# so different flags for a particular machine are not useful. # so different flags for a particular machine are not useful.
......
...@@ -12,9 +12,11 @@ ...@@ -12,9 +12,11 @@
# the -cckr option, so, lets try without it for all versions of Irix 3.x. # the -cckr option, so, lets try without it for all versions of Irix 3.x.
# The -cckr is to turn off strict ANSI checking. # The -cckr is to turn off strict ANSI checking.
CC = $(OLDCC) # These definitions are commented out because they cause trouble with
OPT = -O1 # autoconf. It is believed that they aren't needed anymore.
OLDCC = cc -Wf,-XNh2000,-XNg1500 -Olimit 3000 $(OPT) #CC = $(OLDCC)
#OPT = -O1
#OLDCC = cc -Wf,-XNh2000,-XNg1500 -Olimit 3000 $(OPT)
# The bison output files are machine-indep, # The bison output files are machine-indep,
# so different flags for a particular machine are not useful. # so different flags for a particular machine are not useful.
......
...@@ -137,7 +137,20 @@ EGCS_PROG_INSTALL ...@@ -137,7 +137,20 @@ EGCS_PROG_INSTALL
AC_PROG_CC AC_PROG_CC
AC_PROG_MAKE_SET AC_PROG_MAKE_SET
AC_CHECK_HEADERS(inttypes.h limits.h stddef.h string.h strings.h stdlib.h time.h unistd.h varargs.h sys/varargs.h) AC_CHECK_HEADERS(limits.h stddef.h string.h strings.h stdlib.h time.h unistd.h varargs.h sys/varargs.h)
# Use <inttypes.h> only if it exists,
# doesn't clash with <sys/types.h>, and declares intmax_t.
AC_MSG_CHECKING(for inttypes.h)
AC_CACHE_VAL(gcc_cv_header_inttypes_h,
[AC_TRY_COMPILE(
[#include <sys/types.h>
#include <inttypes.h>],
[intmax_t i = -1;],
[AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H)
gcc_cv_header_inttypes_h=yes],
gcc_cv_header_inttypes_h=no)])
AC_MSG_RESULT($gcc_cv_header_inttypes_h)
GCC_NEED_DECLARATION(malloc) GCC_NEED_DECLARATION(malloc)
GCC_NEED_DECLARATION(realloc) GCC_NEED_DECLARATION(realloc)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment