message: build: Detect missed pkg-config early
diff: @@ -19,12 +19,18 @@ AC_CONFIG_HEADERS([src/config/bitcoin-config.h])
  AC_CONFIG_AUX_DIR([build-aux])
  AC_CONFIG_MACRO_DIR([build-aux/m4])
  +m4_ifndef([PKG_PROG_PKG_CONFIG], [AC_MSG_ERROR([PKG_PROG_PKG_CONFIG macro not found. Please install pkg-config and re-run autogen.sh])])
  +PKG_PROG_PKG_CONFIG
  +if test "x$PKG_CONFIG" = x; then
  + AC_MSG_ERROR([pkg-config not found])
  +fi
  BITCOIN_DAEMON_NAME=peercoind
  BITCOIN_GUI_NAME=peercoin-qt
  BITCOIN_CLI_NAME=peercoin-cli
  BITCOIN_TX_NAME=peercoin-tx
  BITCOIN_WALLET_TOOL_NAME=peercoin-wallet
  +
  dnl Unless the user specified ARFLAGS, force it to be cr
  AC_ARG_VAR(ARFLAGS, [Flags for the archiver, defaults to <cr> if not set])
  if test "x${ARFLAGS+set}" != "xset"; then
  @@ -673,12 +679,6 @@ case $host in
  ;;
  esac
  -m4_ifndef([PKG_PROG_PKG_CONFIG], [AC_MSG_ERROR([PKG_PROG_PKG_CONFIG macro not found. Please install pkg-config and re-run autogen.sh])])
  -PKG_PROG_PKG_CONFIG
  -if test "x$PKG_CONFIG" = x; then
  - AC_MSG_ERROR([pkg-config not found])
  -fi
  -
  if test x$use_extended_functional_tests != xno; then
  AC_SUBST(EXTENDED_FUNCTIONAL_TESTS, --extended)
  fi
  