AC_INIT(AUTHORS)
AM_CONFIG_HEADER(config.h)
AC_CANONICAL_SYSTEM
-AM_INIT_AUTOMAKE(lufs,0.9.6)
+VERSION_BASE=0.9.7
+VERSION_EXT=captive8
+AC_SUBST(VERSION_BASE)
+AC_SUBST(VERSION_EXT)
+AM_INIT_AUTOMAKE(lufs,$VERSION_BASE$VERSION_EXT)
AM_MAINTAINER_MODE
dnl Some Makefiles use additional tests etc.
AM_CONDITIONAL(MAINTAINER_MODE,[test "$USE_MAINTAINER_MODE" = "yes"])
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
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)
AC_OUTPUT(\
Makefile \
+ macros/Makefile \
lufsd/Makefile \
filesystems/Makefile \
filesystems/localfs/Makefile \
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 \
man/Makefile \
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 "###############################################################################"