summaryrefslogtreecommitdiffstats
path: root/config/autoconf-2-1.cfg
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2012-11-05 10:40:16 +1100
committerChris Johns <chrisj@rtems.org>2012-11-05 10:40:16 +1100
commit7ff4c5b433034a822ff6e54cf7b16993438b6018 (patch)
tree12421058aa25005b86d62ff2d104295438127b4f /config/autoconf-2-1.cfg
parentFix the test check for none. Add optional support. (diff)
downloadrtems-source-builder-7ff4c5b433034a822ff6e54cf7b16993438b6018.tar.bz2
Clean up the configurations. Add internal/external autotools support.
Diffstat (limited to '')
-rw-r--r--config/autoconf-2-1.cfg24
1 files changed, 18 insertions, 6 deletions
diff --git a/config/autoconf-2-1.cfg b/config/autoconf-2-1.cfg
index 8843891..cfa0d56 100644
--- a/config/autoconf-2-1.cfg
+++ b/config/autoconf-2-1.cfg
@@ -3,21 +3,22 @@
#
# This configuration file configure's, make's and install's autoconf
#
-# Warning: this package is only for bootstrapping within a build.
-#
-
-%warning This autoconf build is for internal bootstraps, no package created
+Name: autoconf-%{autoconf_version}-%{_host}-%{release}
Summary: Autoconf v%{autoconf_version} for host %{_host}
Version: %{autoconf_version}
Release: %{release}
URL: http://www.gnu.org/software/autoconf/
BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
+%description
+Autoconf for host %{_host}.
+
#
# Source
#
Source0: ftp://ftp.gnu.org/gnu/autoconf/autoconf-%{autoconf_version}.tar.gz
+VersionControl0: git clone git://git.sv.gnu.org/autoconf
#
# Prepare the source code.
@@ -32,6 +33,12 @@ cd ..
export PATH="%{_bindir}:${PATH}"
cd autoconf-%{autoconf_version}
+ if "%{_internal_autotools}" == "yes"; then
+ ac_prefix=$SB_TMPPREFIX
+ else
+ ac_prefix=%{prefix}
+ fi
+
%if "%{_build}" != "%{_host}"
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
%endif
@@ -40,7 +47,7 @@ cd ..
--build=%{_build} --host=%{_host} \
--verbose --disable-nls \
--without-included-gettext \
- --prefix=$SB_TMPPREFIX
+ --prefix=${ac_prefix}
%{__make} %{?_smp_mflags} all
@@ -51,6 +58,11 @@ cd ..
rm -rf $SB_BUILD_ROOT
cd autoconf-%{autoconf_version}
- %{__make} install
+
+ if "%{_internal_autotools}" == "yes"; then
+ %{__make} install
+ else
+ %{__make} DESTDIR=$SB_BUILD_ROOT install
+ fi
cd ..