2010-01-12 20:09:30 +00:00
|
|
|
# Build script for autoconf
|
|
|
|
|
2018-11-19 23:17:37 +00:00
|
|
|
do_companion_tools_autoconf_get()
|
|
|
|
{
|
2017-05-30 05:32:38 +00:00
|
|
|
CT_Fetch AUTOCONF
|
2010-01-12 20:09:30 +00:00
|
|
|
}
|
|
|
|
|
2018-11-19 23:17:37 +00:00
|
|
|
do_companion_tools_autoconf_extract()
|
|
|
|
{
|
2017-05-30 05:32:38 +00:00
|
|
|
CT_ExtractPatch AUTOCONF
|
2010-01-12 20:09:30 +00:00
|
|
|
}
|
|
|
|
|
2018-11-19 23:17:37 +00:00
|
|
|
do_companion_tools_autoconf_for_build()
|
|
|
|
{
|
2017-01-24 02:48:22 +00:00
|
|
|
CT_DoStep INFO "Installing autoconf for build"
|
2016-11-29 00:55:22 +00:00
|
|
|
CT_mkdir_pushd "${CT_BUILD_DIR}/build-autoconf-build"
|
|
|
|
do_autoconf_backend host=${CT_BUILD} prefix="${CT_BUILD_COMPTOOLS_DIR}"
|
|
|
|
CT_Popd
|
|
|
|
CT_EndStep
|
|
|
|
}
|
|
|
|
|
2018-11-19 23:17:37 +00:00
|
|
|
do_companion_tools_autoconf_for_host()
|
|
|
|
{
|
2017-01-24 02:48:22 +00:00
|
|
|
CT_DoStep INFO "Installing autoconf for host"
|
2016-11-29 00:55:22 +00:00
|
|
|
CT_mkdir_pushd "${CT_BUILD_DIR}/build-autoconf-host"
|
|
|
|
do_autoconf_backend host=${CT_HOST} prefix="${CT_PREFIX_DIR}"
|
|
|
|
CT_Popd
|
|
|
|
CT_EndStep
|
|
|
|
}
|
|
|
|
|
2018-11-19 23:17:37 +00:00
|
|
|
do_autoconf_backend()
|
|
|
|
{
|
2016-11-29 00:55:22 +00:00
|
|
|
local host
|
|
|
|
local prefix
|
|
|
|
|
|
|
|
for arg in "$@"; do
|
|
|
|
eval "${arg// /\\ }"
|
|
|
|
done
|
|
|
|
|
2010-01-12 20:09:30 +00:00
|
|
|
# Ensure configure gets run using the CONFIG_SHELL as configure seems to
|
|
|
|
# have trouble when CONFIG_SHELL is set and /bin/sh isn't bash
|
|
|
|
# For reference see:
|
2010-12-18 21:55:56 +00:00
|
|
|
# http://www.gnu.org/software/autoconf/manual/autoconf.html#CONFIG_005fSHELL
|
2016-11-23 02:10:23 +00:00
|
|
|
CT_DoLog EXTRA "Configuring autoconf"
|
2017-01-25 08:06:28 +00:00
|
|
|
CT_DoExecLog CFG \
|
|
|
|
${CONFIG_SHELL} \
|
2017-05-30 05:32:38 +00:00
|
|
|
"${CT_SRC_DIR}/autoconf/configure" \
|
2016-11-29 00:55:22 +00:00
|
|
|
--host="${host}" \
|
|
|
|
--prefix="${prefix}"
|
2016-11-23 02:10:23 +00:00
|
|
|
|
|
|
|
CT_DoLog EXTRA "Building autoconf"
|
2016-11-21 07:50:17 +00:00
|
|
|
CT_DoExecLog ALL make
|
2016-11-23 02:10:23 +00:00
|
|
|
|
|
|
|
CT_DoLog EXTRA "Installing autoconf"
|
2016-11-21 07:50:17 +00:00
|
|
|
CT_DoExecLog ALL make install
|
2010-01-12 20:09:30 +00:00
|
|
|
}
|