diff options
author | cypherpunks <cypherpunks@torproject.org> | 2016-03-28 20:29:19 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-12-23 10:34:15 -0500 |
commit | ef2b7c8a9b99bbee2b4c8563fe35491783e95033 (patch) | |
tree | 39b9f1df0101eb8c5c3b161aeb1eb4f42d8f971e /acinclude.m4 | |
parent | be080a402fc780c8211eb2117ddf0150cfd7a946 (diff) | |
download | tor-ef2b7c8a9b99bbee2b4c8563fe35491783e95033.tar.gz tor-ef2b7c8a9b99bbee2b4c8563fe35491783e95033.zip |
Add a cross-compile action to AC_RUN_IFELSE
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 5 |
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 |