diff options
author | Jun FURUSE / 古瀬 淳 <jun.furuse@gmail.com> | 2008-01-28 05:29:20 +0000 |
---|---|---|
committer | Jun FURUSE / 古瀬 淳 <jun.furuse@gmail.com> | 2008-01-28 05:29:20 +0000 |
commit | 3f4a98da0fbf8a87c674d6737d8c6cec7e8567e5 (patch) | |
tree | f5aa13505824d708414ece1f00219b811315c44a /configure | |
parent | 30f3fa2c5bc27f8c59930741aa1b6dd5a34a6b40 (diff) | |
download | ocaml-gcaml3090.tar.gz |
3.09.1 updategcaml3090
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/gcaml3090@8792 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 17 |
1 files changed, 13 insertions, 4 deletions
@@ -293,7 +293,10 @@ case "$bytecc,$host" in gcc*,x86_64-*-linux*) bytecccompopts="-fno-defer-pop $gcc_warnings" # Tell gcc that we can use 32-bit code addresses for threaded code - echo "#define ARCH_CODE32" >> m.h;; + # unless we are compiled for a shared library (-fPIC option) + echo "#ifndef __PIC__" >> m.h + echo "# define ARCH_CODE32" >> m.h + echo "#endif" >> m.h;; gcc*) bytecccompopts="-fno-defer-pop $gcc_warnings";; esac @@ -400,7 +403,7 @@ esac # Determine alignment constraints case "$host" in - sparc-*-*|hppa*-*-*) + sparc*-*-*|hppa*-*-*) # On Sparc V9 with certain versions of gcc, determination of double # alignment is not reliable (PR#1521), hence force it. # Same goes for hppa. @@ -431,7 +434,7 @@ esac if $int64_native; then case "$host" in - hppa*-*-*) + sparc*-*-*|hppa*-*-*) if test $2 = 8; then echo "64-bit integers can be word-aligned." echo "#undef ARCH_ALIGN_INT64" >> m.h @@ -722,6 +725,11 @@ fi # For the sys module +if sh ./hasgot getrusage; then + echo "getrusage() found." + echo "#define HAS_GETRUSAGE" >> s.h +fi + if sh ./hasgot times; then echo "times() found." echo "#define HAS_TIMES" >> s.h @@ -742,7 +750,8 @@ fi # Configuration for the libraries -otherlibraries="unix str num dynlink bigarray" +otherlibraries="unix str pcre num dynlink bigarray" +# JPF FIXME: no configure for pcre. # For the Unix library |