0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 18:22:50 +01:00

librb: provide AC_TRY_RUN fallback for cross-compiling librb (closes #151)

This commit is contained in:
William Pitcock 2016-03-06 18:27:09 -06:00
parent c63aeb44e9
commit 498b189340
2 changed files with 4 additions and 8 deletions

View file

@ -112,6 +112,7 @@ int main(int argc, char *argv[])
}
],
[rb__cv_timer_create_works=yes],
[rb__cv_timer_create_works=no],
[rb__cv_timer_create_works=no])
])
case $rb__cv_timer_create_works in
@ -151,6 +152,7 @@ int main(int argc, char *argv[])
}
],
[rb__cv_timerfd_create_works=yes],
[rb__cv_timerfd_create_works=no],
[rb__cv_timerfd_create_works=no])
])
case $rb__cv_timerfd_create_works in

10
librb/configure vendored
View file

@ -14102,10 +14102,7 @@ if ${rb__cv_timer_create_works+:} false; then :
$as_echo_n "(cached) " >&6
else
if test "$cross_compiling" = yes; then :
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot run test program while cross compiling
See \`config.log' for more details" "$LINENO" 5; }
rb__cv_timer_create_works=no
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
@ -14161,10 +14158,7 @@ if ${rb__cv_timerfd_create_works+:} false; then :
$as_echo_n "(cached) " >&6
else
if test "$cross_compiling" = yes; then :
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot run test program while cross compiling
See \`config.log' for more details" "$LINENO" 5; }
rb__cv_timerfd_create_works=no
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */