diff options
author | Xavier Leroy <xavier.leroy@inria.fr> | 1996-06-25 12:41:56 +0000 |
---|---|---|
committer | Xavier Leroy <xavier.leroy@inria.fr> | 1996-06-25 12:41:56 +0000 |
commit | e7b45c45db7a787d06ffecc41a20facb23d96bf4 (patch) | |
tree | a1432823aaef6e3708a1c0d9b64fc36a0a1d62e3 /configure | |
parent | 63ba4fa31b01507a07f0726f73ca5135af0e09e1 (diff) | |
download | ocaml-e7b45c45db7a787d06ffecc41a20facb23d96bf4.tar.gz |
Ajout _POSIX_SOURCE pour NextStep
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@908 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 17 |
1 files changed, 10 insertions, 7 deletions
@@ -159,8 +159,10 @@ bytecclinkopts="" if test $gcc = yes; then bytecccompopts="-fno-defer-pop -Wall" case "$host" in - *-*-nextstep*) bytecccompopts="$bytecccompopts -U__GNUC__";; - alpha-*-osf*) bytecclinkopts="-Xlinker -taso";; + *-*-nextstep*) + bytecccompopts="$bytecccompopts -U__GNUC__ -D_POSIX_SOURCE";; + alpha-*-osf*) + bytecclinkopts="-Xlinker -taso";; esac else $bytecc=cc @@ -198,11 +200,12 @@ case "$arch" in *) nativecc="$bytecc";; esac -case "$arch,$nativecc" in - alpha,cc) nativecccompopts=-std1;; - mips,cc) nativecccompopts=-std;; - *,gcc) nativecccompopts=-Wall;; - *) nativecccompopts='';; +case "$arch,$nativecc,$system" in + alpha,cc,*) nativecccompopts=-std1;; + mips,cc,*) nativecccompopts=-std;; + *,*,nextstep) nativecccompopts="-Wall -D_POSIX_SOURCE";; + *,gcc,*) nativecccompopts=-Wall;; + *) nativecccompopts='';; esac nativecclinkopts='' |