From: guy Date: Fri, 19 Feb 2010 00:15:29 +0000 (+0000) Subject: Don't say "Checking for broken pcap-config" if we don't have a X-Git-Url: http://git.samba.org/samba.git/?p=obnox%2Fwireshark%2Fwip.git;a=commitdiff_plain;h=4c0513a109587312d47430e3ff7d3cb0b0b4e859 Don't say "Checking for broken pcap-config" if we don't have a pcap-config to check for brokenness. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31919 f5534014-38df-0310-8fa8-9805f1628bb7 --- diff --git a/acinclude.m4 b/acinclude.m4 index 7c91260d54..ecc28bd7d9 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -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`"