aboutsummaryrefslogtreecommitdiff
path: root/config/no-executables.m4
diff options
context:
space:
mode:
authorSebastian Pop <sebastian.pop@amd.com>2007-10-28 19:25:05 +0000
committerSebastian Pop <sebastian.pop@amd.com>2007-10-28 19:25:05 +0000
commit8573960b361a78776182946a70aac67aec914eab (patch)
tree1156f4d244a3b3582ff901b1e083ef9e3e171d19 /config/no-executables.m4
parenta9bd968fee0a3252a7b867f8c38bad33734423de (diff)
2007-10-28 Sebastian Pop <sebastian.pop@amd.com>
* Merge from mainline (127169:129697). git-svn-id: https://gcc.gnu.org/svn/gcc/branches/graphite@129703 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'config/no-executables.m4')
-rw-r--r--config/no-executables.m48
1 files changed, 8 insertions, 0 deletions
diff --git a/config/no-executables.m4 b/config/no-executables.m4
index 54e5a0242881..c4d0b70c3755 100644
--- a/config/no-executables.m4
+++ b/config/no-executables.m4
@@ -59,3 +59,11 @@ fi)
m4_divert_pop()dnl
])# GCC_NO_EXECUTABLES
+
+# Use the strongest available test out of AC_TRY_COMPILE and AC_TRY_LINK.
+AC_DEFUN([GCC_TRY_COMPILE_OR_LINK],
+[if test x$gcc_no_link = xyes; then
+ AC_TRY_COMPILE([$1], [$2], [$3], [$4])
+else
+ AC_TRY_LINK([$1], [$2], [$3], [$4])
+fi])