INSTALL: ajout section "Prerequisites".
Makefile: make install fait make installopt automatiquement. configure: test de rewinddir(), wait4(). git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@902 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02master
parent
72121d1414
commit
6300704e0e
16
INSTALL
16
INSTALL
|
@ -1,3 +1,17 @@
|
|||
PREREQUISITES
|
||||
|
||||
* Perl version 4 or 5 is required for building the Objective Caml
|
||||
native-code compiler.
|
||||
|
||||
* The GNU C compiler gcc is recommended, as the bytecode
|
||||
interpreter takes advantage of gcc-specific features to enhance
|
||||
performance. Versions 2.5.8, 2.6.3, 2.7.0 and 2.7.2 have all been
|
||||
tested at some point and appear to work.
|
||||
|
||||
* Under HP/UX, gcc, the GNU binutils, and GNU make are all required.
|
||||
The native cc, as, and make have major problems.
|
||||
|
||||
|
||||
INSTALLATION INSTRUCTIONS
|
||||
|
||||
1- Configure the system. From the top directory, do:
|
||||
|
@ -104,8 +118,6 @@ following commands (in the binary directory selected during autoconfiguration):
|
|||
ocamlcp the bytecode compiler in profiling mode
|
||||
|
||||
From the top directory, become superuser and do "make install".
|
||||
Also do "make installopt" to install the native-code compiler, if you
|
||||
have compiled it.
|
||||
|
||||
6- Installation is complete. Time to clean up. From the toplevel
|
||||
directory, do "make realclean".
|
||||
|
|
1
Makefile
1
Makefile
|
@ -183,6 +183,7 @@ install:
|
|||
cd tools; $(MAKE) install
|
||||
cd man; for i in *.m; do cp $$i $(MANDIR)/`basename $$i .m`.$(MANEXT); done
|
||||
for i in $(OTHERLIBRARIES); do (cd otherlibs/$$i; $(MAKE) install); done
|
||||
if test -f ocamlopt; then $(MAKE) installopt; else :; fi
|
||||
|
||||
# Installation of the native-code compiler
|
||||
installopt:
|
||||
|
|
|
@ -350,6 +350,11 @@ if sh hasgot -i dirent.h; then
|
|||
echo "#define HAS_DIRENT" >> s.h
|
||||
fi
|
||||
|
||||
if sh hasgot rewinddir; then
|
||||
echo "rewinddir() found."
|
||||
echo "#define HAS_REWINDDIR" >> s.h
|
||||
fi
|
||||
|
||||
if sh hasgot lockf; then
|
||||
echo "lockf() found."
|
||||
echo "#define HAS_LOCKF" >> s.h
|
||||
|
@ -416,14 +421,16 @@ if sh hasgot symlink readlink lstat; then
|
|||
echo "#define HAS_SYMLINK" >> s.h
|
||||
fi
|
||||
|
||||
if sh hasgot wait3; then
|
||||
echo "wait3() found."
|
||||
echo "#define HAS_WAIT3" >> s.h
|
||||
fi
|
||||
|
||||
if sh hasgot waitpid; then
|
||||
echo "waitpid() found."
|
||||
echo "#define HAS_WAITPID" >> s.h
|
||||
has_wait=yes
|
||||
fi
|
||||
|
||||
if sh hasgot wait4; then
|
||||
echo "wait4() found."
|
||||
echo "#define HAS_WAIT4" >> s.h
|
||||
has_wait=yes
|
||||
fi
|
||||
|
||||
if sh hasgot -i sys/param.h && sh runtest getgroups.c; then
|
||||
|
@ -494,8 +501,9 @@ echo "BIGNUM_ARCH=$bignum_arch" >> Makefile
|
|||
|
||||
if test "$has_select" = "yes" \
|
||||
&& test "$has_setitimer" = "yes" \
|
||||
&& test "$has_gettimeofday" = "yes"; then
|
||||
echo "Threads library supported"
|
||||
&& test "$has_gettimeofday" = "yes" \
|
||||
&& test "$has_wait" = "yes"; then
|
||||
echo "Threads library supported."
|
||||
otherlibraries="$otherlibraries threads"
|
||||
else
|
||||
echo "No threads library (missing system calls)"
|
||||
|
@ -547,7 +555,7 @@ done
|
|||
|
||||
if test "$x11_include" = "not found" || test "$x11_link" = "not found"
|
||||
then
|
||||
echo "X11 not found, the \"graph\" library will not be supported"
|
||||
echo "X11 not found, the \"graph\" library will not be supported."
|
||||
else
|
||||
echo "X11_INCLUDES=$x11_include" >> Makefile
|
||||
echo "X11_LINK=$x11_link" >> Makefile
|
||||
|
@ -563,7 +571,7 @@ then
|
|||
echo "NDBM library found."
|
||||
otherlibraries="$otherlibraries dbm"
|
||||
else
|
||||
echo "NDBM not found, the \"dbm\" library will not be supported"
|
||||
echo "NDBM not found, the \"dbm\" library will not be supported."
|
||||
fi
|
||||
|
||||
# Finish generated files
|
||||
|
|
Loading…
Reference in New Issue