diff options
author | Xavier Leroy <xavier.leroy@inria.fr> | 1998-06-23 13:39:54 +0000 |
---|---|---|
committer | Xavier Leroy <xavier.leroy@inria.fr> | 1998-06-23 13:39:54 +0000 |
commit | 840152fd2d0a26db041dc5e645f20eb67b157ae1 (patch) | |
tree | 23a8e042f026cb4d2b30f48fa9df495f46ee0d86 /configure | |
parent | 19d79cd6aca36ea74e50f3c608a188d81c79f6b3 (diff) | |
download | ocaml-840152fd2d0a26db041dc5e645f20eb67b157ae1.tar.gz |
Debut portage Cray T3E
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1992 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 55 |
1 files changed, 30 insertions, 25 deletions
@@ -187,32 +187,37 @@ esac echo "Checking the sizes of integers and pointers..." set `sh ./runtest sizes.c` -case "$1,$2,$3" in - 4,4,4) echo "OK, this is a regular 32 bit architecture." - echo "#undef ARCH_SIXTYFOUR" >> m.h;; - 4,8,8) echo "Wow! A 64 bit architecture!" - echo "#define ARCH_SIXTYFOUR" >> m.h - case "$bytecc,$host" in - gcc,alpha-*-osf*) echo "#define ARCH_CODE32" >> m.h;; - *) echo "#undef ARCH_CODE32" >> m.h;; - esac;; - 8,*,*) echo "Wow! A 64 bit architecture!" - echo "Unfortunately, Objective Caml does not handle the case" - echo "sizeof(int) = 8." - echo "Objective Caml won't run on this architecture." - exit 2;; - *,*,8) echo "Wow! A 64 bit architecture!" - echo "Unfortunately, Objective Caml cannot work in the case" - echo "sizeof(long) != sizeof(long *)." - echo "Objective Caml won't run on this architecture." - exit 2;; - *,*,*) echo "This architecture seems to be neither 32 bits nor 64 bits." - echo "Objective Caml won't run on this architecture." - exit 2;; - *) echo "Unable to compile the test program." - echo "Make sure the C compiler $cc is properly installed." - exit 2;; +case "$2,$3" in + 4,4) echo "OK, this is a regular 32 bit architecture." + echo "#undef ARCH_SIXTYFOUR" >> m.h;; + 8,8) echo "Wow! A 64 bit architecture!" + echo "#define ARCH_SIXTYFOUR" >> m.h + case "$bytecc,$host" in + gcc,alpha-*-osf*) echo "#define ARCH_CODE32" >> m.h;; + *) echo "#undef ARCH_CODE32" >> m.h;; + esac;; + *,8) echo "Wow! A 64 bit architecture!" + echo "Unfortunately, Objective Caml cannot work in the case" + echo "sizeof(long) != sizeof(long *)." + echo "Objective Caml won't run on this architecture." + exit 2;; + *,*) echo "This architecture seems to be neither 32 bits nor 64 bits." + echo "Objective Caml won't run on this architecture." + exit 2;; + *) echo "Unable to compile the test program." + echo "Make sure the C compiler $cc is properly installed." + exit 2;; esac +if test $1 != 4 && test $2 != 4 && test $4 != 4; then + echo "Sorry, we can't find a 32-bit integer type" + echo "(sizeof(short) = $4, sizeof(int) = $1, sizeof(long) = $2)" + echo "Objective Caml won't run on this architecture." + exit 2 +fi + +echo "#define SIZEOF_INT $1" >> m.h +echo "#define SIZEOF_LONG $2" >> m.h +echo "#define SIZEOF_SHORT $4" >> m.h # Determine endianness |