This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch, toplevel] --enable-multilib*S* is an easy typo to recognize...


...and it's been made more than once by a number of developers.  Why not
catch this case and pass the correctly spelled --enable/--disable switch
on to the various sub-configures?


2004-02-12  Phil Edwards  <phil@codesourcery.com>

	* configure.in:  Handle the common typo of --enable-multilibs.
	* configure:  Regenerated.


Index: configure.in
===================================================================
RCS file: /home/pme/Repositories/GCC/gcc/configure.in,v
retrieving revision 1.270
diff -u -p -r1.270 configure.in
--- configure.in	11 Feb 2004 17:31:24 -0000	1.270
+++ configure.in	12 Feb 2004 22:41:57 -0000
@@ -1770,6 +1770,19 @@ done
 serialization_dependencies=serdep.tmp
 AC_SUBST_FILE(serialization_dependencies)
 
+# Cope with reasonable typos.
+if test x${enable_multilibs} != x ; then
+  # This is tested elsewhere.
+  enable_multilib=${enable_multilibs}
+  # Fix the args passed to subconfigures.  We can't easily remove the
+  # misspelled version, but that's okay, they'll still be ignored.
+  if test $enable_multilib = yes; then
+    ac_configure_args="${ac_configure_args} --enable-multilib"
+  else
+    ac_configure_args="${ac_configure_args} --disable-multilib"
+  fi
+fi
+
 # Base args.  Strip norecursion, cache-file, srcdir, host, build,
 # target and nonopt.  These are the ones we might not want to pass
 # down to subconfigures.  Also strip program-prefix, program-suffix,


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]