Release: captive7
[lufs.git] / configure.in
index 5961c9c..42a7443 100644 (file)
@@ -3,8 +3,8 @@ AC_PREREQ(2.50)
 AC_INIT(AUTHORS)
 AM_CONFIG_HEADER(config.h)
 AC_CANONICAL_SYSTEM
-VERSION_BASE=0.9.6
-VERSION_EXT=captive2cvs
+VERSION_BASE=0.9.7
+VERSION_EXT=captive7
 AC_SUBST(VERSION_BASE)
 AC_SUBST(VERSION_EXT)
 AM_INIT_AUTOMAKE(lufs,$VERSION_BASE$VERSION_EXT)
@@ -35,7 +35,15 @@ AC_ARG_WITH(cxx,
        CXX=false
     ])
 
-OS_DIR=Linux
+dnl Checking os
+AC_MSG_CHECKING(OS)
+OS_DIR=`uname -s`
+if test ! -d kernel/$OS_DIR
+then
+    AC_MSG_ERROR($OS_DIR - not supported!)
+else
+    AC_MSG_RESULT($OS_DIR)
+fi
 AC_SUBST(OS_DIR)
 
 dnl options
@@ -56,7 +64,7 @@ AC_ARG_ENABLE(autofs-install,
 AC_SUBST(AUTOFS_INSTALL)    
 
 AC_ARG_ENABLE(suid,
-    [  --enable-suid           make lufsmnt and lufsumount suid root (default=yes)],
+    [  --enable-suid           make lufsmnt suid root (default=yes)],
     [ if test $enableval = "no"; then LUFS_SUID=""; else LUFS_SUID="true"; fi ] , LUFS_SUID="true" )
 AC_SUBST(LUFS_SUID)
 
@@ -231,7 +239,7 @@ AC_OUTPUT(\
        kernel/Makefile \
        kernel/Linux/Makefile \
        kernel/Linux/2.4/Makefile \
-       kernel/Linux/2.5/Makefile \
+       kernel/Linux/2.6/Makefile \
        kernel/Linux/modbin/Makefile \
        include/Makefile \
        docs/Makefile \
@@ -239,10 +247,12 @@ AC_OUTPUT(\
        lufs.spec \
        kernel/Linux/prepmod \
        debian/changelog \
+       kernel/Linux/2.4/makefile \
+       kernel/Linux/2.6/makefile \
         )
 
 echo "###############################################################################"
 echo " supported filesystems: $opt_fs"
 echo -n " suid files: "
-if test $LUFS_SUID; then echo "lufsmnt & lufsumount."; else echo "none."; fi
+if test $LUFS_SUID; then echo "lufsmnt."; else echo "none."; fi
 echo "###############################################################################"