* libtool.m4: Sync methods used to detect GNU ld.

This commit is contained in:
Albert Chin-A-Young 2002-12-30 16:30:22 +00:00 committed by Robert Boehne
parent 947bf98e10
commit 1391f5d2fe
2 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2002-12-30 Albert Chin-A-Young <china@thewrittenword.com>
* libtool.m4: Sync methods used to detect GNU ld.
2002-12-20 Robert Boehne <rboehne@gnu.org>
* libtool.m4 (AC_LIBTOOL_COMPILER_OPTION,

9
libtool.m4 vendored
View File

@ -1933,11 +1933,14 @@ AC_DEFUN([AC_PROG_LD_GNU],
[AC_REQUIRE([AC_PROG_EGREP])dnl
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
case `"$LD" -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
lt_cv_prog_gnu_ld=yes
else
;;
*)
lt_cv_prog_gnu_ld=no
fi])
;;
esac])
with_gnu_ld=$lt_cv_prog_gnu_ld
])# AC_PROG_LD_GNU