From 2536f3bbf0c7d5fc3ef14a21c11e07efea6cf294 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 31 Jan 1999 00:19:45 +0000 Subject: Autoconfigure detection of whether we have 2.2. svn path=/trunk/; revision=2358 --- configure.in | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 56098371..d637ddd1 100644 --- a/configure.in +++ b/configure.in @@ -183,6 +183,17 @@ AC_TRY_LINK([#include [AC_DEFINE(SYS_SIGLIST_DECLARED) AC_MSG_RESULT(yes)], AC_MSG_RESULT(no)) +dnl Figure out whether we're using a 2.2 kernel (assuming this is Linux) +AC_MSG_CHECKING(OS kernel major version) +set -- `uname -r | tr '.' ' '` +release="${1}.${2}" +AC_MSG_RESULT($release) +if expr "$release" '>=' '2.2' >/dev/null +then + AC_DEFINE(HAVE_NEWPROCNETDEV) + AC_MSG_RESULT("assuming new /proc/dev/net format") +fi + # Find the right directory to put the root-mode PID file in for dir in "/var/run" "/etc" do -- cgit v1.2.3