summaryrefslogtreecommitdiff
path: root/m4/fp_prog_ar_is_gnu.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/fp_prog_ar_is_gnu.m4')
-rw-r--r--m4/fp_prog_ar_is_gnu.m414
1 files changed, 14 insertions, 0 deletions
diff --git a/m4/fp_prog_ar_is_gnu.m4 b/m4/fp_prog_ar_is_gnu.m4
new file mode 100644
index 0000000000..0962f1d7b2
--- /dev/null
+++ b/m4/fp_prog_ar_is_gnu.m4
@@ -0,0 +1,14 @@
+# FP_PROG_AR_IS_GNU
+# -----------------
+# Sets fp_prog_ar_is_gnu to yes or no, depending on whether it is GNU ar or not.
+AC_DEFUN([FP_PROG_AR_IS_GNU],
+[AC_REQUIRE([FP_PROG_AR])
+AC_CACHE_CHECK([whether $fp_prog_ar is GNU ar], [fp_cv_prog_ar_is_gnu],
+[if "$fp_prog_ar" --version 2> /dev/null | grep "GNU" > /dev/null 2>&1; then
+ fp_cv_prog_ar_is_gnu=yes
+else
+ fp_cv_prog_ar_is_gnu=no
+fi])
+fp_prog_ar_is_gnu=$fp_cv_prog_ar_is_gnu
+AC_SUBST([ArIsGNUAr], [`echo $fp_prog_ar_is_gnu | tr 'a-z' 'A-Z'`])
+])# FP_PROG_AR_IS_GNU