1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/scripts/build/companion_tools/200-autoconf.sh Tue Jan 12 21:47:36 2010 +0000
1.3 @@ -0,0 +1,32 @@
1.4 +# Build script for autoconf
1.5 +
1.6 +CT_AUTOCONF_VERSION=2.65
1.7 +
1.8 +do_companion_tools_autoconf_get() {
1.9 + CT_GetFile "autoconf-${CT_AUTOCONF_VERSION}" \
1.10 + {ftp,http}://ftp.gnu.org/gnu/autoconf
1.11 +}
1.12 +
1.13 +do_companion_tools_autoconf_extract() {
1.14 + CT_Extract "autoconf-${CT_AUTOCONF_VERSION}"
1.15 + CT_Patch "autoconf-${CT_AUTOCONF_VERSION}"
1.16 +}
1.17 +
1.18 +do_companion_tools_autoconf_build() {
1.19 + CT_DoStep EXTRA "Installing autoconf"
1.20 + mkdir -p "${CT_BUILD_DIR}/build-autoconf"
1.21 + CT_Pushd "${CT_BUILD_DIR}/build-autoconf"
1.22 +
1.23 + # Ensure configure gets run using the CONFIG_SHELL as configure seems to
1.24 + # have trouble when CONFIG_SHELL is set and /bin/sh isn't bash
1.25 + # For reference see:
1.26 + # http://www.gnu.org/software/autoconf/manual/autoconf.html#CONFIG_005fSHEL
1.27 +
1.28 + CT_DoExecLog ALL ${CONFIG_SHELL} \
1.29 + "${CT_SRC_DIR}/autoconf-${CT_AUTOCONF_VERSION}/configure" \
1.30 + --prefix="${CT_TOOLS_OVERIDE_DIR}"
1.31 + CT_DoExecLog ALL make
1.32 + CT_DoExecLog ALL make install
1.33 + CT_Popd
1.34 + CT_EndStep
1.35 +}