chiark / gitweb /
configure.ac: Hack probed Wireshark plugin dir in case of corruption.
[tripe] / configure.ac
index 4e83e754144bdda7e9aef5ed1a4eafe157dfa6fe..f3b75ea234cd7c2d4e170313da97be1971993eaf 100644 (file)
@@ -225,7 +225,14 @@ case "$haveshark,$wireshark_plugindir" in
     AC_CACHE_CHECK([where to put Wireshark plugins],
       [mdw_cv_wireshark_plugin_dir], [
       mdw_cv_wireshark_plugin_dir=$(
-       $PKG_CONFIG --variable=plugindir "wireshark >= 1.12.1")])
+       $PKG_CONFIG --variable=plugindir "wireshark >= 1.12.1")
+      dnl It seems that the Debian package has a habit of bungling the
+      dnl plugin path (#779788, #857729, ...).
+      case "$mdw_cv_wireshark_plugin_dir" in
+       /usr//usr/*)
+         mdw_cv_wireshark_plugin_dir=${mdw_cv_wireshark_plugin_dir#/usr/}
+         ;;
+      esac])
     case "$mdw_cv_wireshark_plugin_dir" in
       /*)
        if test ! -d "$mdw_cv_wireshark_plugin_dir"; then