Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 91213ddcfbe7f54821d42c2d9e091326 > files > 3014

gap-system-packages-4.4.12-5mdv2010.0.i586.rpm

<html><head><title>[xgap] 3.4 Configuring and Compiling the C part</title></head>
<body text="#000000" bgcolor="#ffffff">
[<a href = "C003S000.htm">Up</a>] [<a href ="C003S003.htm">Previous</a>] [<a href ="C003S005.htm">Next</a>] [<a href = "theindex.htm">Index</a>]
<h1>3.4 Configuring and Compiling the C part</h1><p>
<p>
You have to change your current working directory to the ``xgap''
subdirectory. You do this by
<p>
<pre>
# cd xgap
</pre>
<p>
if your current working directory is the one, where you used
<var>unzoo</var>. There you invoke the <var>configure</var> script by:
<p>
<pre>
# ./configure
creating cache ./config.cache
checking for make... make
checking host system type... i686-unknown-linux2.0.34
checking target system type... i686-unknown-linux2.0.34
checking build system type... i686-unknown-linux2.0.34
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
...
updating cache ./config.cache
creating ./config.status
creating Makefile
creating xgap.sh
</pre>
<p>
<var>...</var> indicate omissions. 
This script tries to determine, which kind of operating system and
libraries you have installed and configures the source
accordingly. Normally this should produce some output but no error
messages. The last step of the script produces some makefiles which are
used to compile the code. You do this by typing
<p>
<pre>
# make
if test ! -d bin;  then mkdir bin;  fi
if test ! -d bin/i686-unknown-linux2.0.34-gcc; \ # line broken for this manual!
                then mkdir bin/i686-unknown-linux2.0.34-gcc;  fi
cp cnf/configure.out bin/i686-unknown-linux2.0.34-gcc/configure
( cd bin/i686-unknown-linux2.0.34-gcc ; CC=gcc \ # line broken for this manual!
                ./configure --target=i686-unknown-linux2.0.34  )
creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
...
creating ./config.status
creating Makefile
creating config.h
make[1]: Entering directory \                   # line broken for this manual!
     `/usr/local/lib/gap4/pkg/xgap/bin/i686-unknown-linux2.0.34-gcc'
gcc -I. -g -O2 -I/usr/X11R6/include  -o xcmds.o -c ../../src.x11/xcmds.c
gcc -I. -g -O2 -I/usr/X11R6/include  -o utils.o -c ../../src.x11/utils.c
...
make[1]: Leaving directory \                    # line broken for this manual!
     `/usr/local/lib/gap4/pkg/xgap/bin/i686-unknown-linux2.0.34-gcc'
</pre>
<p>
(a few lines were broken for typesetting purposes in this manual, the
position is marked by a backslash) 
<p>
Now all C sources are compiled and a binary executable is built. It is
stored in a subdirectory of the ``bin'' subdirectory in your ``xgap''
directory. The name of this location has something to do with your
installation. It could for example be
<p>
<pre>
bin/i686-unknown-linux2.0.34-gcc/xgap
</pre>
<p>
if you compile on a Linux system using the GNU-C-Compiler.
<p>
<p>
[<a href = "C003S000.htm">Up</a>] [<a href ="C003S003.htm">Previous</a>] [<a href ="C003S005.htm">Next</a>] [<a href = "theindex.htm">Index</a>]
<P>
<address>xgap manual<br>Mai 2003
</address></body></html>