[project @ 2005-01-10 11:45:19 by simonmar]
[ghc-hetmet.git] / aclocal.m4
index a615c55..34542f2 100644 (file)
@@ -353,6 +353,26 @@ fi
 AC_SUBST(LdXFlag)
 ])
 
+dnl
+dnl Check for GNU ld
+dnl
+AC_DEFUN(FPTOOLS_GNU_LD,
+[AC_CACHE_CHECK([whether ld is GNU ld], fptools_cv_gnu_ld,
+[
+if ${LdCmd} -v | grep GNU 2>&1 >/dev/null; then
+   fptools_cv_gnu_ld=yes
+else
+   fptools_cv_gnu_ld=no
+fi
+])
+if test "$fptools_cv_gnu_ld" = yes; then
+       LdIsGNULd=YES
+else
+       LdIsGNULd=NO
+fi
+AC_SUBST(LdIsGNULd)
+])
+
 
 # FP_PROG_AR
 # ----------