Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

autogen.sh: Check for pkg-config before calling automake

Signed-off-by: Uli Schlachter <psychon@znc.in>
(cherry picked from commit c5f31f0)
  • Loading branch information...
commit 28994e0da30403d700ad6e57e644c4b5f3598a24 1 parent 934e610
@psychon psychon authored DarthGandalf committed
Showing with 7 additions and 6 deletions.
  1. +7 −6 autogen.sh
View
13 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."
Please sign in to comment.
Something went wrong with that request. Please try again.