diff options
author | Ben Pfaff <blp@nicira.com> | 2011-07-13 10:58:59 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2011-07-13 12:42:54 -0700 |
commit | 2bc458b3afa21a8fab448ff65ab454a0827f458f (patch) | |
tree | fed74b0b186cbaab859b0ffae3235ceb7fe5b0bc /m4 | |
parent | b9ec4ff78d24f3c3fbeb7a8838ad578e9f748ef3 (diff) |
configure: Improve error message when pkg-config is missing.
Until now, when pkg-config is missing, Autoconf emitted this error:
error: possibly undefined macro: PKG_CHECK_MODULES
This commit changes the message to:
error: Please install pkg-config.
This should be easier for users to interpret.
Suggested-by: Ethan Jackson <ethan@nicira.com>
Diffstat (limited to 'm4')
-rw-r--r-- | m4/openvswitch.m4 | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/m4/openvswitch.m4 b/m4/openvswitch.m4 index 73db4bba..e9edc490 100644 --- a/m4/openvswitch.m4 +++ b/m4/openvswitch.m4 @@ -92,8 +92,7 @@ AC_DEFUN([OVS_CHECK_OPENSSL], [ssl=check]) if test "$ssl" != false; then - dnl Make sure that pkg-config is installed. - m4_pattern_forbid([PKG_CHECK_MODULES]) + m4_ifndef([PKG_CHECK_MODULES], [m4_fatal([Please install pkg-config.])]) PKG_CHECK_MODULES([SSL], [openssl], [HAVE_OPENSSL=yes], [HAVE_OPENSSL=no |