diff options
author | Kazu Hirata <kazu@codesourcery.com> | 2007-10-03 14:35:31 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@codesourcery.com> | 2007-10-03 14:35:31 +0000 |
commit | 26c28af8b215e547cfbbfbf4bcdb9908447ad71c (patch) | |
tree | 1abac00261575ed2e4c9d5edbf968c5a8e7016d5 /config/no-executables.m4 | |
parent | 56398dd5d7ae5d96f20389020fe9339dcb63623c (diff) | |
download | cygnal-26c28af8b215e547cfbbfbf4bcdb9908447ad71c.tar.gz cygnal-26c28af8b215e547cfbbfbf4bcdb9908447ad71c.tar.bz2 cygnal-26c28af8b215e547cfbbfbf4bcdb9908447ad71c.zip |
* no-executables.m4 (GCC_TRY_COMPILE_OR_LINK): New function.
Diffstat (limited to 'config/no-executables.m4')
-rw-r--r-- | config/no-executables.m4 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/config/no-executables.m4 b/config/no-executables.m4 index 54e5a0242..c4d0b70c3 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]) |