mirror of git://gcc.gnu.org/git/gcc.git
Disable hwcaps on libgfortran
libgfortran: * configure.ac: Call GCC_CHECK_LINKER_HWCAP. * Makefile.am (libgfortran_la_LDFLAGS): Add HWCAP_LDFLAGS. * aclocal.m4: Regenerate. * configure: Regenerate. * Makefile.in: Regenerate. config: * hwcaps.m4: New file. libitm: * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove. * aclocal.m4: Regenerate. * configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of LIBITM_CHECK_LINKER_HWCAP. From-SVN: r243552
This commit is contained in:
parent
fba1216545
commit
66dbcf2d4d
|
|
@ -1,3 +1,7 @@
|
||||||
|
2016-12-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
|
||||||
|
|
||||||
|
* hwcaps.m4: New file.
|
||||||
|
|
||||||
2016-12-08 Alan Modra <amodra@gmail.com>
|
2016-12-08 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* elf.m4: Revert 2016-06-21 change.
|
* elf.m4: Revert 2016-06-21 change.
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,28 @@
|
||||||
|
dnl
|
||||||
|
dnl Check if the linker used supports linker maps to clear hardware
|
||||||
|
dnl capabilities. This is only supported on Solaris at the moment.
|
||||||
|
dnl
|
||||||
|
dnl Defines:
|
||||||
|
dnl HWCAP_LDFLAGS=-mclear-hwcap if possible
|
||||||
|
dnl LD (as a side effect of testing)
|
||||||
|
dnl
|
||||||
|
AC_DEFUN([GCC_CHECK_LINKER_HWCAP], [
|
||||||
|
test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS=''
|
||||||
|
AC_REQUIRE([AC_PROG_LD])
|
||||||
|
|
||||||
|
ac_save_LDFLAGS="$LDFLAGS"
|
||||||
|
LDFLAGS="$LFLAGS -mclear-hwcap"
|
||||||
|
|
||||||
|
AC_MSG_CHECKING([for -mclear-hwcap])
|
||||||
|
AC_TRY_LINK([], [return 0;], [ac_hwcap_ldflags=yes],[ac_hwcap_ldflags=no])
|
||||||
|
if test "$ac_hwcap_ldflags" = "yes"; then
|
||||||
|
HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS"
|
||||||
|
fi
|
||||||
|
AC_MSG_RESULT($ac_hwcap_ldflags)
|
||||||
|
|
||||||
|
LDFLAGS="$ac_save_LDFLAGS"
|
||||||
|
|
||||||
|
AC_SUBST(HWCAP_LDFLAGS)
|
||||||
|
|
||||||
|
AM_CONDITIONAL(HAVE_HWCAP, test $ac_hwcap_ldflags != no)
|
||||||
|
])
|
||||||
|
|
@ -1,3 +1,11 @@
|
||||||
|
2016-12-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
|
||||||
|
|
||||||
|
* configure.ac: Call GCC_CHECK_LINKER_HWCAP.
|
||||||
|
* Makefile.am (libgfortran_la_LDFLAGS): Add HWCAP_LDFLAGS.
|
||||||
|
* aclocal.m4: Regenerate.
|
||||||
|
* configure: Regenerate.
|
||||||
|
* Makefile.in: Regenerate.
|
||||||
|
|
||||||
2016-12-03 Thomas Koenig <tkoenig@gcc.gnu.org>
|
2016-12-03 Thomas Koenig <tkoenig@gcc.gnu.org>
|
||||||
|
|
||||||
PR fortran/78379
|
PR fortran/78379
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,7 @@ toolexeclib_DATA = libgfortran.spec
|
||||||
libgfortran_la_LINK = $(LINK) $(libgfortran_la_LDFLAGS)
|
libgfortran_la_LINK = $(LINK) $(libgfortran_la_LDFLAGS)
|
||||||
libgfortran_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` \
|
libgfortran_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` \
|
||||||
$(LTLDFLAGS) $(LIBQUADLIB) ../libbacktrace/libbacktrace.la \
|
$(LTLDFLAGS) $(LIBQUADLIB) ../libbacktrace/libbacktrace.la \
|
||||||
|
$(HWCAP_LDFLAGS) \
|
||||||
-lm $(extra_ldflags_libgfortran) \
|
-lm $(extra_ldflags_libgfortran) \
|
||||||
$(version_arg) -Wc,-shared-libgcc
|
$(version_arg) -Wc,-shared-libgcc
|
||||||
libgfortran_la_DEPENDENCIES = $(version_dep) libgfortran.spec $(LIBQUADLIB_DEP)
|
libgfortran_la_DEPENDENCIES = $(version_dep) libgfortran.spec $(LIBQUADLIB_DEP)
|
||||||
|
|
|
||||||
|
|
@ -127,6 +127,7 @@ DIST_COMMON = ChangeLog $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
|
||||||
$(srcdir)/libgfortran.spec.in $(srcdir)/../depcomp
|
$(srcdir)/libgfortran.spec.in $(srcdir)/../depcomp
|
||||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||||
am__aclocal_m4_deps = $(top_srcdir)/../config/depstand.m4 \
|
am__aclocal_m4_deps = $(top_srcdir)/../config/depstand.m4 \
|
||||||
|
$(top_srcdir)/../config/hwcaps.m4 \
|
||||||
$(top_srcdir)/../config/lead-dot.m4 \
|
$(top_srcdir)/../config/lead-dot.m4 \
|
||||||
$(top_srcdir)/../config/lthostflags.m4 \
|
$(top_srcdir)/../config/lthostflags.m4 \
|
||||||
$(top_srcdir)/../config/multi.m4 \
|
$(top_srcdir)/../config/multi.m4 \
|
||||||
|
|
@ -471,6 +472,7 @@ FCFLAGS = @FCFLAGS@
|
||||||
FGREP = @FGREP@
|
FGREP = @FGREP@
|
||||||
FPU_HOST_HEADER = @FPU_HOST_HEADER@
|
FPU_HOST_HEADER = @FPU_HOST_HEADER@
|
||||||
GREP = @GREP@
|
GREP = @GREP@
|
||||||
|
HWCAP_LDFLAGS = @HWCAP_LDFLAGS@
|
||||||
IEEE_FLAGS = @IEEE_FLAGS@
|
IEEE_FLAGS = @IEEE_FLAGS@
|
||||||
IEEE_SUPPORT = @IEEE_SUPPORT@
|
IEEE_SUPPORT = @IEEE_SUPPORT@
|
||||||
INSTALL = @INSTALL@
|
INSTALL = @INSTALL@
|
||||||
|
|
@ -599,6 +601,7 @@ toolexeclib_DATA = libgfortran.spec
|
||||||
libgfortran_la_LINK = $(LINK) $(libgfortran_la_LDFLAGS)
|
libgfortran_la_LINK = $(LINK) $(libgfortran_la_LDFLAGS)
|
||||||
libgfortran_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` \
|
libgfortran_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` \
|
||||||
$(LTLDFLAGS) $(LIBQUADLIB) ../libbacktrace/libbacktrace.la \
|
$(LTLDFLAGS) $(LIBQUADLIB) ../libbacktrace/libbacktrace.la \
|
||||||
|
$(HWCAP_LDFLAGS) \
|
||||||
-lm $(extra_ldflags_libgfortran) \
|
-lm $(extra_ldflags_libgfortran) \
|
||||||
$(version_arg) -Wc,-shared-libgcc
|
$(version_arg) -Wc,-shared-libgcc
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1024,6 +1024,7 @@ AC_SUBST([am__untar])
|
||||||
]) # _AM_PROG_TAR
|
]) # _AM_PROG_TAR
|
||||||
|
|
||||||
m4_include([../config/depstand.m4])
|
m4_include([../config/depstand.m4])
|
||||||
|
m4_include([../config/hwcaps.m4])
|
||||||
m4_include([../config/lead-dot.m4])
|
m4_include([../config/lead-dot.m4])
|
||||||
m4_include([../config/lthostflags.m4])
|
m4_include([../config/lthostflags.m4])
|
||||||
m4_include([../config/multi.m4])
|
m4_include([../config/multi.m4])
|
||||||
|
|
|
||||||
|
|
@ -633,13 +633,16 @@ LN_S
|
||||||
NM
|
NM
|
||||||
ac_ct_DUMPBIN
|
ac_ct_DUMPBIN
|
||||||
DUMPBIN
|
DUMPBIN
|
||||||
LD
|
|
||||||
FGREP
|
|
||||||
SED
|
|
||||||
LIBTOOL
|
LIBTOOL
|
||||||
RANLIB
|
RANLIB
|
||||||
AR
|
AR
|
||||||
AS
|
AS
|
||||||
|
HAVE_HWCAP_FALSE
|
||||||
|
HAVE_HWCAP_TRUE
|
||||||
|
HWCAP_LDFLAGS
|
||||||
|
LD
|
||||||
|
FGREP
|
||||||
|
SED
|
||||||
SECTION_FLAGS
|
SECTION_FLAGS
|
||||||
LIBGFOR_MINIMAL_FALSE
|
LIBGFOR_MINIMAL_FALSE
|
||||||
LIBGFOR_MINIMAL_TRUE
|
LIBGFOR_MINIMAL_TRUE
|
||||||
|
|
@ -768,11 +771,11 @@ enable_maintainer_mode
|
||||||
enable_multilib
|
enable_multilib
|
||||||
enable_dependency_tracking
|
enable_dependency_tracking
|
||||||
enable_symvers
|
enable_symvers
|
||||||
|
with_gnu_ld
|
||||||
enable_shared
|
enable_shared
|
||||||
enable_static
|
enable_static
|
||||||
with_pic
|
with_pic
|
||||||
enable_fast_install
|
enable_fast_install
|
||||||
with_gnu_ld
|
|
||||||
enable_libtool_lock
|
enable_libtool_lock
|
||||||
enable_largefile
|
enable_largefile
|
||||||
enable_libquadmath_support
|
enable_libquadmath_support
|
||||||
|
|
@ -1431,9 +1434,9 @@ 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-build-libsubdir=DIR Directory where to find libraries for build system
|
--with-build-libsubdir=DIR Directory where to find libraries for build system
|
||||||
|
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
|
||||||
--with-pic try to use only PIC/non-PIC objects [default=use
|
--with-pic try to use only PIC/non-PIC objects [default=use
|
||||||
both]
|
both]
|
||||||
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
|
|
||||||
|
|
||||||
Some influential environment variables:
|
Some influential environment variables:
|
||||||
CC C compiler command
|
CC C compiler command
|
||||||
|
|
@ -5942,6 +5945,389 @@ fi
|
||||||
$as_echo "$ac_fdsections" >&6; }
|
$as_echo "$ac_fdsections" >&6; }
|
||||||
|
|
||||||
|
|
||||||
|
# Check linker hardware capability support.
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
|
||||||
|
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
|
||||||
|
if test "${ac_cv_path_SED+set}" = set; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
|
||||||
|
for ac_i in 1 2 3 4 5 6 7; do
|
||||||
|
ac_script="$ac_script$as_nl$ac_script"
|
||||||
|
done
|
||||||
|
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
|
||||||
|
{ ac_script=; unset ac_script;}
|
||||||
|
if test -z "$SED"; then
|
||||||
|
ac_path_SED_found=false
|
||||||
|
# Loop through the user's path and test for each of PROGNAME-LIST
|
||||||
|
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_prog in sed gsed; do
|
||||||
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||||
|
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
|
||||||
|
{ test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
|
||||||
|
# Check for GNU ac_path_SED and select it if it is found.
|
||||||
|
# Check for GNU $ac_path_SED
|
||||||
|
case `"$ac_path_SED" --version 2>&1` in
|
||||||
|
*GNU*)
|
||||||
|
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
|
||||||
|
*)
|
||||||
|
ac_count=0
|
||||||
|
$as_echo_n 0123456789 >"conftest.in"
|
||||||
|
while :
|
||||||
|
do
|
||||||
|
cat "conftest.in" "conftest.in" >"conftest.tmp"
|
||||||
|
mv "conftest.tmp" "conftest.in"
|
||||||
|
cp "conftest.in" "conftest.nl"
|
||||||
|
$as_echo '' >> "conftest.nl"
|
||||||
|
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
||||||
|
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
||||||
|
as_fn_arith $ac_count + 1 && ac_count=$as_val
|
||||||
|
if test $ac_count -gt ${ac_path_SED_max-0}; then
|
||||||
|
# Best one so far, save it but keep looking for a better one
|
||||||
|
ac_cv_path_SED="$ac_path_SED"
|
||||||
|
ac_path_SED_max=$ac_count
|
||||||
|
fi
|
||||||
|
# 10*(2^10) chars as input seems more than enough
|
||||||
|
test $ac_count -gt 10 && break
|
||||||
|
done
|
||||||
|
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
$ac_path_SED_found && break 3
|
||||||
|
done
|
||||||
|
done
|
||||||
|
done
|
||||||
|
IFS=$as_save_IFS
|
||||||
|
if test -z "$ac_cv_path_SED"; then
|
||||||
|
as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
ac_cv_path_SED=$SED
|
||||||
|
fi
|
||||||
|
|
||||||
|
fi
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
|
||||||
|
$as_echo "$ac_cv_path_SED" >&6; }
|
||||||
|
SED="$ac_cv_path_SED"
|
||||||
|
rm -f conftest.sed
|
||||||
|
|
||||||
|
test -z "$SED" && SED=sed
|
||||||
|
Xsed="$SED -e 1s/^X//"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
|
||||||
|
$as_echo_n "checking for fgrep... " >&6; }
|
||||||
|
if test "${ac_cv_path_FGREP+set}" = set; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
|
||||||
|
then ac_cv_path_FGREP="$GREP -F"
|
||||||
|
else
|
||||||
|
if test -z "$FGREP"; then
|
||||||
|
ac_path_FGREP_found=false
|
||||||
|
# Loop through the user's path and test for each of PROGNAME-LIST
|
||||||
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
||||||
|
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
||||||
|
do
|
||||||
|
IFS=$as_save_IFS
|
||||||
|
test -z "$as_dir" && as_dir=.
|
||||||
|
for ac_prog in fgrep; do
|
||||||
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||||
|
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
|
||||||
|
{ test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
|
||||||
|
# Check for GNU ac_path_FGREP and select it if it is found.
|
||||||
|
# Check for GNU $ac_path_FGREP
|
||||||
|
case `"$ac_path_FGREP" --version 2>&1` in
|
||||||
|
*GNU*)
|
||||||
|
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
|
||||||
|
*)
|
||||||
|
ac_count=0
|
||||||
|
$as_echo_n 0123456789 >"conftest.in"
|
||||||
|
while :
|
||||||
|
do
|
||||||
|
cat "conftest.in" "conftest.in" >"conftest.tmp"
|
||||||
|
mv "conftest.tmp" "conftest.in"
|
||||||
|
cp "conftest.in" "conftest.nl"
|
||||||
|
$as_echo 'FGREP' >> "conftest.nl"
|
||||||
|
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
||||||
|
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
||||||
|
as_fn_arith $ac_count + 1 && ac_count=$as_val
|
||||||
|
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
|
||||||
|
# Best one so far, save it but keep looking for a better one
|
||||||
|
ac_cv_path_FGREP="$ac_path_FGREP"
|
||||||
|
ac_path_FGREP_max=$ac_count
|
||||||
|
fi
|
||||||
|
# 10*(2^10) chars as input seems more than enough
|
||||||
|
test $ac_count -gt 10 && break
|
||||||
|
done
|
||||||
|
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
$ac_path_FGREP_found && break 3
|
||||||
|
done
|
||||||
|
done
|
||||||
|
done
|
||||||
|
IFS=$as_save_IFS
|
||||||
|
if test -z "$ac_cv_path_FGREP"; then
|
||||||
|
as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
ac_cv_path_FGREP=$FGREP
|
||||||
|
fi
|
||||||
|
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
|
||||||
|
$as_echo "$ac_cv_path_FGREP" >&6; }
|
||||||
|
FGREP="$ac_cv_path_FGREP"
|
||||||
|
|
||||||
|
|
||||||
|
test -z "$GREP" && GREP=grep
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
||||||
|
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
|
||||||
|
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
|
||||||
|
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
|
||||||
|
$as_echo_n "checking how to print strings... " >&6; }
|
||||||
|
# Test print first, because it will be a builtin if present.
|
||||||
|
if test "X`print -r -- -n 2>/dev/null`" = X-n && \
|
||||||
|
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
|
||||||
|
ECHO='print -r --'
|
||||||
|
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
|
||||||
|
ECHO='printf %s\n'
|
||||||
|
else
|
||||||
|
# Use this function as a fallback that always works.
|
||||||
|
func_fallback_echo ()
|
||||||
|
{
|
||||||
|
eval 'cat <<_LTECHO_EOF
|
||||||
|
$1
|
||||||
|
_LTECHO_EOF'
|
||||||
|
}
|
||||||
|
ECHO='func_fallback_echo'
|
||||||
|
fi
|
||||||
|
|
||||||
|
# func_echo_all arg...
|
||||||
|
# Invoke $ECHO with all args, space-separated.
|
||||||
|
func_echo_all ()
|
||||||
|
{
|
||||||
|
$ECHO ""
|
||||||
|
}
|
||||||
|
|
||||||
|
case "$ECHO" in
|
||||||
|
printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
|
||||||
|
$as_echo "printf" >&6; } ;;
|
||||||
|
print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
|
||||||
|
$as_echo "print -r" >&6; } ;;
|
||||||
|
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
|
||||||
|
$as_echo "cat" >&6; } ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Check whether --with-gnu-ld was given.
|
||||||
|
if test "${with_gnu_ld+set}" = set; then :
|
||||||
|
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
|
||||||
|
else
|
||||||
|
with_gnu_ld=no
|
||||||
|
fi
|
||||||
|
|
||||||
|
ac_prog=ld
|
||||||
|
if test "$GCC" = yes; then
|
||||||
|
# Check if gcc -print-prog-name=ld gives a path.
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
|
||||||
|
$as_echo_n "checking for ld used by $CC... " >&6; }
|
||||||
|
case $host in
|
||||||
|
*-*-mingw*)
|
||||||
|
# gcc leaves a trailing carriage return which upsets mingw
|
||||||
|
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
||||||
|
*)
|
||||||
|
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
||||||
|
esac
|
||||||
|
case $ac_prog in
|
||||||
|
# Accept absolute paths.
|
||||||
|
[\\/]* | ?:[\\/]*)
|
||||||
|
re_direlt='/[^/][^/]*/\.\./'
|
||||||
|
# Canonicalize the pathname of ld
|
||||||
|
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
|
||||||
|
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
|
||||||
|
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
|
||||||
|
done
|
||||||
|
test -z "$LD" && LD="$ac_prog"
|
||||||
|
;;
|
||||||
|
"")
|
||||||
|
# If it fails, then pretend we aren't using GCC.
|
||||||
|
ac_prog=ld
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
# If it is relative, then search for the first ld in PATH.
|
||||||
|
with_gnu_ld=unknown
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
elif test "$with_gnu_ld" = yes; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
|
||||||
|
$as_echo_n "checking for GNU ld... " >&6; }
|
||||||
|
else
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
|
||||||
|
$as_echo_n "checking for non-GNU ld... " >&6; }
|
||||||
|
fi
|
||||||
|
if test "${lt_cv_path_LD+set}" = set; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
if test -z "$LD"; then
|
||||||
|
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
||||||
|
for ac_dir in $PATH; do
|
||||||
|
IFS="$lt_save_ifs"
|
||||||
|
test -z "$ac_dir" && ac_dir=.
|
||||||
|
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
||||||
|
lt_cv_path_LD="$ac_dir/$ac_prog"
|
||||||
|
# Check to see if the program is GNU ld. I'd rather use --version,
|
||||||
|
# but apparently some variants of GNU ld only accept -v.
|
||||||
|
# Break only if it was the GNU/non-GNU ld that we prefer.
|
||||||
|
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
|
||||||
|
*GNU* | *'with BFD'*)
|
||||||
|
test "$with_gnu_ld" != no && break
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
test "$with_gnu_ld" != yes && break
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
IFS="$lt_save_ifs"
|
||||||
|
else
|
||||||
|
lt_cv_path_LD="$LD" # Let the user override the test with a path.
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
LD="$lt_cv_path_LD"
|
||||||
|
if test -n "$LD"; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
|
||||||
|
$as_echo "$LD" >&6; }
|
||||||
|
else
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||||
|
$as_echo "no" >&6; }
|
||||||
|
fi
|
||||||
|
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
|
||||||
|
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
|
||||||
|
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
# I'd rather use --version here, but apparently some GNU lds only accept -v.
|
||||||
|
case `$LD -v 2>&1 </dev/null` in
|
||||||
|
*GNU* | *'with BFD'*)
|
||||||
|
lt_cv_prog_gnu_ld=yes
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
lt_cv_prog_gnu_ld=no
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
|
||||||
|
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
|
||||||
|
with_gnu_ld=$lt_cv_prog_gnu_ld
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS=''
|
||||||
|
|
||||||
|
|
||||||
|
ac_save_LDFLAGS="$LDFLAGS"
|
||||||
|
LDFLAGS="$LFLAGS -mclear-hwcap"
|
||||||
|
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mclear-hwcap" >&5
|
||||||
|
$as_echo_n "checking for -mclear-hwcap... " >&6; }
|
||||||
|
if test x$gcc_no_link = xyes; then
|
||||||
|
as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
|
||||||
|
fi
|
||||||
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
|
/* end confdefs.h. */
|
||||||
|
|
||||||
|
int
|
||||||
|
main ()
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
_ACEOF
|
||||||
|
if ac_fn_c_try_link "$LINENO"; then :
|
||||||
|
ac_hwcap_ldflags=yes
|
||||||
|
else
|
||||||
|
ac_hwcap_ldflags=no
|
||||||
|
fi
|
||||||
|
rm -f core conftest.err conftest.$ac_objext \
|
||||||
|
conftest$ac_exeext conftest.$ac_ext
|
||||||
|
if test "$ac_hwcap_ldflags" = "yes"; then
|
||||||
|
HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS"
|
||||||
|
fi
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5
|
||||||
|
$as_echo "$ac_hwcap_ldflags" >&6; }
|
||||||
|
|
||||||
|
LDFLAGS="$ac_save_LDFLAGS"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if test $ac_hwcap_ldflags != no; then
|
||||||
|
HAVE_HWCAP_TRUE=
|
||||||
|
HAVE_HWCAP_FALSE='#'
|
||||||
|
else
|
||||||
|
HAVE_HWCAP_TRUE='#'
|
||||||
|
HAVE_HWCAP_FALSE=
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Find other programs we need.
|
# Find other programs we need.
|
||||||
if test -n "$ac_tool_prefix"; then
|
if test -n "$ac_tool_prefix"; then
|
||||||
# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
|
# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
|
||||||
|
|
@ -6300,338 +6686,6 @@ delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
|
||||||
# Sed substitution to avoid accidental globbing in evaled expressions
|
# Sed substitution to avoid accidental globbing in evaled expressions
|
||||||
no_glob_subst='s/\*/\\\*/g'
|
no_glob_subst='s/\*/\\\*/g'
|
||||||
|
|
||||||
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
|
||||||
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
|
|
||||||
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
|
|
||||||
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
|
|
||||||
$as_echo_n "checking how to print strings... " >&6; }
|
|
||||||
# Test print first, because it will be a builtin if present.
|
|
||||||
if test "X`print -r -- -n 2>/dev/null`" = X-n && \
|
|
||||||
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
|
|
||||||
ECHO='print -r --'
|
|
||||||
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
|
|
||||||
ECHO='printf %s\n'
|
|
||||||
else
|
|
||||||
# Use this function as a fallback that always works.
|
|
||||||
func_fallback_echo ()
|
|
||||||
{
|
|
||||||
eval 'cat <<_LTECHO_EOF
|
|
||||||
$1
|
|
||||||
_LTECHO_EOF'
|
|
||||||
}
|
|
||||||
ECHO='func_fallback_echo'
|
|
||||||
fi
|
|
||||||
|
|
||||||
# func_echo_all arg...
|
|
||||||
# Invoke $ECHO with all args, space-separated.
|
|
||||||
func_echo_all ()
|
|
||||||
{
|
|
||||||
$ECHO ""
|
|
||||||
}
|
|
||||||
|
|
||||||
case "$ECHO" in
|
|
||||||
printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
|
|
||||||
$as_echo "printf" >&6; } ;;
|
|
||||||
print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
|
|
||||||
$as_echo "print -r" >&6; } ;;
|
|
||||||
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
|
|
||||||
$as_echo "cat" >&6; } ;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
|
|
||||||
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
|
|
||||||
if test "${ac_cv_path_SED+set}" = set; then :
|
|
||||||
$as_echo_n "(cached) " >&6
|
|
||||||
else
|
|
||||||
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
|
|
||||||
for ac_i in 1 2 3 4 5 6 7; do
|
|
||||||
ac_script="$ac_script$as_nl$ac_script"
|
|
||||||
done
|
|
||||||
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
|
|
||||||
{ ac_script=; unset ac_script;}
|
|
||||||
if test -z "$SED"; then
|
|
||||||
ac_path_SED_found=false
|
|
||||||
# Loop through the user's path and test for each of PROGNAME-LIST
|
|
||||||
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_prog in sed gsed; do
|
|
||||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
||||||
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
|
|
||||||
{ test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
|
|
||||||
# Check for GNU ac_path_SED and select it if it is found.
|
|
||||||
# Check for GNU $ac_path_SED
|
|
||||||
case `"$ac_path_SED" --version 2>&1` in
|
|
||||||
*GNU*)
|
|
||||||
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
|
|
||||||
*)
|
|
||||||
ac_count=0
|
|
||||||
$as_echo_n 0123456789 >"conftest.in"
|
|
||||||
while :
|
|
||||||
do
|
|
||||||
cat "conftest.in" "conftest.in" >"conftest.tmp"
|
|
||||||
mv "conftest.tmp" "conftest.in"
|
|
||||||
cp "conftest.in" "conftest.nl"
|
|
||||||
$as_echo '' >> "conftest.nl"
|
|
||||||
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
|
||||||
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
|
||||||
as_fn_arith $ac_count + 1 && ac_count=$as_val
|
|
||||||
if test $ac_count -gt ${ac_path_SED_max-0}; then
|
|
||||||
# Best one so far, save it but keep looking for a better one
|
|
||||||
ac_cv_path_SED="$ac_path_SED"
|
|
||||||
ac_path_SED_max=$ac_count
|
|
||||||
fi
|
|
||||||
# 10*(2^10) chars as input seems more than enough
|
|
||||||
test $ac_count -gt 10 && break
|
|
||||||
done
|
|
||||||
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
$ac_path_SED_found && break 3
|
|
||||||
done
|
|
||||||
done
|
|
||||||
done
|
|
||||||
IFS=$as_save_IFS
|
|
||||||
if test -z "$ac_cv_path_SED"; then
|
|
||||||
as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
ac_cv_path_SED=$SED
|
|
||||||
fi
|
|
||||||
|
|
||||||
fi
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
|
|
||||||
$as_echo "$ac_cv_path_SED" >&6; }
|
|
||||||
SED="$ac_cv_path_SED"
|
|
||||||
rm -f conftest.sed
|
|
||||||
|
|
||||||
test -z "$SED" && SED=sed
|
|
||||||
Xsed="$SED -e 1s/^X//"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
|
|
||||||
$as_echo_n "checking for fgrep... " >&6; }
|
|
||||||
if test "${ac_cv_path_FGREP+set}" = set; then :
|
|
||||||
$as_echo_n "(cached) " >&6
|
|
||||||
else
|
|
||||||
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
|
|
||||||
then ac_cv_path_FGREP="$GREP -F"
|
|
||||||
else
|
|
||||||
if test -z "$FGREP"; then
|
|
||||||
ac_path_FGREP_found=false
|
|
||||||
# Loop through the user's path and test for each of PROGNAME-LIST
|
|
||||||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
||||||
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
|
||||||
do
|
|
||||||
IFS=$as_save_IFS
|
|
||||||
test -z "$as_dir" && as_dir=.
|
|
||||||
for ac_prog in fgrep; do
|
|
||||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
||||||
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
|
|
||||||
{ test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
|
|
||||||
# Check for GNU ac_path_FGREP and select it if it is found.
|
|
||||||
# Check for GNU $ac_path_FGREP
|
|
||||||
case `"$ac_path_FGREP" --version 2>&1` in
|
|
||||||
*GNU*)
|
|
||||||
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
|
|
||||||
*)
|
|
||||||
ac_count=0
|
|
||||||
$as_echo_n 0123456789 >"conftest.in"
|
|
||||||
while :
|
|
||||||
do
|
|
||||||
cat "conftest.in" "conftest.in" >"conftest.tmp"
|
|
||||||
mv "conftest.tmp" "conftest.in"
|
|
||||||
cp "conftest.in" "conftest.nl"
|
|
||||||
$as_echo 'FGREP' >> "conftest.nl"
|
|
||||||
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
|
||||||
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
|
||||||
as_fn_arith $ac_count + 1 && ac_count=$as_val
|
|
||||||
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
|
|
||||||
# Best one so far, save it but keep looking for a better one
|
|
||||||
ac_cv_path_FGREP="$ac_path_FGREP"
|
|
||||||
ac_path_FGREP_max=$ac_count
|
|
||||||
fi
|
|
||||||
# 10*(2^10) chars as input seems more than enough
|
|
||||||
test $ac_count -gt 10 && break
|
|
||||||
done
|
|
||||||
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
$ac_path_FGREP_found && break 3
|
|
||||||
done
|
|
||||||
done
|
|
||||||
done
|
|
||||||
IFS=$as_save_IFS
|
|
||||||
if test -z "$ac_cv_path_FGREP"; then
|
|
||||||
as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
ac_cv_path_FGREP=$FGREP
|
|
||||||
fi
|
|
||||||
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
|
|
||||||
$as_echo "$ac_cv_path_FGREP" >&6; }
|
|
||||||
FGREP="$ac_cv_path_FGREP"
|
|
||||||
|
|
||||||
|
|
||||||
test -z "$GREP" && GREP=grep
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Check whether --with-gnu-ld was given.
|
|
||||||
if test "${with_gnu_ld+set}" = set; then :
|
|
||||||
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
|
|
||||||
else
|
|
||||||
with_gnu_ld=no
|
|
||||||
fi
|
|
||||||
|
|
||||||
ac_prog=ld
|
|
||||||
if test "$GCC" = yes; then
|
|
||||||
# Check if gcc -print-prog-name=ld gives a path.
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
|
|
||||||
$as_echo_n "checking for ld used by $CC... " >&6; }
|
|
||||||
case $host in
|
|
||||||
*-*-mingw*)
|
|
||||||
# gcc leaves a trailing carriage return which upsets mingw
|
|
||||||
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
|
||||||
*)
|
|
||||||
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
|
||||||
esac
|
|
||||||
case $ac_prog in
|
|
||||||
# Accept absolute paths.
|
|
||||||
[\\/]* | ?:[\\/]*)
|
|
||||||
re_direlt='/[^/][^/]*/\.\./'
|
|
||||||
# Canonicalize the pathname of ld
|
|
||||||
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
|
|
||||||
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
|
|
||||||
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
|
|
||||||
done
|
|
||||||
test -z "$LD" && LD="$ac_prog"
|
|
||||||
;;
|
|
||||||
"")
|
|
||||||
# If it fails, then pretend we aren't using GCC.
|
|
||||||
ac_prog=ld
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
# If it is relative, then search for the first ld in PATH.
|
|
||||||
with_gnu_ld=unknown
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
elif test "$with_gnu_ld" = yes; then
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
|
|
||||||
$as_echo_n "checking for GNU ld... " >&6; }
|
|
||||||
else
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
|
|
||||||
$as_echo_n "checking for non-GNU ld... " >&6; }
|
|
||||||
fi
|
|
||||||
if test "${lt_cv_path_LD+set}" = set; then :
|
|
||||||
$as_echo_n "(cached) " >&6
|
|
||||||
else
|
|
||||||
if test -z "$LD"; then
|
|
||||||
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
|
||||||
for ac_dir in $PATH; do
|
|
||||||
IFS="$lt_save_ifs"
|
|
||||||
test -z "$ac_dir" && ac_dir=.
|
|
||||||
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
|
||||||
lt_cv_path_LD="$ac_dir/$ac_prog"
|
|
||||||
# Check to see if the program is GNU ld. I'd rather use --version,
|
|
||||||
# but apparently some variants of GNU ld only accept -v.
|
|
||||||
# Break only if it was the GNU/non-GNU ld that we prefer.
|
|
||||||
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
|
|
||||||
*GNU* | *'with BFD'*)
|
|
||||||
test "$with_gnu_ld" != no && break
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
test "$with_gnu_ld" != yes && break
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
IFS="$lt_save_ifs"
|
|
||||||
else
|
|
||||||
lt_cv_path_LD="$LD" # Let the user override the test with a path.
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
LD="$lt_cv_path_LD"
|
|
||||||
if test -n "$LD"; then
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
|
|
||||||
$as_echo "$LD" >&6; }
|
|
||||||
else
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
||||||
$as_echo "no" >&6; }
|
|
||||||
fi
|
|
||||||
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
|
|
||||||
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
|
|
||||||
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
|
|
||||||
$as_echo_n "(cached) " >&6
|
|
||||||
else
|
|
||||||
# I'd rather use --version here, but apparently some GNU lds only accept -v.
|
|
||||||
case `$LD -v 2>&1 </dev/null` in
|
|
||||||
*GNU* | *'with BFD'*)
|
|
||||||
lt_cv_prog_gnu_ld=yes
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
lt_cv_prog_gnu_ld=no
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
|
|
||||||
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
|
|
||||||
with_gnu_ld=$lt_cv_prog_gnu_ld
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
|
||||||
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
|
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
|
||||||
if test "${lt_cv_path_NM+set}" = set; then :
|
if test "${lt_cv_path_NM+set}" = set; then :
|
||||||
|
|
@ -12363,7 +12417,7 @@ else
|
||||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||||
lt_status=$lt_dlunknown
|
lt_status=$lt_dlunknown
|
||||||
cat > conftest.$ac_ext <<_LT_EOF
|
cat > conftest.$ac_ext <<_LT_EOF
|
||||||
#line 12366 "configure"
|
#line 12420 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
#if HAVE_DLFCN_H
|
#if HAVE_DLFCN_H
|
||||||
|
|
@ -12469,7 +12523,7 @@ else
|
||||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||||
lt_status=$lt_dlunknown
|
lt_status=$lt_dlunknown
|
||||||
cat > conftest.$ac_ext <<_LT_EOF
|
cat > conftest.$ac_ext <<_LT_EOF
|
||||||
#line 12472 "configure"
|
#line 12526 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
#if HAVE_DLFCN_H
|
#if HAVE_DLFCN_H
|
||||||
|
|
@ -26486,6 +26540,10 @@ if test -z "${LIBGFOR_MINIMAL_TRUE}" && test -z "${LIBGFOR_MINIMAL_FALSE}"; then
|
||||||
as_fn_error "conditional \"LIBGFOR_MINIMAL\" was never defined.
|
as_fn_error "conditional \"LIBGFOR_MINIMAL\" 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 "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then
|
||||||
|
as_fn_error "conditional \"HAVE_HWCAP\" was never defined.
|
||||||
|
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
||||||
|
fi
|
||||||
if test -z "${LIBGFOR_BUILD_QUAD_TRUE}" && test -z "${LIBGFOR_BUILD_QUAD_FALSE}"; then
|
if test -z "${LIBGFOR_BUILD_QUAD_TRUE}" && test -z "${LIBGFOR_BUILD_QUAD_FALSE}"; then
|
||||||
as_fn_error "conditional \"LIBGFOR_BUILD_QUAD\" was never defined.
|
as_fn_error "conditional \"LIBGFOR_BUILD_QUAD\" 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
|
||||||
|
|
@ -27102,26 +27160,26 @@ AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
|
||||||
sed_quote_subst='$sed_quote_subst'
|
sed_quote_subst='$sed_quote_subst'
|
||||||
double_quote_subst='$double_quote_subst'
|
double_quote_subst='$double_quote_subst'
|
||||||
delay_variable_subst='$delay_variable_subst'
|
delay_variable_subst='$delay_variable_subst'
|
||||||
|
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
|
||||||
|
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
|
||||||
|
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
|
||||||
|
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
|
||||||
|
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
|
||||||
|
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
|
||||||
|
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
|
||||||
|
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
|
||||||
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
|
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
|
||||||
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
|
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
|
||||||
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
|
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
|
||||||
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
|
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
|
||||||
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
|
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
|
||||||
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
|
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
|
||||||
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
|
|
||||||
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
|
|
||||||
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
|
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
|
||||||
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
|
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
|
||||||
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
|
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
|
||||||
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
|
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
|
||||||
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
|
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
|
||||||
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
|
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
|
||||||
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
|
|
||||||
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
|
|
||||||
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
|
|
||||||
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
|
|
||||||
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
|
|
||||||
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
|
|
||||||
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
|
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
|
||||||
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
|
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
|
||||||
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
|
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
|
||||||
|
|
@ -27291,12 +27349,12 @@ _LTECHO_EOF'
|
||||||
}
|
}
|
||||||
|
|
||||||
# Quote evaled strings.
|
# Quote evaled strings.
|
||||||
for var in SHELL \
|
for var in SED \
|
||||||
ECHO \
|
|
||||||
SED \
|
|
||||||
GREP \
|
GREP \
|
||||||
EGREP \
|
EGREP \
|
||||||
FGREP \
|
FGREP \
|
||||||
|
SHELL \
|
||||||
|
ECHO \
|
||||||
LD \
|
LD \
|
||||||
NM \
|
NM \
|
||||||
LN_S \
|
LN_S \
|
||||||
|
|
@ -28227,6 +28285,27 @@ available_tags="FC "
|
||||||
|
|
||||||
# ### BEGIN LIBTOOL CONFIG
|
# ### BEGIN LIBTOOL CONFIG
|
||||||
|
|
||||||
|
# A sed program that does not truncate output.
|
||||||
|
SED=$lt_SED
|
||||||
|
|
||||||
|
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
|
||||||
|
Xsed="\$SED -e 1s/^X//"
|
||||||
|
|
||||||
|
# A grep program that handles long lines.
|
||||||
|
GREP=$lt_GREP
|
||||||
|
|
||||||
|
# An ERE matcher.
|
||||||
|
EGREP=$lt_EGREP
|
||||||
|
|
||||||
|
# A literal string matcher.
|
||||||
|
FGREP=$lt_FGREP
|
||||||
|
|
||||||
|
# Shell to use when invoking shell scripts.
|
||||||
|
SHELL=$lt_SHELL
|
||||||
|
|
||||||
|
# An echo program that protects backslashes.
|
||||||
|
ECHO=$lt_ECHO
|
||||||
|
|
||||||
# Which release of libtool.m4 was used?
|
# Which release of libtool.m4 was used?
|
||||||
macro_version=$macro_version
|
macro_version=$macro_version
|
||||||
macro_revision=$macro_revision
|
macro_revision=$macro_revision
|
||||||
|
|
@ -28243,12 +28322,6 @@ pic_mode=$pic_mode
|
||||||
# Whether or not to optimize for fast installation.
|
# Whether or not to optimize for fast installation.
|
||||||
fast_install=$enable_fast_install
|
fast_install=$enable_fast_install
|
||||||
|
|
||||||
# Shell to use when invoking shell scripts.
|
|
||||||
SHELL=$lt_SHELL
|
|
||||||
|
|
||||||
# An echo program that protects backslashes.
|
|
||||||
ECHO=$lt_ECHO
|
|
||||||
|
|
||||||
# The host system.
|
# The host system.
|
||||||
host_alias=$host_alias
|
host_alias=$host_alias
|
||||||
host=$host
|
host=$host
|
||||||
|
|
@ -28259,21 +28332,6 @@ build_alias=$build_alias
|
||||||
build=$build
|
build=$build
|
||||||
build_os=$build_os
|
build_os=$build_os
|
||||||
|
|
||||||
# A sed program that does not truncate output.
|
|
||||||
SED=$lt_SED
|
|
||||||
|
|
||||||
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
|
|
||||||
Xsed="\$SED -e 1s/^X//"
|
|
||||||
|
|
||||||
# A grep program that handles long lines.
|
|
||||||
GREP=$lt_GREP
|
|
||||||
|
|
||||||
# An ERE matcher.
|
|
||||||
EGREP=$lt_EGREP
|
|
||||||
|
|
||||||
# A literal string matcher.
|
|
||||||
FGREP=$lt_FGREP
|
|
||||||
|
|
||||||
# A BSD- or MS-compatible name lister.
|
# A BSD- or MS-compatible name lister.
|
||||||
NM=$lt_NM
|
NM=$lt_NM
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -222,6 +222,9 @@ fi
|
||||||
AC_MSG_RESULT($ac_fdsections)
|
AC_MSG_RESULT($ac_fdsections)
|
||||||
AC_SUBST(SECTION_FLAGS)
|
AC_SUBST(SECTION_FLAGS)
|
||||||
|
|
||||||
|
# Check linker hardware capability support.
|
||||||
|
GCC_CHECK_LINKER_HWCAP
|
||||||
|
|
||||||
# Find other programs we need.
|
# Find other programs we need.
|
||||||
AC_CHECK_TOOL(AS, as)
|
AC_CHECK_TOOL(AS, as)
|
||||||
AC_CHECK_TOOL(AR, ar)
|
AC_CHECK_TOOL(AR, ar)
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,10 @@
|
||||||
|
2016-12-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
|
||||||
|
|
||||||
|
* acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove.
|
||||||
|
* aclocal.m4: Regenerate.
|
||||||
|
* configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of
|
||||||
|
LIBITM_CHECK_LINKER_HWCAP.
|
||||||
|
|
||||||
2016-11-15 Matthias Klose <doko@ubuntu.com>
|
2016-11-15 Matthias Klose <doko@ubuntu.com>
|
||||||
|
|
||||||
* configure: Regenerate.
|
* configure: Regenerate.
|
||||||
|
|
|
||||||
|
|
@ -299,36 +299,6 @@ AC_DEFUN([LIBITM_CHECK_LINKER_FEATURES], [
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
dnl
|
|
||||||
dnl Check if the linker used supports linker maps to clear hardware
|
|
||||||
dnl capabilities. This is only supported on Solaris at the moment.
|
|
||||||
dnl
|
|
||||||
dnl Defines:
|
|
||||||
dnl HWCAP_LDFLAGS=-mclear-hwcap if possible
|
|
||||||
dnl LD (as a side effect of testing)
|
|
||||||
dnl
|
|
||||||
AC_DEFUN([LIBITM_CHECK_LINKER_HWCAP], [
|
|
||||||
test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS=''
|
|
||||||
AC_REQUIRE([AC_PROG_LD])
|
|
||||||
|
|
||||||
ac_save_LDFLAGS="$LDFLAGS"
|
|
||||||
LDFLAGS="$LFLAGS -mclear-hwcap"
|
|
||||||
|
|
||||||
AC_MSG_CHECKING([for -mclear-hwcap])
|
|
||||||
AC_TRY_LINK([], [return 0;], [ac_hwcap_ldflags=yes],[ac_hwcap_ldflags=no])
|
|
||||||
if test "$ac_hwcap_ldflags" = "yes"; then
|
|
||||||
HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS"
|
|
||||||
fi
|
|
||||||
AC_MSG_RESULT($ac_hwcap_ldflags)
|
|
||||||
|
|
||||||
LDFLAGS="$ac_save_LDFLAGS"
|
|
||||||
|
|
||||||
AC_SUBST(HWCAP_LDFLAGS)
|
|
||||||
|
|
||||||
AM_CONDITIONAL(HAVE_HWCAP, test $ac_hwcap_ldflags != no)
|
|
||||||
])
|
|
||||||
|
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl Add version tags to symbols in shared library (or not), additionally
|
dnl Add version tags to symbols in shared library (or not), additionally
|
||||||
dnl marking other symbols as private/local (or not).
|
dnl marking other symbols as private/local (or not).
|
||||||
|
|
|
||||||
|
|
@ -1015,6 +1015,7 @@ m4_include([../config/asmcfi.m4])
|
||||||
m4_include([../config/depstand.m4])
|
m4_include([../config/depstand.m4])
|
||||||
m4_include([../config/enable.m4])
|
m4_include([../config/enable.m4])
|
||||||
m4_include([../config/futex.m4])
|
m4_include([../config/futex.m4])
|
||||||
|
m4_include([../config/hwcaps.m4])
|
||||||
m4_include([../config/lead-dot.m4])
|
m4_include([../config/lead-dot.m4])
|
||||||
m4_include([../config/mmap.m4])
|
m4_include([../config/mmap.m4])
|
||||||
m4_include([../config/multi.m4])
|
m4_include([../config/multi.m4])
|
||||||
|
|
|
||||||
|
|
@ -215,7 +215,7 @@ LIBITM_CHECK_ATTRIBUTE_DLLEXPORT
|
||||||
LIBITM_CHECK_ATTRIBUTE_ALIAS
|
LIBITM_CHECK_ATTRIBUTE_ALIAS
|
||||||
|
|
||||||
# Check linker hardware capability support.
|
# Check linker hardware capability support.
|
||||||
LIBITM_CHECK_LINKER_HWCAP
|
GCC_CHECK_LINKER_HWCAP
|
||||||
# If defaulting to -mavx, don't clear hwcaps.
|
# If defaulting to -mavx, don't clear hwcaps.
|
||||||
AC_CHECK_DECL([__AVX__], [HWCAP_LDFLAGS=''])
|
AC_CHECK_DECL([__AVX__], [HWCAP_LDFLAGS=''])
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue