diff options
author | Sage Weil <sage@newdream.net> | 2008-01-28 03:12:20 +0100 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2008-01-28 05:45:29 +0100 |
commit | 7469f26a33c072169d6ed929352eda06562ffe3f (patch) | |
tree | d9e52fc928322ef6104bc882fe0e2cd1e4d1838a | |
parent | smarter start.sh (diff) | |
download | ceph-7469f26a33c072169d6ed929352eda06562ffe3f.tar.xz ceph-7469f26a33c072169d6ed929352eda06562ffe3f.zip |
first pass at autoconf and automake
-rw-r--r-- | AUTHORS | 0 | ||||
-rw-r--r-- | COPYING (renamed from src/COPYING) | 0 | ||||
-rw-r--r-- | ChangeLog | 0 | ||||
l--------- | INSTALL | 1 | ||||
-rw-r--r-- | Makefile.am | 3 | ||||
-rw-r--r-- | NEWS | 0 | ||||
-rw-r--r-- | README (renamed from src/README) | 0 | ||||
-rw-r--r-- | configure.ac | 85 | ||||
-rwxr-xr-x | reconf | 7 | ||||
-rw-r--r-- | src/Makefile.am | 98 |
10 files changed, 194 insertions, 0 deletions
diff --git a/AUTHORS b/AUTHORS new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/AUTHORS diff --git a/src/COPYING b/COPYING index 5ab7695ab8c..5ab7695ab8c 100644 --- a/src/COPYING +++ b/COPYING diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/ChangeLog diff --git a/INSTALL b/INSTALL new file mode 120000 index 00000000000..5bb6e7b7e1a --- /dev/null +++ b/INSTALL @@ -0,0 +1 @@ +/usr/share/automake-1.10/INSTALL
\ No newline at end of file diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 00000000000..4d07a852e46 --- /dev/null +++ b/Makefile.am @@ -0,0 +1,3 @@ +AUTOMAKE_OPTIONS = gnu +EXTRA_DIST = doc web reconf +SUBDIRS = src
\ No newline at end of file diff --git a/configure.ac b/configure.ac new file mode 100644 index 00000000000..a7a074009da --- /dev/null +++ b/configure.ac @@ -0,0 +1,85 @@ +# -*- Autoconf -*- +# Process this file with autoconf to produce a configure script. + +AC_PREREQ(2.61) +AC_INIT([Ceph distributed file system], [.1], + [Sage Weil <sage@newdream.net>], + [ceph]) +AM_INIT_AUTOMAKE(ceph, 0.1) + + +# Checks for programs. +AC_PROG_CXX +AC_PROG_CC +AC_PROG_RANLIB + +# Checks for libraries. +# FIXME: Replace `main' with a function in `-lccgnu2': +AC_CHECK_LIB([ccgnu2], [main]) +# FIXME: Replace `main' with a function in `-ldb_cxx': +AC_CHECK_LIB([db_cxx], [main]) +# FIXME: Replace `main' with a function in `-ldl': +AC_CHECK_LIB([dl], [main]) +# FIXME: Replace `main' with a function in `-lfuse': +AC_CHECK_LIB([fuse], [main]) +# FIXME: Replace `main' with a function in `-lm': +AC_CHECK_LIB([m], [main]) +# FIXME: Replace `main' with a function in `-lpthread': +AC_CHECK_LIB([pthread], [main]) + +# Checks for header files. +AC_HEADER_DIRENT +AC_HEADER_STDC +AC_HEADER_SYS_WAIT +AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stdint.h stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h sys/param.h sys/socket.h sys/statvfs.h sys/time.h sys/vfs.h syslog.h unistd.h utime.h]) + +# Checks for typedefs, structures, and compiler characteristics. +AC_HEADER_STDBOOL +AC_C_CONST +AC_TYPE_UID_T +AC_C_INLINE +AC_TYPE_INT16_T +AC_TYPE_INT32_T +AC_TYPE_INT64_T +AC_TYPE_INT8_T +AC_TYPE_MODE_T +AC_TYPE_OFF_T +AC_TYPE_PID_T +AC_TYPE_SIZE_T +AC_TYPE_SSIZE_T +AC_CHECK_MEMBERS([struct stat.st_blksize]) +AC_STRUCT_ST_BLOCKS +AC_CHECK_MEMBERS([struct stat.st_rdev]) +AC_HEADER_TIME +AC_STRUCT_TM +AC_TYPE_UINT16_T +AC_TYPE_UINT32_T +AC_TYPE_UINT64_T +AC_TYPE_UINT8_T + +# Checks for library functions. +AC_FUNC_CHOWN +AC_FUNC_CLOSEDIR_VOID +AC_FUNC_ERROR_AT_LINE +AC_FUNC_FORK +AC_PROG_GCC_TRADITIONAL +AC_FUNC_LSTAT +AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK +AC_FUNC_MALLOC +AC_FUNC_MEMCMP +AC_FUNC_MMAP +AC_FUNC_REALLOC +AC_FUNC_SELECT_ARGTYPES +AC_TYPE_SIGNAL +AC_FUNC_STAT +AC_FUNC_UTIME_NULL +AC_CHECK_FUNCS([bzero fchdir fdatasync floor ftruncate getcwd gethostbyname gethostname gettimeofday inet_ntoa localtime_r memmove memset mkdir munmap pow rmdir select socket sqrt strcasecmp strchr strerror strstr utime]) + +AC_CONFIG_HEADERS([src/acconfig.h]) +AC_CONFIG_FILES([Makefile + src/Makefile]) +AC_OUTPUT + +AC_PROG_MAKE_SET + +AM_INIT_AUTOMAKE diff --git a/reconf b/reconf new file mode 100755 index 00000000000..3afb0447f7a --- /dev/null +++ b/reconf @@ -0,0 +1,7 @@ +#!/bin/sh +rm -f config.cache +aclocal +autoconf +autoheader +automake -a +exit diff --git a/src/Makefile.am b/src/Makefile.am new file mode 100644 index 00000000000..a2b28b51728 --- /dev/null +++ b/src/Makefile.am @@ -0,0 +1,98 @@ +AUTOMAKE_OPTIONS = gnu + +INCLUDES = +LDADD = -lpthread libcommon.a + +bin_PROGRAMS = cmon mkmonmap cmonctl cmds cosd + +# monitor +cmon_SOURCES = cmon.cc msg/SimpleMessenger.cc +cmon_LDADD = libmon.a libcommon.a libcrush.a + +mkmonmap_SOURCES = mkmonmap.cc +mkmonmap_LDADD = libcommon.a + +cmonctl_SOURCES = cmonctl.cc msg/SimpleMessenger.cc +cmonctl_LDADD = libcommon.a + +# mds +cmds_SOURCES = cmds.cc msg/SimpleMessenger.cc +cmds_LDADD = libmds.a libosdc.a libcommon.a libcrush.a + +# osd +cosd_SOURCES = cosd.cc msg/SimpleMessenger.cc +cosd_LDADD = libosd.a libebofs.a libcommon.a libcrush.a + + +noinst_LIBRARIES = \ + libcommon.a libcrush.a \ + libmon.a libmds.a libosdc.a libosd.a libebofs.a libclient.a + +libcommon_a_SOURCES = \ + msg/Message.cc \ + common/Logger.cc \ + common/Clock.cc \ + common/Timer.cc \ + mon/MonMap.cc \ + config.cc + +libcrush_a_SOURCES = \ + crush/builder.c \ + crush/mapper.c \ + crush/crush.c + +libmon_a_SOURCES = \ + mon/Monitor.cc \ + mon/Paxos.cc \ + mon/PaxosService.cc \ + mon/OSDMonitor.cc \ + mon/MDSMonitor.cc \ + mon/ClientMonitor.cc \ + mon/PGMonitor.cc \ + mon/Elector.cc \ + mon/MonitorStore.cc + +libebofs_a_SOURCES = \ + ebofs/BlockDevice.cc \ + ebofs/BufferCache.cc \ + ebofs/Ebofs.cc \ + ebofs/Allocator.cc \ + ebofs/FileJournal.cc + +libmds_a_SOURCES = \ + mds/MDS.cc \ + mds/journal.cc \ + mds/Server.cc \ + mds/MDCache.cc \ + mds/Locker.cc \ + mds/Migrator.cc \ + mds/MDBalancer.cc \ + mds/CDentry.cc \ + mds/CDir.cc \ + mds/CInode.cc \ + mds/AnchorTable.cc \ + mds/AnchorClient.cc \ + mds/LogEvent.cc \ + mds/IdAllocator.cc \ + mds/SessionMap.cc \ + mds/MDLog.cc + +libosd_a_SOURCES = \ + osd/PG.cc \ + osd/ReplicatedPG.cc \ + osd/RAID4PG.cc \ + osd/Ager.cc \ + osd/FakeStore.cc \ + osd/OSD.cc + +libosdc_a_SOURCES = \ + osdc/Objecter.cc \ + osdc/ObjectCacher.cc \ + osdc/Filer.cc \ + osdc/Journaler.cc + +libclient_a_SOURCES = \ + client/FileCache.cc \ + client/Client.cc \ + client/SyntheticClient.cc \ + client/Trace.cc |