diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 1994-12-22 17:16:22 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 1994-12-22 17:16:22 +0000 |
commit | 40dc28fcab765420947057434bfc99ef0412cb9a (patch) | |
tree | d5044a6bc5f867d45d1623ddfb407936bacc2920 | |
parent | ad6c5fa9975cb958d29a2c68bd2160c66760cea3 (diff) | |
download | gcc-40dc28fcab765420947057434bfc99ef0412cb9a.zip gcc-40dc28fcab765420947057434bfc99ef0412cb9a.tar.gz gcc-40dc28fcab765420947057434bfc99ef0412cb9a.tar.bz2 |
On a NeXT, <limits.h> is sometimes not in /usr/include, so look elsewhere
From-SVN: r8689
-rw-r--r-- | gcc/Makefile.in | 5 | ||||
-rw-r--r-- | gcc/config/i386/t-next | 3 | ||||
-rw-r--r-- | gcc/config/m68k/t-next | 3 |
3 files changed, 10 insertions, 1 deletions
diff --git a/gcc/Makefile.in b/gcc/Makefile.in index d3d24e3..47896b1 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -137,6 +137,9 @@ SYSTEM_HEADER_DIR = /usr/include # Control whether to run fixproto. STMP_FIXPROTO = stmp-fixproto +# Test to see whether <limits.h> exists in the system header files. +LIMITS_H_TEST = [ -f $(SYSTEM_HEADER_DIR)/limits.h ] + # There may be a premade insn-attrtab.c for this machine. # (You could rebuild it with genattrtab as usual, but it takes a long time.) # PREMADE_ATTRTAB is the file name of the file to use. @@ -679,7 +682,7 @@ enquire.o: $(srcdir)/enquire.c $(GCC_PASSES) stmp-int-hdrs # Build the version of limits.h that we will install. xlimits.h: glimits.h limitx.h limity.h - if [ -f $(SYSTEM_HEADER_DIR)/limits.h ] ; then \ + if $(LIMITS_H_TEST) ; then \ cat $(srcdir)/limitx.h $(srcdir)/glimits.h $(srcdir)/limity.h > tmp-xlimits.h; \ else \ cat $(srcdir)/glimits.h > tmp-xlimits.h; \ diff --git a/gcc/config/i386/t-next b/gcc/config/i386/t-next index 1992eb0..ec6373f 100644 --- a/gcc/config/i386/t-next +++ b/gcc/config/i386/t-next @@ -4,3 +4,6 @@ CROSS_LIBGCC1=libgcc1.null # Specify other dirs of system header files to be fixed. OTHER_FIXINCLUDES_DIRS= /LocalDeveloper/Headers + +# <limits.h> is sometimes in /usr/include/ansi/limits.h. +LIMITS_H_TEST = [ -f $(SYSTEM_HEADER_DIR)/limits.h -o -f $(SYSTEM_HEADER_DIR)/ansi/limits.h ] diff --git a/gcc/config/m68k/t-next b/gcc/config/m68k/t-next index 1992eb0..ec6373f 100644 --- a/gcc/config/m68k/t-next +++ b/gcc/config/m68k/t-next @@ -4,3 +4,6 @@ CROSS_LIBGCC1=libgcc1.null # Specify other dirs of system header files to be fixed. OTHER_FIXINCLUDES_DIRS= /LocalDeveloper/Headers + +# <limits.h> is sometimes in /usr/include/ansi/limits.h. +LIMITS_H_TEST = [ -f $(SYSTEM_HEADER_DIR)/limits.h -o -f $(SYSTEM_HEADER_DIR)/ansi/limits.h ] |