Whamcloud - gitweb
Move AM_CONDITIONAL into configure.in
authorpschwan <pschwan>
Mon, 21 Oct 2002 07:16:15 +0000 (07:16 +0000)
committerpschwan <pschwan>
Mon, 21 Oct 2002 07:16:15 +0000 (07:16 +0000)
lustre/Makefile.am
lustre/archdep.m4
lustre/configure.in
lustre/mds/Makefile.am

index ffaf6c4..59411e7 100644 (file)
@@ -5,6 +5,11 @@
 
 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 
index 0ae4905..e23e75c 100644 (file)
@@ -1,19 +1,3 @@
-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
index d8e2ccc..57ab0f0 100644 (file)
@@ -45,6 +45,16 @@ AC_SUBST(LINUX)
 
 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"
 
index 33d3ece..322be15 100644 (file)
@@ -5,7 +5,11 @@
 
 DEFS= 
 
-MODS=@FSMOD@
+if LINUX25
+FSMOD = mds_ext3
+else
+FSMOD = mds_extN
+endif
 
 MODULE = mds
 modulefs_DATA = mds.o $(MODS).o
@@ -27,4 +31,3 @@ target.c:
 mds_SOURCES = mds_lov.c handler.c mds_reint.c mds_fs.c $(LINX)
 
 include $(top_srcdir)/Rules
-