From c5f31f0a4d2573220bc27cbb8e92320c33da6dea Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Wed, 22 Jan 2014 20:58:52 +0100 Subject: [PATCH] autogen.sh: Check for pkg-config before calling automake Signed-off-by: Uli Schlachter --- autogen.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/autogen.sh b/autogen.sh index 8b9f3ebf..e506185f 100755 --- a/autogen.sh +++ b/autogen.sh @@ -30,6 +30,13 @@ do_cmd $ACLOCAL $ACLOCAL_FLAGS do_cmd $AUTOHEADER $AUTOHEADER_FLAGS # Generate configure do_cmd $AUTOCONF $AUTOCONF_FLAGS + +if grep PKG_CHECK_MODULES configure > /dev/null +then + rm configure + die "ERROR: pkg-config not found. Install pkg-config and run $0 again" +fi + # Copy config.sub, config.guess, install.sh, ... # This will complain that we don't use automake, let's just ignore that do_cmd $AUTOMAKE $AUTOMAKE_FLAGS || true @@ -39,10 +46,4 @@ test -f config.guess -a -f config.sub -a -f install-sh || echo "(Yes, automake is supposed to fail, ignore that)" echo -if grep PKG_CHECK_MODULES configure > /dev/null -then - rm configure - die "ERROR: pkg-config not found. Install pkg-config and run $0 again" -fi - echo "You may now run ./configure."