2007-07-01 19:04:20 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2008-12-22 18:21:51 +00:00
|
|
|
VERSION=$( cat .version )
|
|
|
|
DATE=$( date +%Y%m%d )
|
2007-07-01 19:04:20 +00:00
|
|
|
|
2008-07-16 21:59:49 +00:00
|
|
|
# All absolutely required tools, one per line to ease diff.
|
|
|
|
# See function 'has_or_abort, below, for syntax
|
|
|
|
# - Hopefully, if gcc is present, then all associated tools will be
|
|
|
|
# - awk must be GNU awk
|
|
|
|
# - makeinfo for building docs, even if discarded later on
|
|
|
|
# - others obvious... :-/
|
2008-09-26 11:31:23 +00:00
|
|
|
#
|
|
|
|
# Format of a pattern to check for, one per line:
|
2009-01-18 15:08:28 +00:00
|
|
|
# pattern := var_name : tool_pattern OR tool_pattern
|
|
|
|
# tool_pattern := tool_test OR tool_pattern || tool_test
|
2008-12-22 18:21:51 +00:00
|
|
|
# tool_test := tool=regexp OR tool
|
|
|
|
# tool := basename of the tool OR absolute pathname to the tool
|
|
|
|
# regexp := valid grep(1) extended regular expression, $( tool --version)
|
|
|
|
# will be matched against this regexp.
|
2008-09-26 11:31:23 +00:00
|
|
|
#
|
2008-12-23 22:20:25 +00:00
|
|
|
# In case a pattern list is given (eg foo || bar || buz), then tests are performed
|
2008-09-26 11:31:23 +00:00
|
|
|
# from left to right, stopping at the first matching test (like the shell
|
|
|
|
# would parse 'foo || bar || buz' ).
|
|
|
|
#
|
|
|
|
# Examples:
|
2009-01-18 15:08:28 +00:00
|
|
|
# bash:bash=^GNU bash, version 3\.
|
|
|
|
# - if ${bash} is set and non-null, does nothing
|
|
|
|
# - else ensures that bash exists in the PATH, and that
|
|
|
|
# "$( "$( which bash )" --version |head -n 1 )"
|
2008-09-26 11:31:23 +00:00
|
|
|
# matches the regexp '^GNU bash, version 3\.'
|
2009-01-18 15:08:28 +00:00
|
|
|
# - if so, then sets bash="$( which bash )"
|
2008-12-23 22:20:25 +00:00
|
|
|
# autoconf=(GNU Autoconf) || autoconf2.50
|
2009-01-18 15:08:28 +00:00
|
|
|
# - does not look at an existing variable
|
|
|
|
# - ensures that:
|
|
|
|
# - 'autoconf' is to be found in the PATH, and that $( autoconf --version |head -n 1 )
|
2008-12-22 18:21:51 +00:00
|
|
|
# matches the regexp '(GNU Autoconf)' (which btw is the signature of
|
|
|
|
# autoconf >= 2.50),
|
2008-09-26 11:31:23 +00:00
|
|
|
# OR that:
|
|
|
|
# - 'autoconf2.50' is to be found in the PATH
|
|
|
|
#
|
2008-07-16 21:59:49 +00:00
|
|
|
TOOLS_TO_CHECK='
|
2009-01-18 15:08:28 +00:00
|
|
|
bash:bash=^GNU bash, version 3\.
|
2008-12-23 22:20:25 +00:00
|
|
|
cut
|
|
|
|
xargs
|
2009-01-18 15:08:28 +00:00
|
|
|
install:install=GNU coreutils
|
|
|
|
make:make=^GNU Make
|
2008-12-22 18:21:51 +00:00
|
|
|
gcc
|
2009-01-18 15:08:28 +00:00
|
|
|
awk:awk=^GNU Awk || gawk=^GNU Awk
|
2008-12-22 18:21:51 +00:00
|
|
|
bison
|
|
|
|
flex
|
|
|
|
makeinfo
|
2008-12-23 22:20:25 +00:00
|
|
|
automake=\(GNU automake\) (1\.[[:digit:]]{2,}\.|[2-9][[:digit:]]*\.)
|
|
|
|
libtool=\(GNU libtool\) (2[[:digit:]]*\.|1\.6[[:digit:]]*\.|1\.5\.[2-9][[:digit:]]+)
|
|
|
|
curl || wget
|
2008-12-22 18:21:51 +00:00
|
|
|
patch
|
|
|
|
tar
|
|
|
|
gzip
|
|
|
|
bzip2
|
2008-07-16 21:59:49 +00:00
|
|
|
'
|
|
|
|
|
2007-07-01 20:52:34 +00:00
|
|
|
PREFIX_DEFAULT=/usr/local
|
2007-07-01 19:04:20 +00:00
|
|
|
|
|
|
|
BINDIR_set=
|
|
|
|
LIBDIR_set=
|
|
|
|
DOCDIR_set=
|
|
|
|
MANDIR_set=
|
2007-07-22 17:44:27 +00:00
|
|
|
LOCAL_set=
|
2007-07-01 19:04:20 +00:00
|
|
|
|
2008-07-07 21:22:25 +00:00
|
|
|
do_quit=
|
2008-06-25 08:34:47 +00:00
|
|
|
|
2008-07-16 21:59:49 +00:00
|
|
|
# Simply print the error message, and exit. Obvious, he?
|
|
|
|
do_error() {
|
|
|
|
echo "${@}"
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
|
|
|
# A small function to test for existence of various tools
|
2008-09-26 11:31:23 +00:00
|
|
|
# Usage: has_or_abort test_pattern (see top of file, TOOLS_TO_CHECK, for
|
|
|
|
# complete pattern format)
|
2008-07-16 21:59:49 +00:00
|
|
|
has_or_abort() {
|
2009-01-18 15:08:28 +00:00
|
|
|
local save_IFS
|
|
|
|
local var_name
|
|
|
|
local var_value
|
|
|
|
local tool_pattern
|
|
|
|
local field
|
|
|
|
|
|
|
|
var_name="$( echo "${1}" |"${sed}" -r -e 's/^((([^=:]+):.+|[^:=]+)=.+|[^:=]+)$/\3/;' )"
|
|
|
|
field="${var_name:+2}"
|
|
|
|
field="${field:-1}"
|
|
|
|
tool_pattern="$( echo "${1}" |cut -d : -f ${field}- |"${sed}" -r -e 's/ *\|\| */\n/g;' )"
|
|
|
|
|
2008-12-22 18:21:51 +00:00
|
|
|
save_IFS="${IFS}"
|
2009-01-18 15:08:28 +00:00
|
|
|
# Set IFS to \n only
|
2008-12-23 22:20:25 +00:00
|
|
|
IFS='
|
|
|
|
'
|
|
|
|
for item in ${tool_pattern}; do
|
2008-12-22 18:21:51 +00:00
|
|
|
case "${item}" in
|
|
|
|
*=*)
|
|
|
|
tool="${item%%=*}"
|
|
|
|
regexp="${item#*=}"
|
|
|
|
;;
|
|
|
|
*) tool="${item}"
|
|
|
|
regexp=
|
|
|
|
;;
|
|
|
|
esac
|
2009-01-18 15:08:28 +00:00
|
|
|
|
2008-12-22 18:21:51 +00:00
|
|
|
printf "Checking for '${tool}'... "
|
2009-01-18 15:08:28 +00:00
|
|
|
if [ -n "${var_name}" ]; then
|
|
|
|
eval var_value='"${'"${var_name}"'}"'
|
|
|
|
if [ -n "${var_value}" ]; then
|
|
|
|
echo "${var_value} (cached)"
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
fi
|
2008-12-22 18:21:51 +00:00
|
|
|
where=$( which "${tool}" 2>/dev/null )
|
|
|
|
if [ -z "${where}" ]; then
|
|
|
|
echo "not found"
|
|
|
|
where=
|
|
|
|
continue
|
2008-12-23 22:20:25 +00:00
|
|
|
elif [ -n "${regexp}" ]; then
|
|
|
|
tool_version=$( ${tool} --version 2>&1 )
|
|
|
|
str=$( echo "${tool_version}" |"${grep}" -E "${regexp}" |head -n 1 )
|
|
|
|
if [ -z "${str}" ]; then
|
|
|
|
echo "not found"
|
|
|
|
where=""
|
|
|
|
continue
|
2008-12-22 18:21:51 +00:00
|
|
|
fi
|
|
|
|
fi
|
2008-12-23 22:20:25 +00:00
|
|
|
break
|
2009-01-18 15:08:28 +00:00
|
|
|
done
|
2008-12-23 22:20:25 +00:00
|
|
|
if [ -z "${where}" ]; then
|
|
|
|
for item in ${tool_pattern}; do
|
|
|
|
case "${item}" in
|
|
|
|
*=*)
|
|
|
|
tool="${item%%=*}"
|
|
|
|
regexp="${item#*=}"
|
|
|
|
;;
|
|
|
|
*) tool="${item}"
|
|
|
|
regexp=
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
echo " could not find '${tool}' matching regexp '${regexp}'"
|
|
|
|
done
|
|
|
|
echo "Either you are missing entirely the needed tool,"
|
|
|
|
echo "or the version you have is tool old."
|
2009-01-07 12:11:37 +00:00
|
|
|
# FORCE can be set in the environment
|
|
|
|
[ -z "${FORCE}" ] && do_error "Bailing out..."
|
2009-01-18 15:08:28 +00:00
|
|
|
else
|
|
|
|
echo "${where}"
|
|
|
|
if [ -n "${var_name}" ]; then
|
|
|
|
eval ${var_name}='"'"${where}"'"'
|
|
|
|
fi
|
2008-12-23 22:20:25 +00:00
|
|
|
fi
|
2008-12-22 18:21:51 +00:00
|
|
|
IFS="${save_IFS}"
|
2008-07-16 21:59:49 +00:00
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2008-07-07 21:22:25 +00:00
|
|
|
# Given an option string and the following argument,
|
|
|
|
# echoes the value of the option.
|
|
|
|
# If --var=val => echoes val and returns 0, meaning second arg was not consumed
|
|
|
|
# If --var val => echoes val and returns non null, meaning second arg was used
|
2007-07-01 19:04:20 +00:00
|
|
|
get_optval(){
|
|
|
|
case "$1" in
|
|
|
|
--*=?*)
|
2009-01-18 15:08:28 +00:00
|
|
|
echo "${1#*=}"
|
2008-12-22 18:21:51 +00:00
|
|
|
return 0
|
2007-07-01 19:04:20 +00:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo "${2}"
|
2008-12-22 18:21:51 +00:00
|
|
|
return 1
|
2007-07-01 19:04:20 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|
|
|
|
|
2008-07-07 21:22:25 +00:00
|
|
|
# The set_xxx functions will set the corresponding configuration variable
|
|
|
|
# They return 0 if second arg was not consumed, and non-zero if it was consumed.
|
2007-07-01 19:04:20 +00:00
|
|
|
set_prefix() {
|
2008-12-22 18:21:51 +00:00
|
|
|
PREFIX="$( get_optval "$1" "$2" )"
|
2007-07-01 19:04:20 +00:00
|
|
|
}
|
|
|
|
set_bindir() {
|
|
|
|
BINDIR_set=1
|
2008-12-22 18:21:51 +00:00
|
|
|
BINDIR="$( get_optval "$1" "$2" )"
|
2007-07-01 19:04:20 +00:00
|
|
|
}
|
|
|
|
set_libdir() {
|
|
|
|
LIBDIR_set=1
|
2008-12-22 18:21:51 +00:00
|
|
|
LIBDIR="$( get_optval "$1" "$2" )"
|
2007-07-01 19:04:20 +00:00
|
|
|
}
|
|
|
|
set_docdir() {
|
|
|
|
DOCDIR_set=1
|
2008-12-22 18:21:51 +00:00
|
|
|
DOCDIR="$( get_optval "$1" "$2" )"
|
2007-07-01 19:04:20 +00:00
|
|
|
}
|
|
|
|
set_mandir() {
|
|
|
|
MANDIR_set=1
|
2008-12-22 18:21:51 +00:00
|
|
|
MANDIR="$( get_optval "$1" "$2" )"
|
2007-07-01 19:04:20 +00:00
|
|
|
}
|
2009-01-18 15:08:28 +00:00
|
|
|
set_tool() {
|
|
|
|
local var_name="${1%%=*}"
|
|
|
|
var_name="${var_name#--with-}"
|
|
|
|
eval ${var_name}="\$( get_optval "$1" "$2" )"
|
2008-06-25 08:34:47 +00:00
|
|
|
}
|
|
|
|
|
2007-07-01 20:52:34 +00:00
|
|
|
do_help() {
|
|
|
|
cat <<__EOF__
|
2009-01-18 15:08:28 +00:00
|
|
|
\`configure' configures crosstool-NG-${VERSION} to adapt to many kind of systems.
|
2007-07-01 20:52:34 +00:00
|
|
|
|
|
|
|
USAGE: ./configure [OPTION]...
|
|
|
|
|
|
|
|
Defaults for the options are specified in brackets.
|
|
|
|
|
|
|
|
Configuration:
|
2008-12-22 18:21:51 +00:00
|
|
|
-h, --help display this help and exit
|
2008-06-25 08:38:51 +00:00
|
|
|
|
|
|
|
Installation directories:
|
2007-07-01 21:21:11 +00:00
|
|
|
--prefix=PREFIX install files in PREFIX [${PREFIX_DEFAULT}]
|
2007-07-22 17:44:27 +00:00
|
|
|
--local don't install, and use current directory
|
2007-07-01 20:52:34 +00:00
|
|
|
|
|
|
|
By default, \`make install' will install all the files in
|
|
|
|
\`${PREFIX_DEFAULT}/bin', \`${PREFIX_DEFAULT}/lib' etc. You can specify
|
|
|
|
an installation prefix other than \`${PREFIX_DEFAULT}' using \`--prefix',
|
|
|
|
for instance \`--prefix=\${HOME}'.
|
|
|
|
|
|
|
|
For better control, use the options below.
|
|
|
|
|
|
|
|
Fine tuning of the installation directories:
|
2008-07-18 21:03:04 +00:00
|
|
|
--bindir=DIR user executables [PREFIX/bin]
|
|
|
|
--libdir=DIR object code libraries [PREFIX/lib]
|
|
|
|
--docdir=DIR info documentation [PREFIX/share/doc]
|
|
|
|
--mandir=DIR man documentation [PREFIX/share/man]
|
2008-06-25 08:34:47 +00:00
|
|
|
|
|
|
|
Optional Features:
|
2009-01-18 15:08:28 +00:00
|
|
|
--with-install=PATH Specify the full PATH to GNU install
|
|
|
|
--with-make=PATH Specify the full PATH to GNU make
|
|
|
|
--with-grep=PATH Specify the full PATH to GNU grep
|
|
|
|
--with-sed=PATH Specify the full PATH to GNU sed
|
|
|
|
--with-awk=PATH Specify the full PATH to GNU awk
|
|
|
|
--with-bash=PATH Specify the full PATH to bash >= 3.0
|
2007-07-01 20:52:34 +00:00
|
|
|
__EOF__
|
|
|
|
}
|
|
|
|
|
2007-09-12 20:44:15 +00:00
|
|
|
#---------------------------------------------------------------------
|
|
|
|
# Set user's options
|
|
|
|
|
2007-07-01 19:04:20 +00:00
|
|
|
while [ $# -ne 0 ]; do
|
|
|
|
case "$1" in
|
2009-01-18 15:08:28 +00:00
|
|
|
--local) LOCAL_set=1; shift;;
|
2007-07-01 19:04:20 +00:00
|
|
|
--prefix*) set_prefix "$1" "$2" && shift || shift 2;;
|
|
|
|
--bindir*) set_bindir "$1" "$2" && shift || shift 2;;
|
|
|
|
--libdir*) set_libdir "$1" "$2" && shift || shift 2;;
|
|
|
|
--docdir*) set_docdir "$1" "$2" && shift || shift 2;;
|
|
|
|
--mandir*) set_mandir "$1" "$2" && shift || shift 2;;
|
2009-01-18 15:08:28 +00:00
|
|
|
--with-*) set_tool "$1" "$2" && shift || shift 2;;
|
2007-07-01 20:52:34 +00:00
|
|
|
--help|-h) do_help; exit 0;;
|
2009-01-18 15:08:28 +00:00
|
|
|
*) echo "Unrecognised option: '${1}'"; do_help; exit 1;;
|
2007-07-01 19:04:20 +00:00
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
2008-07-07 21:22:25 +00:00
|
|
|
# Use defaults
|
2007-07-01 21:21:11 +00:00
|
|
|
[ -z "${PREFIX}" ] && set_prefix "" "${PREFIX_DEFAULT}"
|
2008-07-07 21:22:25 +00:00
|
|
|
|
|
|
|
# Special case when installing locally
|
2007-07-22 17:44:27 +00:00
|
|
|
if [ "${LOCAL_set}" = "1" ]; then
|
2008-12-22 18:21:51 +00:00
|
|
|
set_prefix "" "$( pwd )"
|
|
|
|
set_bindir "" "$( pwd )"
|
|
|
|
set_libdir "" "$( pwd )"
|
|
|
|
set_docdir "" "$( pwd )/docs"
|
|
|
|
set_mandir "" "$( pwd )/docs"
|
2007-07-22 17:44:27 +00:00
|
|
|
fi
|
2007-07-01 20:52:34 +00:00
|
|
|
|
2007-09-12 20:44:15 +00:00
|
|
|
#---------------------------------------------------------------------
|
2009-01-18 15:08:28 +00:00
|
|
|
# Some sanity checks, now
|
|
|
|
|
|
|
|
# We check for grep and sed manually, because they are used in has_or_abort
|
|
|
|
printf "Checking for 'grep'... "
|
|
|
|
if [ -n "${grep}" ]; then
|
|
|
|
echo "${grep} (cached)"
|
|
|
|
else
|
|
|
|
grep="$( which grep 2>/dev/null )"
|
|
|
|
[ -z "${grep}" ] && do_error "not found"
|
|
|
|
echo "${grep}"
|
|
|
|
fi
|
|
|
|
printf "Checking whether '${grep}' supports -E... "
|
|
|
|
if echo 'foo' |"${grep}" -E 'foo' >/dev/null 2>&1; then
|
|
|
|
echo "yes"
|
|
|
|
else
|
|
|
|
do_error "no"
|
2008-12-23 22:20:25 +00:00
|
|
|
fi
|
|
|
|
|
2009-01-18 15:08:28 +00:00
|
|
|
printf "Checking for 'sed'... "
|
|
|
|
if [ -n "${sed}" ]; then
|
|
|
|
echo "${sed} (cached)"
|
|
|
|
else
|
|
|
|
sed="$( which sed 2>/dev/null )"
|
|
|
|
[ -z "${sed}" ] && do_error "not found"
|
|
|
|
echo "${sed}"
|
|
|
|
fi
|
|
|
|
printf "Checking wether '${sed}' supports -i and -e... "
|
|
|
|
touch .ct-ng.sed.test
|
|
|
|
if "${sed}" -r -i -e 's/foo/bar/' .ct-ng.sed.test >/dev/null 2>&1; then
|
|
|
|
rm -f .ct-ng.sed.test
|
|
|
|
echo "yes"
|
|
|
|
else
|
|
|
|
rm -f .ct-ng.sed.test
|
|
|
|
do_error "no"
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Check the existence of absolutely required tools
|
|
|
|
save_IFS="${IFS}"
|
|
|
|
IFS='
|
|
|
|
'
|
|
|
|
for tool in ${TOOLS_TO_CHECK}; do
|
|
|
|
has_or_abort "${tool}"
|
|
|
|
done
|
|
|
|
IFS="${save_IFS}"
|
|
|
|
|
2008-12-23 22:20:25 +00:00
|
|
|
#---------------------------------------------------------------------
|
|
|
|
# Compute the version string
|
2007-09-12 20:44:15 +00:00
|
|
|
|
2008-02-17 22:58:57 +00:00
|
|
|
# If this version is a svn snapshot, try to get the revision number
|
|
|
|
# If we can't get the revision number, use date
|
2008-07-07 21:22:25 +00:00
|
|
|
printf "Computing version string... "
|
2008-02-17 22:58:57 +00:00
|
|
|
case "${VERSION}" in
|
2008-12-22 18:21:51 +00:00
|
|
|
*+svn|svn)
|
|
|
|
REVISION="$( LC_ALL=C svnversion )"
|
|
|
|
case "${REVISION}" in
|
|
|
|
exported)
|
|
|
|
VERSION="${VERSION}_unknown@$( date +%Y%m%d.%H%M%S )";;
|
|
|
|
*)
|
|
|
|
URL="$( LC_ALL=C svn info 2>/dev/null \
|
|
|
|
|egrep 'URL: ' \
|
|
|
|
|cut -d ' ' -f 2- \
|
|
|
|
)"
|
2008-12-23 22:20:25 +00:00
|
|
|
ROOT="$( LC_ALL=C svn info 2>/dev/null \
|
|
|
|
|"${grep}" '^Repository Root: ' \
|
|
|
|
|cut -d ' ' -f 3- \
|
2008-12-22 18:21:51 +00:00
|
|
|
)"
|
|
|
|
VERSION="${VERSION}${URL#${ROOT}}@${REVISION}"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
# Arrange to have no / in the directory name, no need to create an
|
|
|
|
# arbitrarily deep directory structure
|
2008-12-23 22:20:25 +00:00
|
|
|
VERSION="$( echo "${VERSION}" |"${sed}" -r -e 's|/+|_|g;' )"
|
2008-04-17 19:21:32 +00:00
|
|
|
;;
|
2008-02-17 22:58:57 +00:00
|
|
|
esac
|
2008-06-11 20:40:38 +00:00
|
|
|
echo "${VERSION}"
|
2008-02-17 22:58:57 +00:00
|
|
|
|
2008-12-23 22:20:25 +00:00
|
|
|
#---------------------------------------------------------------------
|
|
|
|
# Compute and check install paths
|
|
|
|
|
2008-06-25 08:34:47 +00:00
|
|
|
# Now we have the version string, we can build up the paths
|
2008-06-11 21:45:57 +00:00
|
|
|
[ -z "${BINDIR_set}" ] && BINDIR="${PREFIX}/bin"
|
|
|
|
[ -z "${LIBDIR_set}" ] && LIBDIR="${PREFIX}/lib/ct-ng-${VERSION}"
|
|
|
|
[ -z "${DOCDIR_set}" ] && DOCDIR="${PREFIX}/share/doc/ct-ng-${VERSION}"
|
|
|
|
[ -z "${MANDIR_set}" ] && MANDIR="${PREFIX}/share/man/man1"
|
|
|
|
|
2008-11-16 21:55:46 +00:00
|
|
|
# Check that install PATHs are absolute
|
|
|
|
for p in BIN LIB DOC MAN; do
|
2008-12-22 18:21:51 +00:00
|
|
|
var="${p}DIR"
|
|
|
|
eval v='"${'"${var}"'}"'
|
|
|
|
case "${v}" in
|
|
|
|
/*) ;;
|
|
|
|
*) do_error "'${var}' is not an absolute path: '${v}'"
|
|
|
|
esac
|
2008-11-16 21:55:46 +00:00
|
|
|
done
|
|
|
|
|
2008-12-23 22:20:25 +00:00
|
|
|
#---------------------------------------------------------------------
|
|
|
|
# That's all, folks!
|
2008-06-25 08:34:47 +00:00
|
|
|
|
2008-07-07 21:22:25 +00:00
|
|
|
printf "Building up Makefile... "
|
2009-01-18 15:08:28 +00:00
|
|
|
var_list="grep
|
|
|
|
sed
|
|
|
|
$( printf "${TOOLS_TO_CHECK}" \
|
|
|
|
|"${sed}" -r -e 's/^((([^=:]+):.+|[^:=]+)=.+|[^:=]+)$/\3/;'
|
|
|
|
)"
|
|
|
|
var_sed="$( for var_name in ${var_list}; do
|
|
|
|
eval echo 's,@@${var_name}@@,${'"${var_name}"'},g'
|
|
|
|
done
|
|
|
|
)"
|
2008-12-23 22:20:25 +00:00
|
|
|
"${sed}" -r -e "s,@@BINDIR@@,${BINDIR},g
|
|
|
|
s,@@LIBDIR@@,${LIBDIR},g
|
|
|
|
s,@@DOCDIR@@,${DOCDIR},g
|
|
|
|
s,@@MANDIR@@,${MANDIR},g
|
|
|
|
s,@@VERSION@@,${VERSION},g
|
|
|
|
s,@@DATE@@,${DATE},g
|
2009-01-18 15:08:28 +00:00
|
|
|
${var_sed}
|
2008-12-23 22:20:25 +00:00
|
|
|
s,@@LOCAL@@,${LOCAL_set},g" Makefile.in >Makefile
|
2008-07-16 21:59:49 +00:00
|
|
|
echo "done"
|
2007-07-01 21:21:11 +00:00
|
|
|
|
|
|
|
cat <<__EOF__
|
2008-07-16 21:59:49 +00:00
|
|
|
|
2007-07-02 19:40:54 +00:00
|
|
|
crosstool-NG configured as follows:
|
2008-06-11 21:45:57 +00:00
|
|
|
PREFIX='${PREFIX}'
|
|
|
|
BINDIR='${BINDIR}'
|
|
|
|
LIBDIR='${LIBDIR}'
|
|
|
|
DOCDIR='${DOCDIR}'
|
|
|
|
MANDIR='${MANDIR}'
|
2008-12-23 22:20:25 +00:00
|
|
|
|
|
|
|
Now run:
|
|
|
|
make
|
|
|
|
make install
|
2007-07-01 21:21:11 +00:00
|
|
|
__EOF__
|