doing the rh-2.4.20 check
# ---------- Red Hat 2.4.20 backports some 2.5 bits --------
# This needs to run after we've defined the KCPPFLAGS
-SAVE_CPPFLAGS=$CPPFLAGS
-SAVE_CFLAGS=$CFLAGS
-CPPFLAGS=$KCPPFLAGS
-CFLAGS=$KCFLAGS
AC_MSG_CHECKING(for kernel version)
AC_TRY_LINK([#define __KERNEL__
#include <linux/sched.h>],
[RH_2_4_20=1],
[RH_2_4_20=0])
-CPPFLAGS=$SAVE_CPPFLAGS
-CFLAGS=$SAVE_CFLAGS
-
if test $RH_2_4_20 = 1; then
AC_MSG_RESULT(redhat-2.4.20)
CPPFLAGS="$CPPFLAGS -DCONFIG_RH_2_4_20"
# ---------- Red Hat 2.4.20 backports some 2.5 bits --------
# This needs to run after we've defined the KCPPFLAGS
-SAVE_CPPFLAGS=$CPPFLAGS
-SAVE_CFLAGS=$CFLAGS
-CPPFLAGS=$KCPPFLAGS
-CFLAGS=$KCFLAGS
AC_MSG_CHECKING(for kernel version)
AC_TRY_LINK([#define __KERNEL__
#include <linux/sched.h>],
[RH_2_4_20=1],
[RH_2_4_20=0])
-CPPFLAGS=$SAVE_CPPFLAGS
-CFLAGS=$SAVE_CFLAGS
-
if test $RH_2_4_20 = 1; then
AC_MSG_RESULT(redhat-2.4.20)
CPPFLAGS="$CPPFLAGS -DCONFIG_RH_2_4_20"