Don't say "Checking for broken pcap-config" if we don't have a
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 19 Feb 2010 00:15:29 +0000 (00:15 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 19 Feb 2010 00:15:29 +0000 (00:15 +0000)
pcap-config to check for brokenness.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31919 f5534014-38df-0310-8fa8-9805f1628bb7

acinclude.m4

index 7c91260d54ca076cfb59ce4dc056260df57f6ce1..ecc28bd7d9abf2d99f6357710d977ad3c262daec 100644 (file)
@@ -329,13 +329,15 @@ AC_DEFUN([AC_WIRESHARK_PCAP_CHECK],
          #
          AC_PATH_PROG(PCAP_CONFIG, pcap-config)
 
-         #
-         # Now check whether it's the libpcap 1.0 version, which
-         # put a space after "-L" - on some platforms, that doesn't
-         # work.
-         #
-         AC_MSG_CHECKING(for broken pcap-config)
          if test -n "$PCAP_CONFIG" ; then
+           #
+           # Found it.
+           #
+           # Now check whether it's the libpcap 1.0 version, which
+           # put a space after "-L" - on some platforms, that doesn't
+           # work.
+           #
+           AC_MSG_CHECKING(for broken pcap-config)
            case "`\"$PCAP_CONFIG\" --libs`" in
 
            "-L "*)
@@ -356,8 +358,8 @@ AC_DEFUN([AC_WIRESHARK_PCAP_CHECK],
          fi
          if test -n "$PCAP_CONFIG" ; then
            #
-           # Found - use it to get the include flags for
-           # libpcap.
+           # Found it, and it's usable; use it to get the include flags
+           # for libpcap.
            #
            CFLAGS="$CFLAGS `\"$PCAP_CONFIG\" --cflags`"
            CPPFLAGS="$CPPFLAGS `\"$PCAP_CONFIG\" --cflags`"