configure: provide advice if PKG_PROG_PKG_CONFIG unavailable
authorR. Diez <rdiezmail-openocd@yahoo.de>
Sat, 18 Jun 2022 14:23:00 +0000 (16:23 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 2 Jul 2022 08:23:13 +0000 (08:23 +0000)
commitc7bdce33e2edd3b9d6d0eb85d38e7cac8e0a4e6e
tree044af1c206e65e802aac7016772fe88dd20b0032
parenta70bab9e5185c8853882748737ceebabde7c4781
configure: provide advice if PKG_PROG_PKG_CONFIG unavailable

These are the misleading error messages that this change prevents:
configure.ac:13: error: possibly undefined macro: AC_MSG_WARN
  If this token and others are legitimate, please use m4_pattern_allow.
  See the Autoconf documentation.
configure.ac:48: error: possibly undefined macro: AC_DEFINE
configure.ac:342: error: possibly undefined macro: AC_MSG_ERROR
configure.ac:608: error: possibly undefined macro: AC_MSG_NOTICE

Change-Id: I21bcc7715eeac0f3d0bcc60bba6801e6a895cdd0
Signed-off-by: R. Diez <rdiezmail-openocd@yahoo.de>
Reviewed-on: https://review.openocd.org/c/openocd/+/7035
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
configure.ac