aboutsummaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorcypherpunks <cypherpunks@torproject.org>2016-03-28 20:29:19 +0000
committerNick Mathewson <nickm@torproject.org>2016-12-23 10:34:15 -0500
commitef2b7c8a9b99bbee2b4c8563fe35491783e95033 (patch)
tree39b9f1df0101eb8c5c3b161aeb1eb4f42d8f971e /acinclude.m4
parentbe080a402fc780c8211eb2117ddf0150cfd7a946 (diff)
downloadtor-ef2b7c8a9b99bbee2b4c8563fe35491783e95033.tar.gz
tor-ef2b7c8a9b99bbee2b4c8563fe35491783e95033.zip
Add a cross-compile action to AC_RUN_IFELSE
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m45
1 files changed, 4 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index bf39601ef5..193d3a7a08 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