[Prev] Thread [Next] |
[Prev] Date [Next]
Re: [PATCH] detecting epoll
Gerd v. Egidy
Fri Jun 05 08:01:29 2009
> OK, I propose to do this:
> if [ `expr "X$CCARGS" : "X.*-DNO_EPOLL"` -gt 0 ]
> elif [ ! -e /usr/include/sys/epoll.h ]
> echo CCARGS="$CCARGS -DNO_EPOLL"
> trap 'rm -f makedefs.test makedefs.test.[co]' 1 2 3
> This will implement "make makefiles CCARGS=-DNO_EPOLL" as documented,
> and will skip EPOLL support when the system include file is missing.
How about the attached version? This includes the idea from Victor to use the
compiler to check, but without relying on particular switches.
> The makedefs script already peeks in /usr/include (for Berkeley
> DB) and in /usr/lib* and /lib* (for libnsl and libresolv), so it
> was never suitable for cross compilation.
Yeah. But that's no reason to include more of it - makes it harder to remove
Address (better: trap) for people I really don't want to get mail from: