This is the mail archive of the 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  <>

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

RCS file: /home/pme/Repositories/GCC/gcc/,v
retrieving revision 1.270
diff -u -p -r1.270
---	11 Feb 2004 17:31:24 -0000	1.270
+++	12 Feb 2004 22:41:57 -0000
@@ -1770,6 +1770,19 @@ done
+# 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
 # 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]