From: Adam Crume Date: Tue, 10 Jun 2014 17:47:46 +0000 (-0700) Subject: Give meaningful error when submodules are not checked out X-Git-Tag: v0.83~47^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=87f9dbaf78ee040bbe0f56d2ada5299b150916b2;p=ceph.git Give meaningful error when submodules are not checked out Signed-off-by: Adam Crume --- diff --git a/configure.ac b/configure.ac index 0703eb9c11ef..c86edd66c847 100644 --- a/configure.ac +++ b/configure.ac @@ -29,6 +29,15 @@ AC_CONFIG_SUBDIRS([src/gtest]) AC_CANONICAL_HOST AC_CANONICAL_TARGET +# Check that submodules exist +AC_CHECK_FILES( + [ceph-object-corpus/bin/prune.sh] + [src/civetweb/README.md] + [src/erasure-code/jerasure/gf-complete/README] + [src/erasure-code/jerasure/jerasure/README] + [src/libs3/README] + , [], [AC_MSG_ERROR([Missing submodules. You should probably run 'git submodule update --init'])]) + # Fix automake problems in 1.12 m4_ifdef([AM_PROG_AR], [AM_PROG_AR])