When --enable-gold=no is used to configure gcc, we will see

configure: line 21572: test: =: unary operator expected

I checked in this patch to set install_gold_as_default to no for
--enable-gold=no.  Tested on Linux/x86-64.


H.J.
---
Index: ChangeLog
===================================================================
--- ChangeLog   (revision 214106)
+++ ChangeLog   (working copy)
@@ -1,3 +1,10 @@
+2014-08-18  H.J. Lu  <hongjiu...@intel.com>
+
+       PR other/62168
+       * configure.ac: Set install_gold_as_default to no for
+        --enable-gold=no.
+        * configure: Regenerated.
+
 2014-08-18 Roman Gareev  <gareevro...@gmail.com>
 
        * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
Index: configure
===================================================================
--- configure   (revision 214106)
+++ configure   (working copy)
@@ -21540,6 +21540,7 @@ if test "${enable_gold+set}" = set; then
    fi
    ;;
  no)
+   install_gold_as_default=no
    ;;
  *)
    as_fn_error "invalid --enable-gold argument" "$LINENO" 5
Index: configure.ac
===================================================================
--- configure.ac        (revision 214106)
+++ configure.ac        (working copy)
@@ -2094,6 +2094,7 @@ AC_ARG_ENABLE(gold,
    fi
    ;;
  no)
+   install_gold_as_default=no
    ;;
  *)
    AC_MSG_ERROR([invalid --enable-gold argument])

Reply via email to