]> jfr.im git - irc/rizon/znc.git/commitdiff
autogen.sh: Check for pkg-config before calling automake
authorUli Schlachter <redacted>
Wed, 22 Jan 2014 19:58:52 +0000 (20:58 +0100)
committerNolan Lum <redacted>
Tue, 4 Mar 2014 03:06:18 +0000 (19:06 -0800)
Signed-off-by: Uli Schlachter <redacted>
Conflicts:
autogen.sh

autogen.sh

index 2ed4030702d5efd221ccff79673004470f07e53f..e506185f569cbbd7736d91dbc4e1c31f179bcdc7 100755 (executable)
@@ -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
@@ -38,4 +45,5 @@ test -f config.guess -a -f config.sub -a -f install-sh ||
 
 echo "(Yes, automake is supposed to fail, ignore that)"
 echo
+
 echo "You may now run ./configure."