-KCOMPAT_PATH=
-AC_ARG_WITH(kcompat, [ --with-kcompat path Path to userspace kcompat source], [
- AC_CHECK_FILE(["$withval/kcompat.h"], KCOMPAT_PATH="$withval", [
- AC_MSG_ERROR([Cannot find kcompat.h in kcompat directory])
- ])
-])
-if test -n "${KCOMPAT_PATH}" ; then
- CPPFLAGS="-I$KCOMPAT_PATH/ $CPPFLAGS"
- AC_SUBST(CPPFLAGS)
-fi
-AC_CHECK_HEADER([kcompat.h], , AC_MSG_ERROR([Must specify kcompat path.]))
-AC_SUBST(KCOMPAT_PATH)
-
-URCU_LIB=
-AC_CHECK_HEADER([urcu.h], [
- AC_CHECK_LIB(urcu, synchronize_rcu, [
- URCU_PATH=
- URCU_LIB="-lurcu"
- ])
-])
-AC_ARG_WITH(urcu, [ --with-urcu path Path to userspace RCU source], [