blob: 0381834d20e4ae3fd2ed4fe9fe2c461c15a7cb86 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
Description: fbterm FTCBFS: falls back to broken select code
Forwarded: not yet
Bug-Debian: https://bugs.debian.org/909679
Author: Helmut Grohne <helmut@subdivi.de>
--- fbterm-1.7.orig/configure.ac
+++ fbterm-1.7/configure.ac
@@ -83,16 +83,16 @@
fi
fi
-if test x"$EPOLL" = xauto -a x"$cross_compiling" = xno; then
- AC_RUN_IFELSE(
+if test x"$EPOLL" = xauto; then
+ AC_COMPILE_IFELSE(
AC_LANG_PROGRAM([[#include <sys/epoll.h>]],
[[if (epoll_create(10) >= 0) return 0; return 1;]]),
[EPOLL=yes]
)
fi
-if test x"$SIGNALFD" = xauto -a x"$cross_compiling" = xno; then
- AC_RUN_IFELSE(
+if test x"$SIGNALFD" = xauto; then
+ AC_COMPILE_IFELSE(
AC_LANG_PROGRAM([[#include <sys/signalfd.h>]],
[[sigset_t mask; if (signalfd(-1, &mask, 0) >= 0) return 0; return 1;]]),
[SIGNALFD=yes]
|