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