projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
config/debuginfod: do not include pkg.m4 directly
[deliverable/binutils-gdb.git]
/
config
/
no-executables.m4
diff --git
a/config/no-executables.m4
b/config/no-executables.m4
index 54e5a024288106fcf4a3210cf4799e6f10884841..6842f84fba3268bc20d4f1860f67ea9c4f6947b2 100644
(file)
--- a/
config/no-executables.m4
+++ b/
config/no-executables.m4
@@
-25,7
+25,9
@@
AC_BEFORE([$0], [_AC_COMPILER_EXEEXT])
AC_BEFORE([$0], [AC_LINK_IFELSE])
m4_define([_AC_COMPILER_EXEEXT],
AC_BEFORE([$0], [AC_LINK_IFELSE])
m4_define([_AC_COMPILER_EXEEXT],
-AC_LANG_CONFTEST([AC_LANG_PROGRAM()])
+[AC_LANG_CONFTEST([AC_LANG_PROGRAM(
+ [#include <stdio.h>],
+ [printf ("hello world\n");])])
# FIXME: Cleanup?
AS_IF([AC_TRY_EVAL(ac_link)], [gcc_no_link=no], [gcc_no_link=yes])
if test x$gcc_no_link = xyes; then
# FIXME: Cleanup?
AS_IF([AC_TRY_EVAL(ac_link)], [gcc_no_link=no], [gcc_no_link=yes])
if test x$gcc_no_link = xyes; then
@@
-35,7
+37,7
@@
if test x$gcc_no_link = xyes; then
cross_compiling=yes
EXEEXT=
else
cross_compiling=yes
EXEEXT=
else
- m4_defn([_AC_COMPILER_EXEEXT])dnl
+
]
m4_defn([_AC_COMPILER_EXEEXT])dnl
fi
)
fi
)
@@
-59,3
+61,11
@@
fi)
m4_divert_pop()dnl
])# GCC_NO_EXECUTABLES
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])
This page took
0.029799 seconds
and
4
git commands to generate.