summaryrefslogtreecommitdiff
path: root/m4/fp_prog_ld_is_gnu.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/fp_prog_ld_is_gnu.m4')
-rw-r--r--m4/fp_prog_ld_is_gnu.m413
1 files changed, 13 insertions, 0 deletions
diff --git a/m4/fp_prog_ld_is_gnu.m4 b/m4/fp_prog_ld_is_gnu.m4
new file mode 100644
index 0000000000..90f6d5fcda
--- /dev/null
+++ b/m4/fp_prog_ld_is_gnu.m4
@@ -0,0 +1,13 @@
+# FP_PROG_LD_IS_GNU
+# -----------------
+# Sets the output variable LdIsGNULd to YES or NO, depending on whether it is
+# GNU ld or not.
+AC_DEFUN([FP_PROG_LD_IS_GNU],[
+AC_CACHE_CHECK([whether ld is GNU ld], [fp_cv_gnu_ld],
+[[if ${LdCmd} --version 2> /dev/null | grep "GNU" > /dev/null 2>&1; then
+ fp_cv_gnu_ld=YES
+else
+ fp_cv_gnu_ld=NO
+fi]])
+AC_SUBST([LdIsGNULd],["$fp_cv_gnu_ld"])
+])# FP_PROG_LD_IS_GNU