2002-12-18 John David Anglin * libtool.m4 (AC_PROG_LD): Use ld used by GCC when LD is set to "ld". Index: libtool.m4 =================================================================== RCS file: /home/cvs/libtool/libtool.m4,v retrieving revision 1.280 diff -u -3 -p -r1.280 libtool.m4 --- libtool.m4 11 Dec 2002 19:44:59 -0000 1.280 +++ libtool.m4 18 Dec 2002 18:11:13 -0000 @@ -1875,7 +1875,9 @@ if test "$GCC" = yes; then 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 test -z "$LD" || test "$LD" = ld; then + LD="$ac_prog" + fi ;; "") # If it fails, then pretend we aren't using GCC.