From c64a0a8e32a80a7cdf79ee626b17e67e4c6b0b95 Mon Sep 17 00:00:00 2001 From: Andrea Bolognani Date: Wed, 26 Oct 2016 14:19:12 +0200 Subject: [PATCH] wireshark: Hoist $ws_prefix declaration Keep all variable declarations close together. --- m4/virt-wireshark.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m4/virt-wireshark.m4 b/m4/virt-wireshark.m4 index eb6c8a6021..64acca9f68 100644 --- a/m4/virt-wireshark.m4 +++ b/m4/virt-wireshark.m4 @@ -29,13 +29,13 @@ AC_DEFUN([LIBVIRT_CHECK_WIRESHARK],[ if test "x$with_wireshark_dissector" != "xno" ; then if test "x$with_ws_plugindir" = "xcheck" ; then plugindir="$($PKG_CONFIG --variable plugindir wireshark)" + ws_prefix="$($PKG_CONFIG --variable prefix wireshark)" ws_modversion="$($PKG_CONFIG --modversion wireshark)" if test "x$plugindir" = "x" ; then dnl On some systems the plugindir variable may not be stored within pkg config. dnl Fall back to older style of constructing the plugin dir path. plugindir="$libdir/wireshark/plugins/$ws_modversion" else - ws_prefix="$($PKG_CONFIG --variable prefix wireshark)" if test "x$ws_prefix" = "x" ; then ws_prefix="/usr"; fi