[tor-commits] [tor/master] Add a cross-compile action to AC_RUN_IFELSE
nickm at torproject.org
nickm at torproject.org
Wed Jan 11 15:25:05 UTC 2017
commit ef2b7c8a9b99bbee2b4c8563fe35491783e95033
Author: cypherpunks <cypherpunks at torproject.org>
Date: Mon Mar 28 20:29:19 2016 +0000
Add a cross-compile action to AC_RUN_IFELSE
---
acinclude.m4 | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/acinclude.m4 b/acinclude.m4
index bf39601..193d3a7 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -245,7 +245,10 @@ if test "$cross_compiling" != yes; then
LDFLAGS="$tor_tryextra $orig_LDFLAGS"
fi
AC_RUN_IFELSE([AC_LANG_PROGRAM([$5], [$6])],
- [runnable=yes], [runnable=no])
+ [runnable=yes], [runnable=no],
+ [AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[]])],
+ [runnable=yes],
+ [runnable=no])])
if test "$runnable" = yes; then
tor_cv_library_$1_linker_option=$tor_tryextra
break
More information about the tor-commits
mailing list