Test mmap et ajout bigarray

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2864 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
master
Xavier Leroy 2000-02-25 13:43:57 +00:00
parent 38f64c3ce6
commit e448d52aa7
2 changed files with 11 additions and 1 deletions

View File

@ -196,3 +196,8 @@
/* Define HAS_LOCALE if you have the include file <locale.h> and the
setlocale() function. */
#define HAS_MMAP
/* Define HAS_MMAP if you have the include file <sys/mman.h> and the
functions mmap() and munmap(). */

7
configure vendored
View File

@ -483,7 +483,7 @@ done
# Configuration for the libraries
otherlibraries="unix str num dynlink"
otherlibraries="unix str num dynlink bigarray"
# For the Unix library
@ -671,6 +671,11 @@ if sh ./hasgot -ldl dlopen; then
dllib=-ldl
fi
if sh ./hasgot -i sys/mman.h && sh ./hasgot mmap munmap; then
echo "mmap() found."
echo "#define HAS_MMAP" >> s.h
fi
# Determine if the debugger is supported
if test "$has_sockets" = "yes"; then