17 lines
414 B
Plaintext
17 lines
414 B
Plaintext
|
# AST_PROG_LD_GNU
|
||
|
# --------------
|
||
|
AC_DEFUN([AST_PROG_LD_GNU],
|
||
|
[AC_REQUIRE([AST_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 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])
|
||
|
with_gnu_ld=$lt_cv_prog_gnu_ld
|
||
|
])# AST_PROG_LD_GNU
|