AUTOMAKE_OPTIONS = foreign
+if LINUX25
+DIRS24 = mds
+else
+DIRS24 = extN mds
+endif
# NOTE: keep extN before mds
SUBDIRS = lov utils obdclass ldlm ptlrpc lib obdecho mdc osc ost llite
-AC_MSG_CHECKING(if you are running linux 2.5...)
-if test -e $LINUX/include/linux/namei.h ; then
- linux25=yes
- DIRS24="mds"
- FSMOD="mds_ext3"
- AC_MSG_RESULT(yes)
-else
- linux25=no
- DIRS24="mds extN"
- FSMOD="mds_extN"
- AC_MSG_RESULT(no)
-fi
-AC_SUBST(DIRS24)
-AC_SUBST(FSMOD)
-## AM_CONDITIONAL(LINUX25, test x$linux25 = xyes)
-
AC_MSG_CHECKING(if you are running user mode linux for $host_alias..)
if test -e $LINUX/include/asm-um ; then
if test X`ls -id $LINUX/include/asm | awk '{print $1}'` = X`ls -id $LINUX/include/asm-um | awk '{print $1}'` ; then
sinclude(archdep.m4)
+AC_MSG_CHECKING(if you are running linux 2.5...)
+if test -e $LINUX/include/linux/namei.h ; then
+ linux25=yes
+ AC_MSG_RESULT(yes)
+else
+ linux25=no
+ AC_MSG_RESULT(no)
+fi
+AM_CONDITIONAL(LINUX25, test x$linux25 = xyes)
+
KINCFLAGS='-I. -I$(top_srcdir)/include -I$(PORTALS)/include -I$(LINUX)/include'
CPPFLAGS="$KINCFLAGS $ARCHCPPFLAGS"
DEFS=
-MODS=@FSMOD@
+if LINUX25
+FSMOD = mds_ext3
+else
+FSMOD = mds_extN
+endif
MODULE = mds
modulefs_DATA = mds.o $(MODS).o
mds_SOURCES = mds_lov.c handler.c mds_reint.c mds_fs.c $(LINX)
include $(top_srcdir)/Rules
-