From 83ca117cdc8d5bbe7c538a3eee478e2348b7f29c Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 9 Aug 2007 22:00:40 +0000 Subject: Patch from djGrrr that correctly detects epoll on fedora 7, which SMRTly decided not to put libc.so.6 in /lib, or even symlink /lib to lib64... git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7696 e03df62e-2008-0410-955e-edbf42e46eb7 --- configure | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 5c51f2e96..0b27e2f17 100755 --- a/configure +++ b/configure @@ -467,10 +467,16 @@ if ($has_epoll) { { # Suggestion from nenolod, weed out odd systems which have glibc built # against 2.4 kernels (ick) - + my $kernel_arch = `uname -p`; + chomp($kernel_arch); $libcv = 0.0; $kernelv = 0.0; - open (FH,"/lib/libc.so.6|") or $has_epoll = 0; + if ($kernel_arch =~ /x86_64/) { + open (FH,"/lib64/libc.so.6|") or $has_epoll = 0; + } + else { + open (FH,"/lib/libc.so.6|") or $has_epoll = 0; + } if ($has_epoll) { while (chomp($line = )) -- cgit v1.2.3