From 690e4df19a209037ea9bcc2b981fbe797fbd8ec4 Mon Sep 17 00:00:00 2001 From: Josh Durgin Date: Mon, 1 Apr 2013 14:04:02 -0700 Subject: [PATCH] Makefile.am: disable building ceph_test_cors when radosgw is not enabled This test depends on radosgw. Trying to build it without radosgw will result in a compile error. Signed-off-by: Josh Durgin --- src/Makefile.am | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Makefile.am b/src/Makefile.am index 7e93e2d462351..6bd7d00e685f4 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -877,11 +877,13 @@ unittest_texttable_LDADD = librados.la ${UNITTEST_LDADD} unittest_texttable_CXXFLAGS = ${AM_CXXFLAGS} ${UNITTEST_CXXFLAGS} check_PROGRAMS += unittest_texttable +if WITH_RADOSGW ceph_test_cors_SOURCES = test/test_cors.cc ceph_test_cors_LDFLAGS = libglobal.la ceph_test_cors_LDADD = librados.la librgw.a ${UNITTEST_LDADD} ${UNITTEST_STATIC_LDADD} -lcryptopp -lcurl -luuid -lexpat ceph_test_cors_CXXFLAGS = ${AM_CXXFLAGS} ${UNITTEST_CXXFLAGS} bin_DEBUGPROGRAMS += ceph_test_cors +endif ceph_test_librbd_SOURCES = test/librbd/test_librbd.cc test/librados/test.cc ceph_test_librbd_LDADD = librbd.la librados.la ${UNITTEST_STATIC_LDADD} -- 2.39.5