mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
configure: Provide guesses for `AC_RUN_IFELSE' tests when cross-compiling.
* configure.in: Define PTHREAD_ATTR_GETSTACK_WORKS when cross-compiling.
This commit is contained in:
parent
e7e267be01
commit
2ce4a1ae88
1 changed files with 11 additions and 4 deletions
15
configure.in
15
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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue