complibs/ppl: update GMP location configuration argument for PPL v0.11 and later
'configure' for PPL 0.11 (and later) needs "--with-gmp-prefix" to
provide the location of the GMP toolkit; the previous switches were
"--with-libgmp-prefix" and "--with-libgmpxx-prefix".
The upstream log message is:
commit 08dfb6fea094f8c5a533575a3ea2095edce99a6d
Author: Roberto Bagnara <bagnara@cs.unipr.it>
Date: Sun Jul 12 21:39:46 2009 +0200
New configure option --with-gmp-prefix supersedes the (now removed)
options --with-libgmp-prefix and --with-libgmpxx-prefix.
Link: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=08dfb6fea094f8c5a533575a3ea2095edce99a6d
Since PPL's 'configure' ignores unknown switches, we use all three so we
don't have to conditionalize the ppl.sh build script itself.
Signed-Off-By: Anthony Foiani <anthony.foiani@gmail.com>
1 # Build script for libelf
4 do_libelf_extract() { :; }
6 do_libelf_target() { :; }
8 if [ "${CT_LIBELF}" = "y" -o "${CT_LIBELF_TARGET}" = "y" ]; then
11 # The server hosting libelf will return an "HTTP 300 : Multiple Choices"
12 # error code if we try to download a file that does not exists there.
13 # So we have to request the file with an explicit extension.
14 CT_GetFile "libelf-${CT_LIBELF_VERSION}" .tar.gz http://www.mr511.de/software/
18 CT_Extract "libelf-${CT_LIBELF_VERSION}"
19 CT_Patch "libelf" "${CT_LIBELF_VERSION}"
22 if [ "${CT_LIBELF}" = "y" ]; then
25 CT_DoStep INFO "Installing libelf"
26 mkdir -p "${CT_BUILD_DIR}/build-libelf"
27 CT_Pushd "${CT_BUILD_DIR}/build-libelf"
29 CT_DoLog EXTRA "Configuring libelf"
34 "${CT_SRC_DIR}/libelf-${CT_LIBELF_VERSION}/configure" \
37 --target=${CT_TARGET} \
38 --prefix="${CT_COMPLIBS_DIR}" \
41 --enable-extended-format \
45 CT_DoLog EXTRA "Building libelf"
48 CT_DoLog EXTRA "Installing libelf"
49 CT_DoExecLog ALL make install
57 if [ "${CT_LIBELF_TARGET}" = "y" ]; then
60 CT_DoStep INFO "Installing libelf for the target"
61 mkdir -p "${CT_BUILD_DIR}/build-libelf-for-target"
62 CT_Pushd "${CT_BUILD_DIR}/build-libelf-for-target"
64 CT_DoLog EXTRA "Configuring libelf"
66 CC="${CT_TARGET}-gcc" \
68 "${CT_SRC_DIR}/libelf-${CT_LIBELF_VERSION}/configure" \
71 --target=${CT_TARGET} \
76 --enable-extended-format \
79 CT_DoLog EXTRA "Building libelf"
82 CT_DoLog EXTRA "Installing libelf"
83 CT_DoExecLog ALL make instroot="${CT_SYSROOT_DIR}" install
91 fi # CT_LIBELF || CT_LIBELF_TARGET