configure: Improve error message when pkg-config is missing.
authorBen Pfaff <blp@nicira.com>
Wed, 13 Jul 2011 17:58:59 +0000 (10:58 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 13 Jul 2011 19:42:54 +0000 (12:42 -0700)
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>
m4/openvswitch.m4

index 73db4bbaf50109558b2d1afe312e4b5a56468084..e9edc4902311f69b2dbee048339622d38deae78c 100644 (file)
@@ -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