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 # This file adds the functions to build the CLooG library
2 # Copyright 2009 Yann E. MORIN
3 # Licensed under the GPL v2. See COPYING in the root of this package
6 do_cloog_extract() { :; }
9 # Overide functions depending on configuration
10 if [ "${CT_CLOOG}" = "y" ]; then
14 CT_GetFile "cloog-ppl-${CT_CLOOG_VERSION}" \
15 ftp://gcc.gnu.org/pub/gcc/infrastructure
22 CT_Extract "cloog-ppl-${CT_CLOOG_VERSION}"
24 # Version 0.15.3 has a dirname 'cloog-ppl' (with no version in it!)
25 # while versions 0.15.4 onward do have the version in the dirname.
26 case "${CT_CLOOG_VERSION}" in
28 *) _t="-${CT_CLOOG_VERSION}";;
30 CT_Pushd "${CT_SRC_DIR}/cloog-ppl${_t}"
31 CT_Patch nochdir "cloog-ppl" "${CT_CLOOG_VERSION}"
32 if [ "${CT_CLOOG_VERSION}" = "0.15.10" ]; then
41 # Version 0.15.3 has a dirname 'cloog-ppl' (with no version in it!)
42 # while versions 0.15.4 onward do have the version in the dirname.
43 case "${CT_CLOOG_VERSION}" in
45 *) _t="-${CT_CLOOG_VERSION}";;
48 mkdir -p "${CT_BUILD_DIR}/build-cloog-ppl"
49 cd "${CT_BUILD_DIR}/build-cloog-ppl"
51 CT_DoStep INFO "Installing CLooG/ppl"
53 CT_DoLog EXTRA "Configuring CLooG/ppl"
56 CFLAGS="${CT_CFLAGS_FOR_HOST}" \
58 "${CT_SRC_DIR}/cloog-ppl${_t}/configure" \
61 --prefix="${CT_COMPLIBS_DIR}" \
62 --with-gmp="${CT_COMPLIBS_DIR}" \
63 --with-ppl="${CT_COMPLIBS_DIR}" \
65 --with-host-libstdcxx='-lstdc++' \
69 CT_DoLog EXTRA "Building CLooG/ppl"
70 CT_DoExecLog ALL make ${JOBSFLAGS} libcloog.la
72 if [ "${CT_COMPLIBS_CHECK}" = "y" ]; then
73 CT_DoLog EXTRA "Checking CLooG/ppl"
74 CT_DoExecLog ALL make ${JOBSFLAGS} -s check
77 CT_DoLog EXTRA "Installing CLooG/ppl"
78 CT_DoExecLog ALL make install-libLTLIBRARIES install-pkgincludeHEADERS