]> xenbits.xensource.com Git - libvirt.git/commitdiff
virt-wireshark.m4: Defer $(prefix) substitution
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 20 Oct 2016 02:25:13 +0000 (10:25 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 21 Oct 2016 01:27:33 +0000 (09:27 +0800)
The autoconf manual says we shouldn't be using this variable (and
some others) outside of Makefiles as it prevents users providing
their own prefix at the installation phase.

https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Installation-Directory-Variables.html

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
m4/virt-wireshark.m4
tools/Makefile.am

index f383e2baf50944fd9f253065c5c99201f48a7593..e1e4a598d627899791832455c8619af72a88f575 100644 (file)
@@ -38,7 +38,7 @@ AC_DEFUN([LIBVIRT_CHECK_WIRESHARK],[
         if test "x$ws_prefix" = "x" ; then
           ws_prefix="/usr";
         fi
-        plugindir="${prefix}${plugindir#$ws_prefix}"
+        plugindir="${plugindir#$ws_prefix}"
       fi
     elif test "x$with_ws_plugindir" = "xno" || test "x$with_ws_plugindir" = "xyes"; then
       AC_MSG_ERROR([ws-plugindir must be used only with valid path])
index e7e42c3e753cc735417ec3bb243b8ffb3ab04120..08e1680cf5f456086b4a5e56a3c366e29e193611 100644 (file)
@@ -398,7 +398,7 @@ EXTRA_DIST += \
 
 if WITH_WIRESHARK_DISSECTOR
 
-ws_plugindir = $(plugindir)
+ws_plugindir = $(prefix)$(plugindir)
 ws_plugin_LTLIBRARIES = wireshark/src/libvirt.la
 wireshark_src_libvirt_la_CPPFLAGS = \
        -I wireshark/src $(WIRESHARK_DISSECTOR_CFLAGS)