From f864f6f66ccca9c3cce13817b4726fb652d8f963 Mon Sep 17 00:00:00 2001 From: Sears Russell Date: Sat, 18 Apr 2009 04:58:51 +0000 Subject: [PATCH] added installation instructions, more autoconf cleanups --- INSTALL | 29 +++++++++++++++++++++++++++++ clean.sh | 2 ++ configure.in.lite | 22 ---------------------- 3 files changed, 31 insertions(+), 22 deletions(-) create mode 100644 INSTALL diff --git a/INSTALL b/INSTALL new file mode 100644 index 0000000..3526ad5 --- /dev/null +++ b/INSTALL @@ -0,0 +1,29 @@ +Prerequisites (ubuntu/debian): + + autoconf build-essential cmake + +Recommended build procedure: + + ./bootstrap ; mkdir build ; cd build ; cmake .. + make -j 4 + cd test ; make test + +Optional dependencies: + + flex yacc (for a relational algebra language demo) + fuse (for a fuse demo) + swig (for python bindings) + libconfuse + Berkeley DB (for performance comparisons) + +Obsolete build procedure +========================= + +(Uses automake and libtool) + + ./reconf ; ./configure --quiet + make -j 4 + +Extra requirements for obsolete build: + + automake libtool diff --git a/clean.sh b/clean.sh index 925bfde..04b0d77 100755 --- a/clean.sh +++ b/clean.sh @@ -14,3 +14,5 @@ find . | perl -ne 'print if (/\/storefile.txt$/)' | xargs rm -f find . | perl -ne 'print if (/\/logfile.txt$/)' | xargs rm -f find . | perl -ne 'print if (/\/blob._file.txt$/)' | xargs rm -f rm -f test/gmon.out test/lladd/gmon.out +rm -f m4/ltsugar.m4 m4/libtool.m4 m4/ltversion.m4 m4/lt~obsolete.m4 m4/ltoptions.m4 +rm -f configure.in diff --git a/configure.in.lite b/configure.in.lite index b9b498e..440f40d 100644 --- a/configure.in.lite +++ b/configure.in.lite @@ -3,8 +3,6 @@ AC_PREREQ(2.59) AC_INIT([Stasis],[0.1],[sears@cs.berkeley.edu]) -#AM_INIT_AUTOMAKE() #hello,0.1) -#AM_INIT_AUTOMAKE([subdir-objects]) # @todo use subdir-objects once transition to libtool is done. AC_CONFIG_SRCDIR([config.h.in]) AC_CONFIG_HEADER([config.h]) @@ -12,11 +10,8 @@ AC_CONFIG_HEADER([config.h]) #AC_PROG_CXX AC_PROG_CC AC_PROG_CPP -#AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_MAKE_SET -## Need AC_PROG_LIBTOOL -#AC_PROG_LIBTOOL AC_PROG_AWK AC_PROG_RANLIB AC_PROG_YACC @@ -25,7 +20,6 @@ AC_PROG_LEX # For SWIG & Python # AC_PROG_LIBTOOL -#AM_PATH_PYTHON(2.3) AC_PROG_SWIG(1.3) SWIG_ENABLE_CXX SWIG_PYTHON @@ -52,27 +46,11 @@ if test "$db_cv_open_o_direct" = "yes"; then AH_TEMPLATE(HAVE_O_DIRECT, [Define to 1 if you have the O_DIRECT flag.]) fi -AC_CHECK_LIB([check], [suite_create]) -AC_CHECK_LIB([check], [suite_create], - have_libcheck=yes, - have_libcheck=no) - -#if test x$have_libcheck = xyes ; then -##AM_CONDITIONAL(HAVE_LIBCHECK, true) -#else -##AM_CONDITIONAL(HAVE_LIBCHECK, false) -#AC_MSG_WARN([Check not found; cannot run unit tests!]) -#fi - - AC_CHECK_LIB([m], [sqrt]) AC_CHECK_LIB([pthread], [pthread_create]) - AC_CONFIG_DB -#AM_CONDITIONAL(DB_ENABLED, test $DB_ENABLED = 1) - if test x$build_benchmarks = xyes ; then if test $DB_ENABLED = 0; then AC_MSG_WARN([Could not find Berkeley DB; some benchmarks will not be built])