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 | 976b5c1f86d3b1db9bea56cbf4be33b68e1fd96e (patch) | |
tree | aa2387b9869a19629e548c3cc1515665c8bad1c5 /config/no-executables.m4 | |
parent | ac05291d7cbec4cfc2e4ca078d465e38984fc881 (diff) | |
download | gdb-976b5c1f86d3b1db9bea56cbf4be33b68e1fd96e.tar.gz |
* 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 54e5a024288..c4d0b70c375 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]) |