Line 597... |
Line 597... |
CXXCPP
|
CXXCPP
|
HAVE_ZLIB_FALSE
|
HAVE_ZLIB_FALSE
|
HAVE_ZLIB_TRUE
|
HAVE_ZLIB_TRUE
|
LIBOBJS
|
LIBOBJS
|
LFS_CFLAGS
|
LFS_CFLAGS
|
|
GOLD_LDADD
|
|
GOLD_LDFLAGS
|
WARN_CXXFLAGS
|
WARN_CXXFLAGS
|
NO_WERROR
|
NO_WERROR
|
WARN_CFLAGS
|
WARN_CFLAGS
|
|
IFUNC_STATIC_FALSE
|
|
IFUNC_STATIC_TRUE
|
IFUNC_FALSE
|
IFUNC_FALSE
|
IFUNC_TRUE
|
IFUNC_TRUE
|
RANDOM_SEED_CFLAGS
|
RANDOM_SEED_CFLAGS
|
TLS_DESCRIPTORS_FALSE
|
TLS_DESCRIPTORS_FALSE
|
TLS_DESCRIPTORS_TRUE
|
TLS_DESCRIPTORS_TRUE
|
Line 669... |
Line 673... |
ac_ct_CC
|
ac_ct_CC
|
CPPFLAGS
|
CPPFLAGS
|
LDFLAGS
|
LDFLAGS
|
CFLAGS
|
CFLAGS
|
CC
|
CC
|
|
NM
|
TARGETOBJS
|
TARGETOBJS
|
DEFAULT_TARGET_X86_64_FALSE
|
DEFAULT_TARGET_X86_64_FALSE
|
DEFAULT_TARGET_X86_64_TRUE
|
DEFAULT_TARGET_X86_64_TRUE
|
DEFAULT_TARGET_SPARC_FALSE
|
DEFAULT_TARGET_SPARC_FALSE
|
DEFAULT_TARGET_SPARC_TRUE
|
DEFAULT_TARGET_SPARC_TRUE
|
Line 768... |
Line 773... |
enable_ld
|
enable_ld
|
enable_gold
|
enable_gold
|
enable_threads
|
enable_threads
|
enable_plugins
|
enable_plugins
|
enable_targets
|
enable_targets
|
|
with_lib_path
|
enable_dependency_tracking
|
enable_dependency_tracking
|
enable_nls
|
enable_nls
|
enable_werror
|
enable_werror
|
enable_build_warnings
|
enable_build_warnings
|
|
with_gold_ldflags
|
|
with_gold_ldadd
|
enable_maintainer_mode
|
enable_maintainer_mode
|
'
|
'
|
ac_precious_vars='build_alias
|
ac_precious_vars='build_alias
|
host_alias
|
host_alias
|
target_alias
|
target_alias
|
Line 1426... |
Line 1434... |
|
|
Optional Packages:
|
Optional Packages:
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
--with-sysroot=DIR search for usr/lib et al within DIR
|
--with-sysroot=DIR search for usr/lib et al within DIR
|
|
--with-lib-path=dir1:dir2... set default LIB_PATH
|
|
--with-gold-ldflags=FLAGS additional link flags for gold
|
|
--with-gold-ldadd=LIBS additional libraries for gold
|
|
|
Some influential environment variables:
|
Some influential environment variables:
|
CC C compiler command
|
CC C compiler command
|
CFLAGS C compiler flags
|
CFLAGS C compiler flags
|
LDFLAGS linker flags, e.g. -L if you have libraries in a
|
LDFLAGS linker flags, e.g. -L if you have libraries in a
|
Line 3524... |
Line 3535... |
cat >>confdefs.h <<_ACEOF
|
cat >>confdefs.h <<_ACEOF
|
#define GOLD_DEFAULT_OSABI $default_osabi
|
#define GOLD_DEFAULT_OSABI $default_osabi
|
_ACEOF
|
_ACEOF
|
|
|
|
|
|
|
|
# Check whether --with-lib-path was given.
|
|
if test "${with_lib_path+set}" = set; then :
|
|
withval=$with_lib_path; case "$withval" in
|
|
yes) LIB_PATH='"/lib:/usr/lib"' ;;
|
|
no) LIB_PATH='""' ;;
|
|
*) LIB_PATH='"'"$withval"'"' ;;
|
|
esac
|
|
else
|
|
LIB_PATH='"::DEFAULT::"'
|
|
fi
|
|
|
|
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define LIB_PATH $LIB_PATH
|
|
_ACEOF
|
|
|
|
if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then
|
|
|
|
$as_echo "#define NATIVE_LINKER 1" >>confdefs.h
|
|
|
|
fi
|
|
|
|
if test -n "$ac_tool_prefix"; then
|
|
# Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
|
|
set dummy ${ac_tool_prefix}nm; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if test "${ac_cv_prog_NM+set}" = set; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -n "$NM"; then
|
|
ac_cv_prog_NM="$NM" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
ac_cv_prog_NM="${ac_tool_prefix}nm"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
|
fi
|
|
NM=$ac_cv_prog_NM
|
|
if test -n "$NM"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
|
|
$as_echo "$NM" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
fi
|
|
if test -z "$ac_cv_prog_NM"; then
|
|
ac_ct_NM=$NM
|
|
# Extract the first word of "nm", so it can be a program name with args.
|
|
set dummy nm; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
if test -n "$ac_ct_NM"; then
|
|
ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
ac_cv_prog_ac_ct_NM="nm"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
|
fi
|
|
ac_ct_NM=$ac_cv_prog_ac_ct_NM
|
|
if test -n "$ac_ct_NM"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
|
|
$as_echo "$ac_ct_NM" >&6; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
if test "x$ac_ct_NM" = x; then
|
|
NM=""
|
|
else
|
|
case $cross_compiling:$ac_tool_warned in
|
|
yes:)
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
ac_tool_warned=yes ;;
|
|
esac
|
|
NM=$ac_ct_NM
|
|
fi
|
|
else
|
|
NM="$ac_cv_prog_NM"
|
|
fi
|
|
|
|
|
ac_ext=c
|
ac_ext=c
|
ac_cpp='$CPP $CPPFLAGS'
|
ac_cpp='$CPP $CPPFLAGS'
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
Line 6379... |
Line 6506... |
# being built, providing a unique seed for each file.
|
# being built, providing a unique seed for each file.
|
RANDOM_SEED_CFLAGS=-frandom-seed=\$@
|
RANDOM_SEED_CFLAGS=-frandom-seed=\$@
|
fi
|
fi
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.11" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc ifunc support" >&5
|
$as_echo_n "checking for glibc >= 2.11... " >&6; }
|
$as_echo_n "checking for glibc ifunc support... " >&6; }
|
if test "${gold_cv_lib_glibc2_11+set}" = set; then :
|
if test "${gold_cv_lib_glibc_ifunc+set}" = set; then :
|
$as_echo_n "(cached) " >&6
|
$as_echo_n "(cached) " >&6
|
else
|
else
|
|
save_LDFLAGS="$LDFLAGS"
|
|
LDFLAGS="$LDFLAGS -static"
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
/* end confdefs.h. */
|
/* end confdefs.h. */
|
|
|
#include
|
#include
|
#if !defined __GLIBC__
|
#if !defined __GLIBC__
|
error
|
error
|
#elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 11)
|
#elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 11)
|
error
|
error
|
#endif
|
#endif
|
__asm__(".type foo, %gnu_indirect_function");
|
void func (void) { }
|
|
void invoke (void);
|
|
__asm__(".type invoke, %gnu_indirect_function");
|
|
typedef void (*funcptr) (void);
|
|
funcptr dispatch (void) __asm__ ("invoke");
|
|
funcptr dispatch (void) { return &func; }
|
|
int
|
|
main ()
|
|
{
|
|
invoke();
|
|
;
|
|
return 0;
|
|
}
|
|
|
_ACEOF
|
_ACEOF
|
if ac_fn_c_try_compile "$LINENO"; then :
|
if ac_fn_c_try_link "$LINENO"; then :
|
gold_cv_lib_glibc2_11=yes
|
|
|
if ${NM} conftest$EXEEXT | grep "__rela\?_iplt_start" >/dev/null 2>&1; then
|
|
gold_cv_lib_glibc_ifunc=both
|
else
|
else
|
gold_cv_lib_glibc2_11=no
|
gold_cv_lib_glibc_ifunc=dyn
|
fi
|
fi
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
else
|
|
gold_cv_lib_glibc_ifunc=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LDFLAGS="$save_LDFLAGS"
|
fi
|
fi
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc2_11" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc_ifunc" >&5
|
$as_echo "$gold_cv_lib_glibc2_11" >&6; }
|
$as_echo "$gold_cv_lib_glibc_ifunc" >&6; }
|
|
|
if test "$gold_cv_lib_glibc2_11" = "yes"; then
|
if test "$gold_cv_lib_glibc_ifunc" != "no"; then
|
IFUNC_TRUE=
|
IFUNC_TRUE=
|
IFUNC_FALSE='#'
|
IFUNC_FALSE='#'
|
else
|
else
|
IFUNC_TRUE='#'
|
IFUNC_TRUE='#'
|
IFUNC_FALSE=
|
IFUNC_FALSE=
|
fi
|
fi
|
|
|
|
if test "$gold_cv_lib_glibc_ifunc" = "both"; then
|
|
IFUNC_STATIC_TRUE=
|
|
IFUNC_STATIC_FALSE='#'
|
|
else
|
|
IFUNC_STATIC_TRUE='#'
|
|
IFUNC_STATIC_FALSE=
|
|
fi
|
|
|
|
|
|
|
GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
|
GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
/* end confdefs.h. */
|
/* end confdefs.h. */
|
Line 6492... |
Line 6648... |
|
|
|
|
WARN_CXXFLAGS=`echo ${WARN_CFLAGS} | sed -e 's/-Wstrict-prototypes//' -e 's/-Wmissing-prototypes//' -e 's/-Wshadow//'`
|
WARN_CXXFLAGS=`echo ${WARN_CFLAGS} | sed -e 's/-Wstrict-prototypes//' -e 's/-Wmissing-prototypes//' -e 's/-Wshadow//'`
|
|
|
|
|
|
|
|
# Check whether --with-gold-ldflags was given.
|
|
if test "${with_gold_ldflags+set}" = set; then :
|
|
withval=$with_gold_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
|
|
GOLD_LDFLAGS=
|
|
else
|
|
GOLD_LDFLAGS=$withval
|
|
fi
|
|
else
|
|
GOLD_LDFLAGS=
|
|
fi
|
|
|
|
|
|
|
|
|
|
# Check whether --with-gold-ldadd was given.
|
|
if test "${with_gold_ldadd+set}" = set; then :
|
|
withval=$with_gold_ldadd; if test "$withval" = "no" -o "$withval" = "yes"; then
|
|
GOLD_LDADD=
|
|
else
|
|
GOLD_LDADD=$withval
|
|
fi
|
|
else
|
|
GOLD_LDADD=
|
|
fi
|
|
|
|
|
|
|
LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
|
LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
|
|
|
|
|
for ac_header in sys/mman.h
|
for ac_header in sys/mman.h
|
do :
|
do :
|
Line 7351... |
Line 7535... |
fi
|
fi
|
if test -z "${IFUNC_TRUE}" && test -z "${IFUNC_FALSE}"; then
|
if test -z "${IFUNC_TRUE}" && test -z "${IFUNC_FALSE}"; then
|
as_fn_error "conditional \"IFUNC\" was never defined.
|
as_fn_error "conditional \"IFUNC\" was never defined.
|
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
fi
|
fi
|
|
if test -z "${IFUNC_STATIC_TRUE}" && test -z "${IFUNC_STATIC_FALSE}"; then
|
|
as_fn_error "conditional \"IFUNC_STATIC\" was never defined.
|
|
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
|
fi
|
if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then
|
if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then
|
as_fn_error "conditional \"HAVE_ZLIB\" was never defined.
|
as_fn_error "conditional \"HAVE_ZLIB\" was never defined.
|
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
fi
|
fi
|
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
|
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
|