diff options
author | Ludovic Courtès <ludo@gnu.org> | 2012-05-23 15:17:18 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2012-05-23 15:17:18 +0200 |
commit | 2ce4a1ae88dca60bcc7a2b5eb0e75eb5ba021e57 (patch) | |
tree | 5cc768f7e75e9d7b4af1dc977faa7f2e6b72cdf1 | |
parent | e7e267be016f23ed51ec4e68bd627683961553ca (diff) | |
download | guile-2ce4a1ae88dca60bcc7a2b5eb0e75eb5ba021e57.tar.gz |
configure: Provide guesses for `AC_RUN_IFELSE' tests when cross-compiling.
* configure.in: Define PTHREAD_ATTR_GETSTACK_WORKS when cross-compiling.
-rw-r--r-- | configure.in | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/configure.in b/configure.in index b46f88f23..f0588417f 100644 --- a/configure.in +++ b/configure.in @@ -1446,11 +1446,18 @@ int main () #endif ]])], [works=yes -AC_DEFINE(PTHREAD_ATTR_GETSTACK_WORKS, [1], [Define when pthread_att_get_stack works for the main thread])], -[works=no], -[]) + AC_MSG_RESULT([yes])], +[works=no + AC_MSG_RESULT([no])], +[works=yes + AC_MSG_RESULT([assuming it does])]) + +if test "x$works" = "xyes"; then + AC_DEFINE(PTHREAD_ATTR_GETSTACK_WORKS, [1], + [Define when pthread_att_get_stack works for the main thread]) +fi + CFLAGS="$old_CFLAGS" -AC_MSG_RESULT($works) fi # with_threads=pthreads |