with_gxx_libcxx_include_dir
with_cpp_install_dir
enable_generated_files_in_srcdir
-with_gnu_ld
with_ld
with_demangler_in_ld
with_dsymutil
-with_gnu_as
with_as
with_windres
enable_largefile
with_zstd
with_zstd_include
with_zstd_lib
+with_gnu_ld
enable_rpath
with_libiconv_prefix
with_libiconv_type
enable_libtool_lock
enable_darwin_at_rpath
with_darwin_extra_rpath
+with_gnu_as
enable_ld
enable_gold
with_plugin_ld
--with-cpp-install-dir=DIR
install the user visible C preprocessor in DIR
(relative to PREFIX) as well as PREFIX/bin
- --with-gnu-ld arrange to work with GNU ld
--with-ld arrange to use the specified ld (full pathname)
--with-demangler-in-ld try to use demangler in GNU ld
--with-dsymutil arrange to use the specified dsymutil (full
pathname)
- --with-gnu-as arrange to work with GNU as
--with-as arrange to use the specified as (full pathname)
--with-windres arrange to use the specified windres (full pathname)
--with-stack-clash-protection-guard-size=size
--with-darwin-extra-rpath=[ARG]
Specify a runpath directory, additional to those
provided by the compiler
+ --with-gnu-as arrange to work with GNU as
+ --with-gnu-ld arrange to work with GNU ld
--with-plugin-ld=[ARG] specify the plugin linker
--with-glibc-version=M.N
assume GCC used with glibc version M.N or later
# Find default linker
# -------------------
-# With GNU ld
-
-# Check whether --with-gnu-ld was given.
-if test "${with_gnu_ld+set}" = set; then :
- withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
-else
- gnu_ld_flag=no
-fi
-
-
case $target in
*darwin*)
ld64_flag=yes # Darwin can only use a ld64-compatible linker.
# Find default assembler
# ----------------------
-# With GNU as
-
-# Check whether --with-gnu-as was given.
-if test "${with_gnu_as+set}" = set; then :
- withval=$with_gnu_as; gas_flag="$with_gnu_as"
-else
- gas_flag=no
-fi
-
-
# Check whether --with-as was given.
if test "${with_as+set}" = set; then :
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 21976 "configure"
+#line 21956 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 22082 "configure"
+#line 22062 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
fi
fi
+# With GNU as
+
+# Check whether --with-gnu-as was given.
+if test "${with_gnu_as+set}" = set; then :
+ withval=$with_gnu_as; gas_flag="$with_gnu_as"
+else
+ if $gcc_cv_as --version 2>/dev/null | grep GNU > /dev/null; then
+ gas_flag=yes
+ else
+ gas_flag=no
+fi
+fi
+
+
ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
case "$ORIGINAL_AS_FOR_TARGET" in
;;
esac
-# Check if we are using GNU as if not already set.
-if test -z "$gas_flag"; then
- if $gcc_cv_as --version 2>/dev/null | grep GNU > /dev/null; then
- gas_flag=yes
- else
- gas_flag=no
- fi
-fi
-
if $gcc_cv_as --help 2>&1 | grep -- --fatal-warnings > /dev/null; then
fw_as_opt=--fatal-warnings
fi
fi
fi
+# With GNU ld
+
+# Check whether --with-gnu-ld was given.
+if test "${with_gnu_ld+set}" = set; then :
+ withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
+else
+ if $gcc_cv_ld --version 2>/dev/null | grep GNU > /dev/null; then
+ gnu_ld_flag=yes
+ else
+ gnu_ld_flag=no
+ fi
+fi
+
+
ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
# if the PLUGIN_LD is set ld-new, just have it as ld
_ACEOF
-# Check if we are using GNU ld if not already set.
-if test -z "$gnu_ld_flag"; then
- if $gcc_cv_ld --version 2>/dev/null | grep GNU > /dev/null; then
- gnu_ld_flag=yes
- else
- gnu_ld_flag=no
- fi
-fi
-
case "$target:$gnu_ld_flag" in
*-*-solaris2*:no)
# While Solaris ld has -m32/-m64 it usually determines the ELF class
# Find default linker
# -------------------
-# With GNU ld
-AC_ARG_WITH(gnu-ld,
-[AS_HELP_STRING([--with-gnu-ld], [arrange to work with GNU ld])],
-gnu_ld_flag="$with_gnu_ld",
-gnu_ld_flag=no)
-
case $target in
*darwin*)
ld64_flag=yes # Darwin can only use a ld64-compatible linker.
# Find default assembler
# ----------------------
-# With GNU as
-AC_ARG_WITH(gnu-as,
-[AS_HELP_STRING([--with-gnu-as], [arrange to work with GNU as])],
-gas_flag="$with_gnu_as",
-gas_flag=no)
-
AC_ARG_WITH(as,
[AS_HELP_STRING([--with-as], [arrange to use the specified as (full pathname)])],
DEFAULT_ASSEMBLER="$with_as")
AC_PATH_PROG(gcc_cv_as, $AS_FOR_TARGET)
fi])
+# With GNU as
+AC_ARG_WITH(gnu-as,
+[AS_HELP_STRING([--with-gnu-as], [arrange to work with GNU as])],
+gas_flag="$with_gnu_as",
+[if $gcc_cv_as --version 2>/dev/null | grep GNU > /dev/null; then
+ gas_flag=yes
+ else
+ gas_flag=no
+fi])
+
ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
AC_SUBST(ORIGINAL_AS_FOR_TARGET)
case "$ORIGINAL_AS_FOR_TARGET" in
*) AC_CONFIG_FILES(as:exec-tool.in, [chmod +x as]) ;;
esac
-# Check if we are using GNU as if not already set.
-if test -z "$gas_flag"; then
- if $gcc_cv_as --version 2>/dev/null | grep GNU > /dev/null; then
- gas_flag=yes
- else
- gas_flag=no
- fi
-fi
-
if $gcc_cv_as --help 2>&1 | grep -- --fatal-warnings > /dev/null; then
fw_as_opt=--fatal-warnings
fi
AC_PATH_PROG(gcc_cv_ld, $LD_FOR_TARGET)
fi])
+# With GNU ld
+AC_ARG_WITH(gnu-ld,
+[AS_HELP_STRING([--with-gnu-ld], [arrange to work with GNU ld])],
+gnu_ld_flag="$with_gnu_ld",
+[if $gcc_cv_ld --version 2>/dev/null | grep GNU > /dev/null; then
+ gnu_ld_flag=yes
+ else
+ gnu_ld_flag=no
+ fi])
+
ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
# if the PLUGIN_LD is set ld-new, just have it as ld
AC_SUBST(ORIGINAL_PLUGIN_LD_FOR_TARGET)
AC_DEFINE_UNQUOTED(PLUGIN_LD_SUFFIX, "$PLUGIN_LD_SUFFIX", [Specify plugin linker])
-# Check if we are using GNU ld if not already set.
-if test -z "$gnu_ld_flag"; then
- if $gcc_cv_ld --version 2>/dev/null | grep GNU > /dev/null; then
- gnu_ld_flag=yes
- else
- gnu_ld_flag=no
- fi
-fi
-
case "$target:$gnu_ld_flag" in
*-*-solaris2*:no)
# While Solaris ld has -m32/-m64 it usually determines the ELF class