diff options
author | Nick Clifton <nickc@redhat.com> | 2010-11-23 13:39:57 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2010-11-23 13:39:57 +0000 |
commit | c77912127fd71c822df5b03a3190cddd19b1dd4f (patch) | |
tree | 41bb4118ae77e8f2b79d8b2870ecf911014a4a2a /gold/configure.ac | |
parent | ea976c60e229b7d4ccfbf4a735a09c407f104a20 (diff) | |
download | gdb-c77912127fd71c822df5b03a3190cddd19b1dd4f.zip gdb-c77912127fd71c822df5b03a3190cddd19b1dd4f.tar.gz gdb-c77912127fd71c822df5b03a3190cddd19b1dd4f.tar.bz2 |
* configure.ac: For --enable-gold, handle value `default' instead of
`both*'. New configure option --{en,dis}able-ld.
ld, gold/
* configure.ac: For --enable-gold, handle value `default' instead of
`both*'. Always install ld as ld.gold, install as ld if gold is
the default.
Diffstat (limited to 'gold/configure.ac')
-rw-r--r-- | gold/configure.ac | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/gold/configure.ac b/gold/configure.ac index 8bd80fa..2c50d97 100644 --- a/gold/configure.ac +++ b/gold/configure.ac @@ -41,27 +41,33 @@ AC_DEFINE_UNQUOTED(TARGET_SYSTEM_ROOT_RELOCATABLE, $sysroot_relocatable, dnl "install_as_default" is true if the linker to be installed as the dnl default linker, ld. dnl "installed_linker" is the installed gold linker name. -AC_ARG_ENABLE(gold, -[[ --enable-gold[=ARG] build gold [ARG={both}[/{gold,ld}]]]], + +default_ld= +AC_ARG_ENABLE(ld, +[[ --enable-ld[=ARG] build ld [ARG={default,yes,no}]]], [case "${enableval}" in - yes) - install_as_default=gold - installed_linker=ld - ;; - both/gold) - install_as_default=yes + default) + default_ld=ld.bfd + ;; +esac]) + +AC_ARG_ENABLE(gold, +[[ --enable-gold[=ARG] build gold [ARG={default,yes,no}]]], +[case "${enableval}" in + yes|default) + if test x${default_ld} = x; then + install_as_default=yes + fi installed_linker=ld.gold ;; - both|both/ld) - install_as_default=no - installed_linker=ld.gold + no) ;; *) AC_MSG_ERROR([invalid --enable-gold argument]) ;; esac], -[install_as_default=gold - installed_linker=ld]) +[install_as_default=no + installed_linker=ld.gold]) AC_SUBST(install_as_default) AC_SUBST(installed_linker) |