]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Makefile.am: disable building ceph_test_cors when radosgw is not enabled 182/head
authorJosh Durgin <josh.durgin@inktank.com>
Mon, 1 Apr 2013 21:04:02 +0000 (14:04 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Mon, 1 Apr 2013 21:05:05 +0000 (14:05 -0700)
This test depends on radosgw. Trying to build it without radosgw will
result in a compile error.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
src/Makefile.am

index 7e93e2d4623511bd87ad584acfae7c1b5fe2e701..6bd7d00e685f452b07255a8de0acff4b783b467f 100644 (file)
@@ -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}