This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [vta->trunk] VTA merge
On Sep 3, 2009, Alexandre Oliva <aoliva@redhat.com> wrote:
> * configure.ac (--with-build-config): New. Set BUILD_CONFIG.
> Default to bootstrap-debug only if compare-debug works.
> * configure: Rebuilt.
Here's a followup patch that avoids noisy include warnings from make if
--with-build-config or --without-build-config are passed in the
configure command line, because config/yes.mk and config/no.mk do not
exist.
--with-build-config is essentially a nop, whereas --without-build-config
effectively disables the default build configuration.
I'll check it in once I'm done with testing.
for ChangeLog
from Alexandre Oliva <aoliva@redhat.com>
* configure.ac (with-build-config): Document. Handle without.
Handle missing argument.
* configure: Rebuilt.
Index: configure
===================================================================
--- configure.orig 2009-09-03 16:19:41.000000000 -0300
+++ configure 2009-09-03 16:25:19.000000000 -0300
@@ -769,6 +769,7 @@ enable_objc_gc
with_build_sysroot
with_debug_prefix_map
enable_bootstrap
+with_build_config
enable_serial_configure
with_build_time_tools
enable_maintainer_mode
@@ -1498,6 +1499,8 @@ Optional Packages:
use sysroot as the system root during the build
--with-debug-prefix-map='A=B C=D ...'
map A to B, C to D ... in debug information
+--with-build-config='NAME NAME2...'
+ Use config/NAME.mk build configuration
--with-build-time-tools=PATH
use given path to find target tools during the build
@@ -6583,6 +6586,17 @@ esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
+
+
+# Check whether --with-build-config was given.
+if test "${with_build_config+set}" = set; then :
+ withval=$with_build_config; case $with_build_config in
+ yes) with_build_config= ;;
+ no) with_build_config= BUILD_CONFIG= ;;
+ esac
+fi
+
+
if test "x${with_build_config}" != x; then
BUILD_CONFIG=$with_build_config
else
Index: configure.ac
===================================================================
--- configure.ac.orig 2009-09-03 16:19:41.000000000 -0300
+++ configure.ac 2009-09-03 16:25:16.000000000 -0300
@@ -2471,6 +2471,15 @@ case $enable_bootstrap in
esac
AC_MSG_CHECKING(for default BUILD_CONFIG)
+
+AC_ARG_WITH([build-config],
+ [--with-build-config='NAME NAME2...'
+ Use config/NAME.mk build configuration],
+ [case $with_build_config in
+ yes) with_build_config= ;;
+ no) with_build_config= BUILD_CONFIG= ;;
+ esac])
+
if test "x${with_build_config}" != x; then
BUILD_CONFIG=$with_build_config
else
--
Alexandre Oliva, freedom fighter http://FSFLA.org/~lxoliva/
You must be the change you wish to see in the world. -- Gandhi
Be Free! -- http://FSFLA.org/ FSF Latin America board member
Free Software Evangelist Red Hat Brazil Compiler Engineer