From f2086eb24fd0eb50ceef22b775b76948843c9c45 Mon Sep 17 00:00:00 2001 From: Matthieu Herrb Date: Mon, 14 Apr 2014 19:31:52 +0000 Subject: Import xcb-util-wm 0.4.1 --- lib/xcb-util-wm/autogen.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 lib/xcb-util-wm/autogen.sh (limited to 'lib/xcb-util-wm/autogen.sh') diff --git a/lib/xcb-util-wm/autogen.sh b/lib/xcb-util-wm/autogen.sh new file mode 100644 index 000000000..afe529980 --- /dev/null +++ b/lib/xcb-util-wm/autogen.sh @@ -0,0 +1,27 @@ +#! /bin/sh + +srcdir=`dirname $0` +test -z "$srcdir" && srcdir=. + +ORIGDIR=`pwd` +cd $srcdir + +# If this is a git checkout, verify that the submodules are initialized, +# otherwise autotools will just fail with an unhelpful error message. +if [ -d ".git" ] && [ -r ".gitmodules" ] +then + # If git is not in PATH, this will not return 0, thus not keeping us + # from building. Since the message is worthless when git is not + # installed, this is what we want. + if git submodule status 2>/dev/null | grep -q '^-' + then + echo "You have uninitialized git submodules." >&2 + echo "Please run: git submodule update --init" >&2 + exit 1 + fi +fi + +autoreconf -v --install || exit 1 +cd $ORIGDIR || exit $? + +$srcdir/configure --enable-maintainer-mode "$@" -- cgit v1.2.3