Whamcloud - gitweb
- fix to deal with other versions of automake.... :(
authorbraam <braam>
Mon, 21 Oct 2002 07:03:25 +0000 (07:03 +0000)
committerbraam <braam>
Mon, 21 Oct 2002 07:03:25 +0000 (07:03 +0000)
lustre/Makefile.am
lustre/archdep.m4
lustre/mds/Makefile.am

index 59411e7..ffaf6c4 100644 (file)
@@ -5,11 +5,6 @@
 
 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 3a031ed..0ae4905 100644 (file)
@@ -1,12 +1,18 @@
 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
-AM_CONDITIONAL(LINUX25, test x$linux25 = xyes)
+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
index 24fdd57..33d3ece 100644 (file)
@@ -5,17 +5,11 @@
 
 DEFS= 
 
-if LINUX25
-FSMOD = mds_ext3
-else
-FSMOD = mds_extN
-endif
-
-
+MODS=@FSMOD@
 
 MODULE = mds
-modulefs_DATA = mds.o $(FSMOD).o
-EXTRA_PROGRAMS = mds $(FSMOD)
+modulefs_DATA = mds.o $(MODS).o
+EXTRA_PROGRAMS = mds $(MODS)
 
 LINX= mds_updates.c simple.c ll_pack.c lov_pack.c target.c