From 4e61b73173e5a5e9b50da49a4e41fbb97ebbeb22 Mon Sep 17 00:00:00 2001 From: Hui Zhou Date: Mon, 28 Mar 2022 14:16:07 -0500 Subject: [PATCH] autogen: add message when submodule is missing Add message to advise users to run git submodule checkout when they just cloned the repository. --- autogen.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/autogen.sh b/autogen.sh index fd2ae714e21..6b3fdea3d2d 100755 --- a/autogen.sh +++ b/autogen.sh @@ -125,7 +125,10 @@ ProgHomeDir() { # checking and patching submodules check_submodule_presence() { if test ! -f "$SRCROOTDIR/$1/configure.ac"; then - error "Submodule $1 is not checked out" + error "Submodule $1 is not checked out." + error "if you just git cloned this repository, run" + error " git submodule update --init" + error "to checkout the submodules." exit 1 fi } @@ -191,9 +194,6 @@ set_externals() { if test -z "$externals" ; then #TODO: if necessary, run: git submodule update --init - # hwloc is always required - check_submodule_presence modules/hwloc - # external packages that require autogen.sh to be run for each of them externals="test/mpi"