| 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
|---|
| 2 | <!DOCTYPE c:package [
|
|---|
| 3 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
|---|
| 4 | %general-entities;
|
|---|
| 5 | ]>
|
|---|
| 6 |
|
|---|
| 7 | <c:package xmlns:c="http://schema.cross-lfs.org/book"
|
|---|
| 8 | xmlns:xi="http://www.w3.org/2001/XInclude"
|
|---|
| 9 | id="ch-temp-system-m4" c:multibuild="false">
|
|---|
| 10 |
|
|---|
| 11 | <c:title>M4</c:title>
|
|---|
| 12 | <c:version>&m4-version;</c:version>
|
|---|
| 13 | <c:variant>temporary system</c:variant>
|
|---|
| 14 |
|
|---|
| 15 | <xi:include href="../../final-system/common/m4.xml"
|
|---|
| 16 | xpointer="xmlns(co=http://schema.cross-lfs.org/book)
|
|---|
| 17 | xpointer(/co:package/co:description[1])" />
|
|---|
| 18 |
|
|---|
| 19 | <c:install>
|
|---|
| 20 |
|
|---|
| 21 | <c:para>Configure can not properly determine the results of the
|
|---|
| 22 | following tests:</c:para>
|
|---|
| 23 |
|
|---|
| 24 | <c:command>cat > config.cache << EOF
|
|---|
| 25 | gl_cv_func_btowc_eof=yes
|
|---|
| 26 | gl_cv_func_mbrtowc_incomplete_state=yes
|
|---|
| 27 | gl_cv_func_mbrtowc_sanitycheck=yes
|
|---|
| 28 | gl_cv_func_mbrtowc_null_arg1=yes
|
|---|
| 29 | gl_cv_func_mbrtowc_null_arg2=yes
|
|---|
| 30 | gl_cv_func_mbrtowc_retval=yes
|
|---|
| 31 | gl_cv_func_mbrtowc_nul_retval=yes
|
|---|
| 32 | gl_cv_func_wcrtomb_retval=yes
|
|---|
| 33 | gl_cv_func_wctob_works=yes
|
|---|
| 34 | EOF</c:command>
|
|---|
| 35 |
|
|---|
| 36 | <c:para>Prepare M4 for compilation:</c:para>
|
|---|
| 37 |
|
|---|
| 38 | <c:command c:multilib="false">./configure --prefix=/tools \
|
|---|
| 39 | --build=${CLFS_HOST} --host=${CLFS_TARGET} \
|
|---|
| 40 | --cache-file=config.cache</c:command>
|
|---|
| 41 |
|
|---|
| 42 | <c:command c:multilib="true">CC="${CC} ${BUILD64}" ./configure --prefix=/tools \
|
|---|
| 43 | --build=${CLFS_HOST} --host=${CLFS_TARGET} \
|
|---|
| 44 | --cache-file=config.cache</c:command>
|
|---|
| 45 |
|
|---|
| 46 | <c:para>Compile the package:</c:para>
|
|---|
| 47 |
|
|---|
| 48 | <c:command>make</c:command>
|
|---|
| 49 |
|
|---|
| 50 | <c:para>Install the package:</c:para>
|
|---|
| 51 |
|
|---|
| 52 | <c:command>make install</c:command>
|
|---|
| 53 |
|
|---|
| 54 | </c:install>
|
|---|
| 55 |
|
|---|
| 56 | <c:contents c:ref="ch-system-m4" />
|
|---|
| 57 |
|
|---|
| 58 | </c:package>
|
|---|