diff options
author | Chris Johns <chrisj@rtems.org> | 2013-03-05 19:43:43 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2013-03-05 19:43:43 +1100 |
commit | 0606a65718af9f93ad5f7dd1fb2175e7157b879e (patch) | |
tree | a8935164ddf6d240ad8e5a1625f1269d28cc30fe /source-builder/config/autoconf-2-1.cfg | |
parent | Clean up the per target C/C++ handling. (diff) | |
download | rtems-source-builder-0606a65718af9f93ad5f7dd1fb2175e7157b879e.tar.bz2 |
Clean path when building autoconf and automake.
Autoconf hard codes paths into itself. This change is a first
pass at allowing a clean environment to let automake build. The
ability to 'make install DESTDIR=xxx' autoconf then use it to
build automake needs a clean environment. The purpose is to
allow a prefix that needs root without building and packaging
when root.
Diffstat (limited to 'source-builder/config/autoconf-2-1.cfg')
-rw-r--r-- | source-builder/config/autoconf-2-1.cfg | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/source-builder/config/autoconf-2-1.cfg b/source-builder/config/autoconf-2-1.cfg index e56a526..c3d0dff 100644 --- a/source-builder/config/autoconf-2-1.cfg +++ b/source-builder/config/autoconf-2-1.cfg @@ -31,10 +31,15 @@ cd autoconf-%{autoconf_version} cd .. %build - export PATH="%{_bindir}:${PATH}" + if test "%{_internal_autotools}" == "yes"; then + export PATH="%{_bindir}:${PATH}" + else + export PATH=$SB_ORIG_PATH + fi + cd autoconf-%{autoconf_version} - if "%{_internal_autotools}" == "yes"; then + if test "%{_internal_autotools}" == "yes"; then ac_prefix=$SB_TMPPREFIX else ac_prefix=%{_prefix} |