* configure.ac: For --enable-gold, handle value `default' instead of
[deliverable/binutils-gdb.git] / ld / configure
index 9ff8529c98a0e913b36afb7331b0d08aab9ea78c..088c721de775db83cfae6dede46b57d833384afc 100755 (executable)
@@ -1414,7 +1414,7 @@ Optional Features:
                          (and sometimes confusing) to the casual installer
   --enable-targets        alternative target configurations
   --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)
-  --enable-gold[=ARG]     build gold [ARG={both}[/{gold,ld}]]
+  --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
   --enable-got=<type>     GOT handling scheme (target, single, negative,
                           multigot)
   --enable-werror         treat compile warnings as errors
@@ -4179,11 +4179,11 @@ fi
 # Check whether --enable-gold was given.
 if test "${enable_gold+set}" = set; then :
   enableval=$enable_gold; case "${enableval}" in
yes|both/gold)
default)
    install_as_default=no
    installed_linker=ld.bfd
    ;;
both|both/ld)
yes|no)
    install_as_default=yes
    installed_linker=ld.bfd
    ;;
@@ -4192,8 +4192,8 @@ if test "${enable_gold+set}" = set; then :
    ;;
  esac
 else
-  install_as_default=ld
- installed_linker=ld
+  install_as_default=yes
+ installed_linker=ld.bfd
 fi
 
 
@@ -12919,6 +12919,22 @@ else
 fi
 done
 
+# We also support plugins on Windows (MinGW).
+if test x$enable_plugins = xno ; then
+  for ac_header in Windows.h
+do :
+  ac_fn_c_check_header_compile "$LINENO" "Windows.h" "ac_cv_header_Windows_h" "$ac_includes_default
+"
+if test "x$ac_cv_header_Windows_h" = x""yes; then :
+  cat >>confdefs.h <<_ACEOF
+#define HAVE_WINDOWS_H 1
+_ACEOF
+ enable_plugins=yes
+fi
+
+done
+
+fi
  if test x$enable_plugins = xyes; then
   ENABLE_PLUGINS_TRUE=
   ENABLE_PLUGINS_FALSE='#'
This page took 0.02678 seconds and 4 git commands to generate.