conditional compilation for fuse stuff; added readOnlyHash to cmake (and fixed automake build problem)

This commit is contained in:
Sears Russell 2008-11-05 22:33:09 +00:00
parent c51c51dc13
commit b01a053664
4 changed files with 13 additions and 10 deletions

View file

@ -32,13 +32,13 @@ endif(NOT CHECK_LIBRARY)
FIND_LIBRARY(HAVE_CONFUSE NAMES confuse)
if(NOT HAVE_CONFUSE)
message(STATUS "libconfuse not found; libdfa will not be built. (you can safely ignore this)")
message(STATUS "libconfuse not found; sample application 'libdfa' will not be built")
endif(NOT HAVE_CONFUSE)
# Look for include files
#INCLUDE (CheckIncludeFiles)
##CHECK_INCLUDE_FILES(check.h HAVE_LIBCHECK)
#CHECK_INCLUDE_FILES(confuse.h HAVE_LIBCONFUSE)
FIND_LIBRARY(HAVE_FUSE NAMES fuse)
if(NOT HAVE_FUSE)
message(STATUS "fuse not found; sample application 'stasis_fuse' will not be built")
endif(NOT HAVE_FUSE)
MACRO(CREATE_CHECK NAME)
ADD_EXECUTABLE(${NAME} ${NAME}.c)

View file

@ -1 +1 @@
SUBDIRS(referential fuse)
SUBDIRS(referential fuse readOnlyHash)

View file

@ -1,3 +1,6 @@
ADD_EXECUTABLE(stasis_fuse stasis_fuse.c)
SET_TARGET_PROPERTIES(stasis_fuse PROPERTIES COMPILE_FLAGS -D_FILE_OFFSET_BITS=64)
TARGET_LINK_LIBRARIES(stasis_fuse ${COMMON_LIBRARIES} -lfuse)
if(HAVE_FUSE)
ADD_EXECUTABLE(stasis_fuse stasis_fuse.c)
SET_TARGET_PROPERTIES(stasis_fuse PROPERTIES COMPILE_FLAGS -D_FILE_OFFSET_BITS=64)
TARGET_LINK_LIBRARIES(stasis_fuse ${COMMON_LIBRARIES} -lfuse)
endif(HAVE_FUSE)

View file

@ -53,7 +53,7 @@ int main(int argc, char** argv) {
}
Tcommit(xid);
truncateNow();
truncateNow(1);
Tdeinit();
return 0;
}