[gdb/testsuite] Check avx support in gdb.arch/amd64-disp-step-avx.exp
[deliverable/binutils-gdb.git] / libtool.m4
index 3672e9516e28dac1e5127fba55af72ea1545722f..9a13f3b117aa8446a6926c1677f515b8ef0d7a38 100644 (file)
@@ -1340,7 +1340,14 @@ AC_CHECK_TOOL(AR, ar, false)
 test -z "$AR" && AR=ar
 if test -n "$plugin_option"; then
   if $AR --help 2>&1 | grep -q "\--plugin"; then
-    AR="$AR $plugin_option"
+    touch conftest.c
+    $AR $plugin_option rc conftest.a conftest.c
+    if test "$?" != 0; then
+      AC_MSG_WARN([Failed: $AR $plugin_option rc])
+    else
+      AR="$AR $plugin_option"
+    fi
+    rm -f conftest.*
   fi
 fi
 test -z "$AR_FLAGS" && AR_FLAGS=cru
This page took 0.023065 seconds and 4 git commands to generate.