summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@inktank.com>2013-08-15 14:00:13 -0700
committerYehuda Sadeh <yehuda@inktank.com>2013-08-15 14:00:13 -0700
commit7ffa3f4a0fb9fa8f2ff375366ddff3327fd03bd2 (patch)
tree91f138540b1a22568204fc73da48d280f8457c69
parent43fb66bc8c0c5f228c1d764aad0cd3d4ce3b88d6 (diff)
downloadceph-7ffa3f4a0fb9fa8f2ff375366ddff3327fd03bd2.tar.gz
rgw: always use system libs3 (when needed)
Already removed the libs3 submodule, so always refer to the system libs3. We only need it for rest-bench anyway. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
-rw-r--r--configure.ac14
-rw-r--r--src/Makefile.am26
2 files changed, 4 insertions, 36 deletions
diff --git a/configure.ac b/configure.ac
index 812126664eb..624e96b700e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -435,17 +435,6 @@ AC_LANG_PUSH([C++])
AC_CHECK_HEADER([leveldb/filter_policy.h], [AC_DEFINE([HAVE_LEVELDB_FILTER_POLICY], [1], [Defined if LevelDB supports bloom filters ])])
AC_LANG_POP([C++])
-# use system libs3?
-AC_ARG_WITH([system-libs3],
- [AS_HELP_STRING([--with-system-libs3], [use system libs3])],
- ,
- [with_system_libs3=no])
-AS_IF([test "x$with_system_libs3" = xyes],
- [AC_CHECK_LIB([s3], [S3_initialize], [true], [AC_MSG_FAILURE([libs3 not found])], [-lpthread])])
-AS_IF([test "x$with_system_libs3" = xcheck],
- [AC_SEARCH_LIBS([S3_initialize], [s3], [with_system_libs3=yes], [true], [-lpthread])])
-AM_CONDITIONAL(WITH_SYSTEM_LIBS3, [ test "$with_system_libs3" = "yes" ])
-
# rest-bench?
AC_ARG_WITH([rest-bench],
[AS_HELP_STRING([--with-rest-bench], [enables rest-bench])],
@@ -453,6 +442,9 @@ AC_ARG_WITH([rest-bench],
[with_rest_bench=no])
AM_CONDITIONAL(WITH_REST_BENCH, [ test "$with_rest_bench" = "yes" ])
+AS_IF([test "x$with_rest_bench" != xno],
+ [AC_CHECK_LIB([s3], [S3_initialize], [true], AC_MSG_FAILURE([libs3 not found]))])
+
# use libaio?
AC_ARG_WITH([libaio],
[AS_HELP_STRING([--without-libaio], [disable libaio use by journal])],
diff --git a/src/Makefile.am b/src/Makefile.am
index e93bbb8f537..1b7f23759e6 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,25 +1,8 @@
AUTOMAKE_OPTIONS = gnu
SUBDIRS = ocf java
-DIST_SUBDIRS = gtest ocf libs3 java
+DIST_SUBDIRS = gtest ocf java
EXTRA_DIST = \
- libs3/COPYING \
- libs3/ChangeLog \
- libs3/GNUmakefile \
- libs3/GNUmakefile.mingw \
- libs3/GNUmakefile.osx \
- libs3/INSTALL \
- libs3/LICENSE \
- libs3/README \
- libs3/TODO \
- libs3/archlinux \
- libs3/debian \
- libs3/doxyfile \
- libs3/inc \
- libs3/libs3.spec \
- libs3/mswin \
- libs3/src \
- libs3/test \
unittest_bufferlist.sh
CLEANFILES =
@@ -485,14 +468,7 @@ rest_bench_SOURCES = tools/rest_bench.cc common/obj_bencher.cc
rest_bench_LDADD = $(LIBGLOBAL_LDA)
rest_bench_CXXFLAGS = ${AM_CXXFLAGS}
bin_PROGRAMS += rest-bench
-
-if WITH_SYSTEM_LIBS3
rest_bench_LDADD += -ls3
-else
-rest_bench_LDADD += libs3/build/lib/libs3.a -lcurl -lxml2
-rest_bench_CXXFLAGS += -I$(top_srcdir)/src/libs3/inc
-SUBDIRS += libs3
-endif
endif